#include "petscdmplex.h" #include "petscfe.h" PetscErrorCode DMPlexFindVertices(DM dm, PetscInt npoints, const PetscReal coord, PetscReal eps, PetscInt dagPoints)Not Collective (provided DMGetCoordinatesLocalSetUp() has been called already)
|dm||- The DMPlex object|
|npoints||- The number of sought points|
|coords||- The array of coordinates of the sought points|
|eps||- The tolerance or PETSC_DEFAULT|
The output array dagPoints is NOT newly allocated; the user must pass an array of length npoints.
Each rank does the search independently; a nonnegative value is returned only if this rank's local DMPlex portion contains the point.
The tolerance is interpreted as the maximum Euclidean (L2) distance of the sought point from the specified coordinates.