:orphan:
# DMPointLocationType
Describes the method to handle point location failure 
## Synopsis
```
typedef enum {
  DM_POINTLOCATION_NONE,
  DM_POINTLOCATION_NEAREST,
  DM_POINTLOCATION_REMOVE
} DMPointLocationType;
```

## Values

- ***`DM_POINTLOCATION_NONE` -*** return a negative cell number
- ***`DM_POINTLOCATION_NEAREST` -*** the (approximate) nearest point in the mesh is used
- ***`DM_POINTLOCATION_REMOVE` -*** returns values only for points which were located





## See Also
 `DM`, `DMLocatePoints()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscdmtypes.h.html#DMPointLocationType">include/petscdmtypes.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdmtypes.h)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
