# DMPlexLabelCohesiveComplete
Starting with a label marking points on an internal surface, we add all other mesh pieces to complete the surface 
## Synopsis
```
#include "petscdmplex.h"    
#include "petscdmlabel.h"   
PetscErrorCode DMPlexLabelCohesiveComplete(DM dm, DMLabel label, DMLabel blabel, PetscInt bvalue, PetscBool flip, DM subdm)
```

## Input Parameters

- ***dm     -*** The DM
- ***label  -*** A DMLabel marking the surface
- ***blabel -*** A DMLabel marking the vertices on the boundary which will not be duplicated, or NULL to find them automatically
- ***bvalue -*** Value of DMLabel marking the vertices on the boundary
- ***flip   -*** Flag to flip the submesh normal and replace points on the other side
- ***subdm  -*** The subDM associated with the label, or NULL



## Output Parameter

- ***label -*** A DMLabel marking all surface points


Note: The vertices in blabel are called "unsplit" in the terminology from hybrid cell creation.




## See Also
 `DMPlexConstructCohesiveCells()`, `DMPlexLabelComplete()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexsubmesh.c.html#DMPlexLabelCohesiveComplete">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)  
