#include "petscdm.h" #include "petscdmlabel.h" PetscErrorCode DMLocatePoints(DM dm, Vec v, PetscSF *cellSF)Collective on Vec v (see explanation below) Many br
dm | - The DM Many br | |
v | - The Vec of points Many br | |
cells | - Points to either NULL, or a PetscSF with guesses for which cells contain each point. Many br |
Many br
To do a search of the local cells of the mesh, v should have PETSC_COMM_SELF as its communicator. Many br
To do a search of all the cells in the distributed mesh, v should have the same communicator as Many brdm. Many br
If *cellSF is NULL on input, a PetscSF will be created. Many br
If *cellSF is not NULL on input, it should point to an existing PetscSF, whose graph will be used as initial Many brguesses. Many br
An array that maps each point to its containing cell can be obtained with Many br
const PetscSFNode *cells; Many brPetscInt nFound; Many brconst PetscSFNode *found; Many br
PetscSFGetGraph(cells,NULL,&nFound,&found,&cells); Many br
Where cells[i].rank is the rank of the cell containing point found[i] (or i if found == NULL), and cells[i].index is Many brthe index of the cell in its rank's local numbering. Many br
Level:developer
Location:src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages