Skip to main content
`Ctrl`+`K`

# 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

DM Basics, `DMDA`, `DMDA_STENCIL_BOX`, `DMDA_STENCIL_STAR`,`DMDACreate1d()`, `DMDACreate2d()`, `DMDACreate3d()`, `DMDACreate()`, `DMDASetStencilType()`

## Level

beginner

## Location

include/petscdmdatypes.h

## Examples

src/ksp/ksp/tutorials/ex45.c
src/dm/tutorials/ex13f90.F90
src/dm/tutorials/ex14.c
src/dm/tutorials/ex6.c
src/dm/tutorials/ex51.c
src/ksp/ksp/tutorials/ex46.c
src/dm/tutorials/ex22.c
src/dm/tutorials/ex10.c
src/ksp/ksp/tutorials/ex50.c
src/ksp/ksp/tutorials/ex32.c

## Examples

src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/ex11f90.F90
src/dm/tutorials/swarm_ex3.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex2.c
src/dm/tutorials/ex4.c
src/dm/tutorials/ex25.c
src/dm/tutorials/ex20.c
src/dm/field/tutorials/ex1.c
src/dm/tutorials/ex21.c

## Examples

src/ksp/ksp/tutorials/ex59.c
src/dm/tutorials/ex12.c
src/dm/tutorials/ex3.c
src/snes/tutorials/ex48.c
src/snes/tutorials/ex30.c
src/dm/tutorials/ex5.c
src/ts/tutorials/ex14.c
src/dm/tutorials/ex1.c

Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages