Loading mesh twice fails
Issue #514
resolved
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)
-
-
reporter Very nice, setting LC_ALL=C fixes the problem. Sorry for bothering you with an already resolved bug :)
-
reporter - changed status to resolved
-
No problem - I'm happy: another resolved issue...
- Log in to comment
Can't reproduce. Sometimes there have been issues if your locale is non-standard, see https://bitbucket.org/fenics-project/dolfin/commits/1bdf81da42f20a3dca9b168700944c25b9c74e49 which fixes the problem.