DMFieldGetType#
Gets the DMFieldType name (as a string) from the DMField.
Synopsis#
#include "petscdmfield.h"
#include "petscdmfield.h"
PetscErrorCode DMFieldGetType(DMField field, DMFieldType *type)
Not Collective
Input Parameter#
field - The
DMFieldcontext
Output Parameter#
type - The
DMFieldTypename
Note#
type should not be retained for later use as it will be an invalid pointer if the DMFieldType of field is changed.
See Also#
DMField, DMFieldSetType(), DMFieldType, PetscObjectTypeCompare(), PetscObjectTypeCompareAny()
Level#
advanced
Location#
src/dm/field/interface/dmfield.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages