Mesh plot in AdaptiveSolver

Dear Sir,
I wanted to see how the grid changed with AdaptiveLinearVariationalSolverr, so I used a function like this:
Mesh = UnitSquareMesh(10,10);
… …
… …
dl.plot(mesh.root_node());
dl.plot(mesh.leaf_node());
but it wrongs with:
‘dolfin.cpp.mesh.Mesh’ object has no attribute ‘root_node’

So what can I do to plot mesh?

You cannot expect anyone to being able to help you when you do not produce a code that can reproduce the error.

Also, by looking at the source code:
https://bitbucket.org/search?q=repo%3Adolfin%20root_node&account={795b0eed-436d-4242-83d7-a46a0b061354}
what you want is probably:

dl.plot(u.root_node().function_space().mesh())
dl.plot(u.leaf_node().function_space().mesh())
1 Like