# DMPlexLabelAddCells
Starting with a label marking points on a surface, we add a cell for each point 
## Synopsis
```
#include "petscdmplex.h"    
#include "petscdmlabel.h"   
PetscErrorCode DMPlexLabelAddCells(DM dm, DMLabel label)
```

## Input Parameters

- ***dm -*** The DM
- ***label -*** A DMLabel marking the surface points



## Output Parameter

- ***label -*** A DMLabel incorporating cells




Note: The cells allow FEM boundary conditions to be applied using the cell geometry


## See Also
 `DMPlexLabelAddFaceCells()`, `DMPlexLabelComplete()`, `DMPlexLabelCohesiveComplete()`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexsubmesh.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)  
