PetscGridHashGetEnclosingBox#
Find the grid boxes containing each input point
Synopsis#
#include "petscdmplex.h"   
#include "petscfe.h"       
PetscErrorCode PetscGridHashGetEnclosingBox(PetscGridHash box, PetscInt numPoints, const PetscScalar points[], PetscInt dboxes[], PetscInt boxes[])
Not Collective
Input Parameters#
- box - The grid hash object 
- numPoints - The number of input points 
- points - The input point coordinates 
Output Parameters#
- dboxes - An array of - numPointsx- dimintegers expressing the enclosing box as (i_0, i_1, …, i_dim)
- boxes - An array of - numPointsintegers expressing the enclosing box as single number, or- NULL
Note#
This only guarantees that a box contains a point, not that a cell does.
See Also#
DMPLEX, PetscGridHashCreate()
Level#
developer
Location#
src/dm/impls/plex/plexgeometry.c
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages