I am trying to apply FEniCS to my problem and for that I need to implement periodic BCs. I looked through the example in /demo/undocumented/periodic/python/demo_periodic.py and it works very well. But when I replace the FEniCS mesh generation
mesh = UnitSquareMesh(32, 32)
with my mesh
mesh = Mesh("mesh.xml")
and repeat calculation, the periodic BC does not seem to work (see picture). Here mesh.xml (uploaded here) is the same unit interval mesh, just generated with gmsh and converted by dolfin-convert.
What am I doing wrong?