PetscDASetNDOF#

Set the number of degrees of freedom per grid point

Synopsis#

Logically Collective

Input Parameters#

  • da - the PetscDA context

  • ndof - 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#

src/ml/da/interface/petscda.c

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