: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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/stag/stagstencil.c.html#DMStagCreateISFromStencils">src/dm/impls/stag/stagstencil.c</A>


---
[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)  
