petsc-3.9.3 2018-07-02
Report Typos and Errors

DMCreateLabel

Create a label of the given name if it does not already exist

Synopsis

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMCreateLabel(DM dm, const char name[])
Not Collective

Input Parameters

dm - The DM object
name - The label name

Keywords

mesh

See Also

DMLabelCreate(), DMHasLabel(), DMGetLabelValue(), DMSetLabelValue(), DMGetStratumIS()

Level

intermediate

Location

src/dm/interface/dm.c

Examples

src/dm/impls/plex/examples/tutorials/ex2.c.html
src/snes/examples/tutorials/ex12.c.html
src/snes/examples/tutorials/ex56.c.html
src/snes/examples/tutorials/ex77.c.html
src/ts/examples/tutorials/ex11.c.html
src/ts/examples/tutorials/ex48.c.html

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