I'm trying to read a mesh into my program using HDF5File. This is my code:
f = HDF5File(mpi_comm_world(),'trmesh.h5', 'r')
mesh = Mesh()
f.read(mesh, 'mesh', False)
I get the following error when i try to run the code:
Error: Unable to complete call to function has_dataset().
Reason: Assertion link_status >= 0 failed.
I got this code from this question: http://fenicsproject.org/qa/274/consistent-io-of-mesh-and-function-in-parallel but somehow, they don't get this error.
What am I doing wrong?
Thanks!