Curved elements and MPI

More
2 years 4 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
2 years 4 months ago - 2 years 4 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: 2 years 4 months ago by lkogler.
More
2 years 4 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.101 seconds