# DMPlexSetOverlap
Set the width of the cell overlap 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexSetOverlap(DM dm, DM dmSrc, PetscInt overlap)
```
Logically collective


## Input Parameters

- ***dm      -*** The DM
- ***dmSrc   -*** The DM that produced this one, or NULL
- ***overlap -*** the width of the cell overlap



## Note
The overlap from dmSrc is added to dm




## See Also
 `DMPlexGetOverlap()`, `DMPlexDistribute()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexdistribute.c.html#DMPlexSetOverlap_Plex">DMPlexSetOverlap_Plex in src/dm/impls/plex/plexdistribute.c</A><BR>


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