:orphan: # DMStagSetStencilWidth set elementwise stencil width ## Synopsis ``` PetscErrorCode DMStagSetStencilWidth(DM dm, PetscInt stencilWidth) ``` Logically Collective; `stencilWidth` must contain common value ## Input Parameters - ***dm -*** the `DMSTAG` object - ***stencilWidth -*** stencil/halo/ghost width in elements ## Note The width value is not used when `DMSTAG_STENCIL_NONE` is specified. ## See Also [](ch_stag), `DMSTAG`, `DMStagGetStencilWidth()`, `DMStagGetStencilType()`, `DMStagStencilType` ## Level beginner ## Location src/dm/impls/stag/stagutils.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)