Problem with Restriction class
Hello,
i found a Problem in the Restriction class.
here my python-code (analog to c++ demo):
n = 5
#Mesh
mesh = UnitSquareMesh(n, n)
#SubDomain
class Boundary(
def inside(self, x, on_boundary):
return on_boundary
res = Restriction(mesh, Boundary)
it delivers the error:
res = Restriction(mesh, Boundary)
File "/usr/lib/
_mesh.
TypeError: in method 'new_Restriction', argument 1 of type 'dolfin:
the first argument is the mesh as an instance of the Mesh class and the second of type SubDomain, so why does
it display its of type MeshFunction an raise a error?
Thanks
Edwin
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: