XDMF output of cell-centred Functions not working properly

Issue #385 resolved
Chris Richardson created an issue

The following code produces weird output, in serial or parallel. Scalar FunctionSpaces also crash when ghost_mode is enabled.

mesh = UnitSquareMesh(20,20)
Q = VectorFunctionSpace(mesh, "DG", 0)
F = Function(Q)

E = Expression(("x[0]", "x[1]"))
F.interpolate(E)

xdmf = File("a.xdmf")
xdmf << F

Comments (2)

  1. Log in to comment