- Thank you received: 0
Curved elements and MPI
2 years 4 months ago #4450
by JuliusZ
Curved elements and MPI was created 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
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
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]
If you are using for example a CSG geometry, you can generate it on all ranks and then set it.
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)
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.
Time to create page: 0.101 seconds