setting double meshfunction on subdomain
Asked by
Chaffra Affouda
This is what I'd like to do:
m = UnitInterval(100)
f = CellFunction(
class Left(SubDomain):
def inside(self, x, on_boundary):
return x[0] < 0.5
left = Left()
left.mark(f,0.01)
Obviously this does not work because mark only accepts MeshFunctionUInt. Is there a simple way to do this with a MeshFunctionDouble?
Thanks,
Chaffra
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply:
To post a message you must log in.