:orphan:
# DMDAGetStencilType
Gets the type of the communication stencil 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAGetStencilType(DM da, DMDAStencilType *stype)
```
Not Collective


## Input Parameter

- ***da    -*** The `DMDA`



## Output Parameter

- ***stype -*** The stencil type, use either `DMDA_STENCIL_BOX` or `DMDA_STENCIL_STAR`.





## See Also
 `DM`, `DMDA`, `DMDACreate()`, `DMDestroy()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/da.c.html#DMDAGetStencilType">src/dm/impls/da/da.c</A>


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


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