PetscDASetNDOF#
Set the number of degrees of freedom per grid point
Synopsis#
PetscErrorCode PetscDASetNDOF(PetscDA da, PetscInt ndof)
Logically Collective
Input Parameters#
da - the
PetscDAcontextndof - number of degrees of freedom per grid point (e.g., 2 for shallow water with h and hu)
Note#
This must be called before PetscDASetUp(). The default is 1 (scalar field).
Developer Note#
It is a limitation that each grid point needs the same number of degrees of freedom.
See Also#
PetscDA, PetscDAGetNDOF(), PetscDASetUp(), PetscDASetSizes()
Level#
intermediate
Location#
Examples#
src/ml/da/tutorials/ex4.c
src/ml/da/tutorials/ex3.c
Index of all PetscDA routines
Table of Contents for all manual pages
Index of all manual pages