DMHasLabel#
Determine whether the DM has a label of a given name
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMHasLabel(DM dm, const char name[], PetscBool *hasLabel)
Not Collective
Input Parameters#
dm - The
DMobjectname - The label name
Output Parameter#
hasLabel -
PETSC_TRUEif the label is present
See Also#
DMLabel, DMGetLabel(), DMGetLabelByNum(), DMCreateLabel(), DMGetLabelValue(), DMSetLabelValue(), DMGetStratumIS()
Level#
intermediate
Location#
Examples#
src/dm/impls/plex/tutorials/ex10.c.html
src/snes/tutorials/ex12.c.html
src/ts/tutorials/ex11_sa.c.html
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages