DMDA#
“da” - A DM
object that is used to help solve PDEs on a structured grid (or mesh) in 1, 2, or 3 dimensions.
Notes#
In the global representation of the vectors each process stores a non-overlapping rectangular (or slab in 3d) portion of the grid points.
In the local representation these rectangular regions (slabs) are extended in all directions by a stencil width set with DMDASetStencilWidth()
.
The vectors can be thought of as either cell centered or vertex centered on the grid (or mesh). But some variables cannot be cell centered and others
vertex centered; see the documentation for DMSTAG
, a similar DM
implementation which supports more general staggered grids.
Periodic boundary conditions can be handled by using a DMBoundaryType
of DM_BOUNDARY_PERIODIC
provided with DMDASetBoundaryType()
.
Other DMBoundaryType
values allow for different handling of terms along the boundary of the grid (or mesh).
See Also#
DMDA - Creating vectors for structured grids, DMType
, DMCOMPOSITE
, DMSTAG
, DMDACreate()
, DMCreate()
, DMSetType()
, DMDASetStencilWidth()
, DMDASetStencilType()
,
DMDAStencilType
Level#
intermediate
Location#
Examples#
src/dm/tutorials/ex19.c
src/dm/tutorials/swarm_ex3.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex1.c
src/dm/tutorials/ex10.c
src/dm/tutorials/ex7.c
src/dm/tutorials/ex25.c
src/dm/tutorials/ex51.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex9.c
Index of all DMDA routines
Table of Contents for all manual pages
Index of all manual pages