:orphan: # DMStagGetStencilType get elementwise ghost/halo stencil type ## Synopsis ``` PetscErrorCode DMStagGetStencilType(DM dm, DMStagStencilType *stencilType) ``` Not Collective ## Input Parameter - ***dm -*** the `DMSTAG` object ## Output Parameter - ***stencilType -*** the elementwise ghost stencil type: `DMSTAG_STENCIL_BOX`, `DMSTAG_STENCIL_STAR`, or `DMSTAG_STENCIL_NONE` ## See Also [](ch_stag), `DMSTAG`, `DMStagSetStencilType()`, `DMStagGetStencilWidth`, `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)