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

determine whether point is in local mesh

+2 votes

Hi,

when running Fenics with MPI the mesh is partitioned automatically (thank you very much!). Is there a simple way to determine whether a point is on the local mesh for a process?

Using
mesh.bounding_box_tree().collides(p)
seems to tell whether the point p is inside the global mesh (which makes sense in many cases probably). Is this correct?

asked May 4, 2015 by gobetween FEniCS Novice (200 points)
...