# DMPlexCheckFaces
Check that the faces of each cell give a vertex order this is consistent with what we expect from the cell type 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexCheckFaces(DM dm, PetscInt cellHeight)
```
Collective on dm


## Input Parameters

- ***dm -*** The `DMPLEX` object
- ***cellHeight -*** Normally 0





## Notes
This is a useful diagnostic when creating meshes programmatically.
This routine is only relevant for meshes that are fully interpolated across all ranks.
It will error out if a partially interpolated mesh is given on some rank.
It will do nothing for locally uninterpolated mesh (as there is nothing to check).

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


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

## Level
developer

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex11.c.html">src/dm/impls/plex/tutorials/ex11.c.html</A><BR>


---
[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)  
