Reading in a mesh and function space from XDFM

Is there no way to read/load a mesh and function space saved to an xdmf file, without adios2 or adios4doflinx? I have been unable to install adios2 through pip (MacOS with standard conda installation of dolfinx/fenicsx), and the need for adios2 for this simple act of loading data that dolfinx itself saved is odd to me.

Frankly, I would settle for any mode of loading data back in to a mesh and function… .bp file, vtk, vtu, whatever.

If you use conda, you should install adios2 with conda, not pip. The pip build of adios2 does not support mpi.

I’ve sketched out how to read data from xdmf at

It uses adios2 as a backend, but it can be reimplemented with h5py quite easily.

1 Like