ReadGmsh and MPI

Asked by Marek Wojciechowski

Hi!

Is there any way to read gmsh mesh when escript is compiled with MPI? Or maybe there exist a tool to convert .msh to .fly? For now i think the only way is to compile escript without MPI support and use this version to create .fly files...

Regards,

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Marek Wojciechowski
Solved:
Last query:
Last reply:
Revision history for this message
Lutz Gross (l-gross) said :
#1

This script converts a gmsh file into a fly file

from esys.finley import ReadGmsh
dom=ReadGmsh("dom.msh", numDim=3)
dom.write("dom.fly")

it should run for a single MPI rank using an MPI installation.

PS: a parallel gmsh reader is in the make for the next release.

Revision history for this message
Marek Wojciechowski (mwojc) said :
#2

Thanks! I missed this simple workaround. Setting ESCRIPT_NUM_PROCS=1 just for .fly creation solved my problem...

Revision history for this message
Lutz Gross (l-gross) said :
#3

ReadGmsh supports parallel reading now.