Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Curved elements and MPI

More
1 year 9 months ago #4450 by JuliusZ
Dear NGSolve team,

Are curved elements with MPI currently only supported if the mesh is generated on rank 0, distributed and the geometry is assigned on all other ranks?
Or is it also possible to generate a mesh in a separate script, load the mesh from a file and then curve it?

Thanks for your help.

Best,
Julius
More
1 year 9 months ago - 1 year 9 months ago #4451 by lkogler
Replied by lkogler on topic Curved elements and MPI
You can load from file, but you have to set the geometry on all ranks before coarsening.
For example, for an OCC geometry loaded from a separate file:
Code:
[code][code][code]geo = netgen.occ.OCCGeometry(geo_file) mesh.ngmesh.SetGeometry(geo) mesh.Curve(3)
[/code][/code][/code]

If you are using for example a CSG geometry, you can generate it on all ranks and then set it.
Last edit: 1 year 9 months ago by lkogler.
More
1 year 9 months ago #4452 by JuliusZ
Replied by JuliusZ on topic Curved elements and MPI
Thank you very much for the clarification. Your solution works very well :)
Time to create page: 0.148 seconds