:orphan:
# DMDAStencilType
Determines if the stencil extends only along the coordinate directions, or also to the northeast, northwest etc
## Synopsis
```
typedef enum {
DMDA_STENCIL_STAR,
DMDA_STENCIL_BOX
} DMDAStencilType;
```
## See Also
`DMDA`, `DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMDACreate()`, `DMDASetStencilType()`
## Level
beginner
## Location
include/petscdmdatypes.h
## Examples
src/dm/field/tutorials/ex1.c
src/dm/tutorials/ex1.c
src/dm/tutorials/ex10.c
src/dm/tutorials/ex11f90.F90
src/dm/tutorials/ex12.c
src/dm/tutorials/ex13f90.F90
src/dm/tutorials/ex14.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex2.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex21.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscdmdatypes.h)
[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)