Hi Everyone, I have a C++ code and up until recently the following code snippet worked:
...
previously created
dolfin::Mesh mesh
std::shared_ptr<dolfin::MeshFunction> pFunction
...
dolfin::CellFunction f(mesh, true);
mesh = adapt(mesh, f);
pFunction = adapt(pFunction, make_shared(mesh));
This used to do one level of uniform refinement of the mesh and then adapt the MeshFunction accordingly. Now however I get a segfault when I try to write the adapted function to a pvd file.
Has something changed recently or am I just not using adapt correctly? What I want is to replace the current mesh and MeshFunction with the adapted versions. I'm using the dev version of dolfin from perhaps two weeks ago.
Thanks,
Dave