# DMStagGetStencilWidth
get elementwise stencil width 
## Synopsis
```
PetscErrorCode DMStagGetStencilWidth(DM dm, PetscInt *stencilWidth)
```
Not Collective


## Input Parameter

- ***dm -*** the `DMSTAG` object



## Output Parameter

- ***stencilWidth -*** stencil/halo/ghost width in elements





## See Also
 [](chapter_stag), `DMSTAG`, `DMStagSetStencilWidth()`, `DMStagGetStencilType()`, `DMDAGetStencilType()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/stag/stagutils.c.html#DMStagGetStencilWidth">src/dm/impls/stag/stagutils.c</A>


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


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