petsc-3.11.4 2019-09-28
Report Typos and Errors

DMGetField

Return the discretization object for a given DM field

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetField(DM dm, PetscInt f, DMLabel *label, PetscObject *field)
Not collective

Input Parameters

dm - The DM
f - The field number

Output Parameters

label - The label indicating the support of the field, or NULL for the entire mesh
field - The discretization object

See Also

DMAddField(), DMSetField()

Level

intermediate

Location

src/dm/interface/dm.c

Examples

src/snes/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex62.c.html
src/snes/examples/tutorials/ex77.c.html

Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages