DMSetField#
Set the discretization object for a given DM
field. Usually one would call DMAddField()
which automatically handles the field numbering.
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetField(DM dm, PetscInt f, DMLabel label, PetscObject disc)
Logically Collective
Input Parameters#
dm - The
DM
f - The field number
label - The label indicating the support of the field, or
NULL
for the entire meshdisc - The discretization object
See Also#
DM Basics, DM
, DMAddField()
, DMGetField()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex23.c
src/ts/tutorials/ex45.c
src/ts/tutorials/ex77.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex53.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex47.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex76.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages