To extract the adapted mesh the code used was:
mesh0 = mesh.root_node()
mesh1 = mesh.leaf_node()
plot(mesh0, title="Initial mesh")
plot(mesh1, title="Final mesh")
This no longer seems to work and throws an error:
AttributeError: 'dolfin.cpp.mesh.Mesh' object has no attribute 'root_node'
I would like to know how to do this on the newer version. Any suggestion would be very helpful.
Thank You.