find parent cells in a refined mesh
Asked by
Martin Eigel
Is there a way to determine the corresponding parent cell of a cell in a refined mesh in the sense of
mesh = UnitSquare(5,5)
mesh2 = refine(mesh)
for c in cells(mesh2):
print "parent cell of ", c.id(), "in mesh is ", c.parent().id()
Does the method Mesh.set_parent do anything else than storing the reference to another mesh?
Cheers,
Martin
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marie Rognes
- Solved:
- Last query:
- Last reply:
To post a message you must log in.