Hi guys,
I wrote a little simulation on python using MacOSX and it worked well. Now I want to copy the simulation to ubuntu, but it doesnt work:
Invalid domain id <Mesh of topological dimension 2 (triangles) with 12345 vertices and 123456 cells, ordered>
[...]
ufl.log.UFLException: Invalid domain id <Mesh of topological dimension 2 (triangles) with 12345 vertices and 123456 cells, ordered>.
Does somebody understand why I cant just copy the .py-file to ubuntu?
It is a 2D-problem in which I declared the domains like:
mesh = RectangleMesh(0.001, 0, a, b, na, nb)
boundary_parts = MeshFunction('size_t', mesh, 1)
boundary_parts.set_all(0)
tol = 1E-14
class Top(SubDomain):
def inside(self, x, on_boundary):
return on_boundary and abs(x[1] - b) < tol
top = Top()
top.mark(boundary_parts, 1)
ds = Measure('ds')[boundary_parts]
The traceback leads to a line where I wrote
a = [...]*dx(mesh) + [...]*ds(1)
Any advice?
Best,
MaxMeier