DMStagGetDOF#
get number of DOF associated with each stratum of the grid
Synopsis#
#include "petscdmstag.h"
#include "petscdmproduct.h"
PetscErrorCode DMStagGetDOF(DM dm, PetscInt *dof0, PetscInt *dof1, PetscInt *dof2, PetscInt *dof3)
Not Collective
Input Parameter#
dm - the
DMSTAGobject
Output Parameters#
dof0 - the number of points per 0-cell (vertex/node)
dof1 - the number of points per 1-cell (element in 1D, edge in 2D and 3D)
dof2 - the number of points per 2-cell (element in 2D, face in 3D)
dof3 - the number of points per 3-cell (element in 3D)
See Also#
DMSTAG: Staggered, Structured Grid, DMSTAG, DMStagGetCorners(), DMStagGetGhostCorners(), DMStagGetGlobalSizes(), DMStagGetStencilWidth(), DMStagGetBoundaryTypes(), DMStagGetLocationDOF(), DMDAGetDof()
Level#
beginner
Location#
Examples#
src/dm/impls/stag/tests/ex10.c
src/dm/impls/stag/tests/ex12.c
src/dm/impls/stag/tests/ex13.c
src/dm/impls/stag/tests/ex17.c
src/dm/impls/stag/tests/ex18.c
src/dm/impls/stag/tests/ex40.c
src/dm/impls/stag/tests/ex43.c
src/dm/impls/stag/tests/ex50.c
src/dm/impls/stag/tests/ex7.c
src/dm/impls/stag/tests/ex9.c
Index of all DMStag routines
Table of Contents for all manual pages
Index of all manual pages