This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

What must I do to be able to correctly evaluate a function after modifying the mesh using version 1.3?

+2 votes

Previously I had reported a problem evaluating a function after I had changed the mesh coordinates (see https://answers.launchpad.net/dolfin/+question/223696 and https://bugs.launchpad.net/dolfin/+bug/1155271). At that time (I think I was using version 1.1) the solution was to call mesh.intersection_operator().clear() after modifying the mesh coordinates and before evaluating a function defined on the mesh. This continued to work with version 1.2 but intersection_operator no longer seems to exist in version 1.3. What must I do to be able to correctly evaluate a function after modifying the mesh using version 1.3?

asked Mar 22, 2014 by ggranzow FEniCS Novice (140 points)

1 Answer

+1 vote
mesh.bounding_box_tree().build(mesh)

Watch DOLFIN issue 89.

answered Mar 24, 2014 by Jan Blechta FEniCS Expert (51,420 points)
...