# DMPlexCheckPointSF
Check that several necessary conditions are met for the Point SF of this plex. 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexCheckPointSF(DM dm, PetscSF pointSF, PetscBool allowExtraRoots)
```
Collective on dm


## Input Parameters

- ***dm -*** The `DMPLEX` object
- ***pointSF -*** The `PetscSF`, or NULL for `PointSF` attached to `DM`
- ***allowExtraRoots -*** Flag to allow extra points not present in the `DM`





## Notes
This is mainly intended for debugging/testing purposes.

For the complete list of DMPlexCheck* functions, see `DMSetFromOptions()`.

Extra roots can come from priodic cuts, where additional points appear on the boundary


## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `DMGetPointSF()`, `DMSetFromOptions()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plex.c.html#DMPlexCheckPointSF">src/dm/impls/plex/plex.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plex.c)


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