petsc-3.13.6 2020-09-29
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/tutorials/ex56.c.html
src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex77.c.html

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