Welcome, Guest
Username: Password: Remember me

TOPIC: access values on a different subdomain

access values on a different subdomain 9 years 8 months ago #16377

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Hi everyone,

I need to compute the mean water level along a liquid boundary, in order to compute the discharge to impose through the boundary.

It works just fine in many cases, but not if the liquid boundary is split over two subdomains in parallel computation.

Does somebody know if it is possible to access data (here water depth and bathymetry) on another subdomain?

An if it is not possible, is it possible to constrain METIS so that the liquid boundaries are not split over two subdomains? In my case, the liquid boundaries are relatively small compared to size of the domain.

Thank you for your help.

Olivier.
The administrator has disabled public write access.

access values on a different subdomain 9 years 8 months ago #16378

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Olivier

Yes, you could access to the values of the other domains. It depends what you want exactly but some parallel functions are designed to do that.
Have a look to pdsum or pdmax.
You could find some examples of use of these functions in some subroutines.
pdmax will return the maximum value of one local variable over all the processors
pdsum will return the sum...

For the second point, I don't know. I suppose it's also possible but never see how to do that.

Hope this helps

Regards
Christophe
The administrator has disabled public write access.

access values on a different subdomain 9 years 8 months ago #16379

  • o.gourgue
  • o.gourgue's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 11
Thank you Christophe for your quick answer.

I have to admit that I don't understand very well the use of P_DSUM and P_DMAX, although I checked the functions themselves, as well as other functions that use them...

In my case, I know the global numbers of some nodes and I want to access the water level and the bathymetry on those nodes from another subdomain.

Is it possible?

Olivier.
The administrator has disabled public write access.

access values on a different subdomain 9 years 8 months ago #16380

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Yes of course it's possible
First you have to check what is the local node number of your global node (0 if the global node is not on your subdomain)
Then, evaluate the water level at the local point if the node number exist (0 otherwise) and make a call to P_DSUM

Have a look on the subroutines of culverts, weirs, tubes which use this kind of programming to access to the water level in order to compute the discharge.

Hope this helps
Christophe
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.