This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

"Cannot read old-style MeshFunction XML files as a MeshValueCollection."

+1 vote

Hi,

I am attempting to read a mesh in parallel (ie. mpirun -n 2 script.py). Unfortunately, when it comes to defining the boundaries

boundaries = MeshFunction("size_t", mesh,"mesh_facet_region.xml")

I get the following error

Error: Unable to read mesh function from XML file.
*** Reason: Cannot read old-style MeshFunction XML files as a MeshValueCollection.

Also, is there a source for reading/learning about FEniCS parallel implementations? I am having trouble finding information in the documents.

asked Apr 17, 2014 by sixtysymbols FEniCS User (2,280 points)

1 Answer

+2 votes

It turns out I have to use the HDF5File system for reading and writing.

http://fenicsproject.org/qa/274/consistent-io-of-mesh-and-function-in-parallel

answered Apr 22, 2014 by sixtysymbols FEniCS User (2,280 points)
...