meshio icon indicating copy to clipboard operation
meshio copied to clipboard

How to read parallel exo file set?

Open JustinClough opened this issue 6 years ago • 3 comments

Hello,

I have a software package that writes parallel exodus files. For example, if ran in serial, it creates results.exo but in parallel with mpirun -n 4 gives results.exo.4.0, results.exo.4.1, ... results.exo.4.3 (files attached in the zip). my_exo_results.zip

How can I read these exo files into python with meshio? Using the syntax

exo = meshio.read( "results.exo")

works great in my workflow for the serial case. Is there something similar for the parallel case?

Please let me know if I can provide any more info about my problem. Thanks in advance!

JustinClough avatar May 06 '19 22:05 JustinClough

Ah, Albany! I used to work with Andy Salinger when I was at Sandia.

Is there something similar for the parallel case?

Not yet, I'm afraid. Your best bet is probably to look for somewhere else to convert parallel exodus files to a serial one, and take it from there.

nschloe avatar May 07 '19 06:05 nschloe

Thanks for letting me know. Yes, I saw your github username in some of the Trillinos and Albany commits!

I'll look around for a tool to serialize the exodus files. I'll make a follow up post here with what I find for posterity.

JustinClough avatar May 07 '19 17:05 JustinClough

Assuming you have Trilinos installed somewhere, you can use the epu tool:

epu -auto results.exo.4.*

which will give you the serial fileresults.exo. Feel free to close this issue if appropriate!

JustinClough avatar May 07 '19 21:05 JustinClough