Loading mesh twice fails

Issue #514 resolved
Gregor Mitscha-Eibl created an issue

If I load the same mesh from a file twice, the second mesh is not correct anymore (cell connectivity appears to be random). I tested this on Ubuntu 14.04 with the Fenics 1.5 release. See also this question. Minimal example:

from dolfin import *
filename = "mesh.xml"
File(filename) << UnitSquareMesh(2,2)

for i in range(2):
    mesh = Mesh(filename)
    plot(mesh)

interactive()

Comments (4)

  1. Gregor Mitscha-Eibl reporter

    Very nice, setting LC_ALL=C fixes the problem. Sorry for bothering you with an already resolved bug :)

  2. Log in to comment