DMDA_STENCIL_BOX — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# DMDA_STENCIL_BOX

“Box”-type stencil. In logical grid coordinates, any of (i,j,k), (i+s,j+r,k+t) may be in the stencil.

## Note

Determines what ghost point values are brought over to each process in `DMGlobalToLocalBegin()`/ `DMGlobalToLocalEnd()`

## See Also

DM Basics, `DMDA`, `DMDA_STENCIL_STAR`, `DMDAStencilType`, `DMDASetStencilType()`

## Level

beginner

## Location

include/petscdmda.h

## Examples

src/dm/tutorials/ex4.c
src/dm/field/tutorials/ex1.c
src/dm/tutorials/swarm_ex1.c
src/dm/tutorials/ex21.c
src/dm/tutorials/ex7.c
src/dm/tutorials/swarm_ex3.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex9.c
src/dm/tutorials/ex2.c

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