Is there a working way how to store Mesh and Function in parallel for reading in future? Combination of XDMF for Mesh and XML for Function does not work because some entity indices gets messed. This is demonstrated by following snippet when run on 2 proccesses.
from dolfin import *
# output
mesh = UnitSquareMesh(5, 5)
V = FunctionSpace(mesh, 'CG', 1)
u = project(Expression('x[0]'), V)
File('mesh.xdmf') << mesh
File('u.xml') << u
# input
mesh = Mesh('mesh.xdmf')
V = FunctionSpace(mesh, 'CG', 1)
u = Function(V, 'u.xml')
plot(u, interactive=True)