Welcome, Guest
Username: Password: Remember me

TOPIC: Loop all the points in a sub-domain in parallel runs

Loop all the points in a sub-domain in parallel runs 12 years 7 months ago #4134

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Hello,

I have another question about how to loop all the points in a sub-domain in parallel runs.

Does MESH3D%NPOIN mean the total number of nodes in a subdomain in a parallel run? And NPOIN2 means the number of nodes in the bottom layer in this subdomain? Can I get the global number of nodes by using the fuction MESH3D%KNOLG%I()?

If I have a node with ID=N in the second panel above the bottom, is it correct that the node with ID=N/2 has the same X,Y coordinates but in the bottom panel?

Thanks in advance!
The administrator has disabled public write access.

Loop all the points in a sub-domain in parallel runs 12 years 7 months ago #4137

  • jmhervouet
  • jmhervouet's Avatar
MESH3D%NPOIN and MESH2D%NPOIN are the numbers of points of the subdomain, you should not have a need to use the global number of points.

The total number of points of the original domain is the maximum of all MESH3D%KNOLG%I() on all points of all subdomains.

If N is a point number on the bottom, the point above will be N+NPOIN2, so it is not N/2 but N-NPOIN2 that you should take in your example.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: pham

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