In order to determine the parents for the cells of a refined mesh, the following code used to work.
newmesh = refine(mesh)
# determine parent cell association map
pc = newmesh.data().mesh_function("parent_cell")
Unfortunately, this now raises the following error.
pc = newmesh.data().mesh_function("parent_cell")
RuntimeError:
[...]
*** -------------------------------------------------------------------------
*** Error: Unable to access a MeshFunction via mesh data.
*** Reason: MeshFunctions can no longer be stored in MeshData. Use arrays instead.
*** Where: This error was encountered inside MeshData.cpp.
*** Process: 0
*** -------------------------------------------------------------------------
Could someone please point out how this can be done with a current version (I am using the nightly snapshot ppa).
Cheers, Martin