:orphan: # DMStagCreateISFromStencils Create an `IS`, using global numberings, for a subset of DOF in a `DMSTAG` object ## Synopsis ``` PetscErrorCode DMStagCreateISFromStencils(DM dm, PetscInt n_stencil, DMStagStencil *stencils, IS *is) ``` Collective ## Input Parameters - ***dm -*** the `DMStag` object - ***n_stencil -*** the number of stencils provided - ***stencils -*** an array of `DMStagStencil` objects (`i`, `j`, and `k` are ignored) ## Output Parameter - ***is -*** the global IS ## Note Redundant entries in the stencils argument are ignored ## See Also [](ch_stag), `DMSTAG`, `IS`, `DMStagStencil`, `DMCreateGlobalVector` ## Level advanced ## Location src/dm/impls/stag/stagstencil.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/stag/stagstencil.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)