DMLabel — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# DMLabel

Object which encapsulates a subset of the mesh from a `DM`

## Synopsis

    typedef struct _p_DMLabel *DMLabel;

## Note

A label consists of a set of points on a `DM`

## See Also

DM Basics, `DM`, `DMPlexCreate()`, `DMLabelCreate()`, `DMLabelView()`, `DMLabelDestroy()`, `DMPlexCreateLabelField()`, `DMLabelGetDefaultValue()`, `DMLabelSetDefaultValue()`, `DMLabelDuplicate()`, `DMLabelGetValue()`, `DMLabelSetValue()`, `DMLabelAddStratum()`, `DMLabelAddStrata()`, `DMLabelInsertIS()`, `DMLabelGetNumValues()`, `DMLabelGetValueIS()`, `DMLabelGetStratumSize()`, `DMLabelComputeIndex()`, `DMLabelDestroyIndex()`, `DMLabelDistribute()`, `DMLabelConvertToSection()`

## Level

developer

## Location

include/petscdmlabeltypes.h

## Examples

src/dm/impls/plex/tutorials/ex5.c
src/dm/impls/plex/tutorials/ex19.c
src/dm/impls/plex/tutorials/ex10.c
src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/plex/tutorials/ex9.c
src/dm/impls/plex/tutorials/ex8.c
src/dm/impls/plex/tutorials/ex1f90.F90
src/dm/impls/plex/tutorials/ex17.c
src/dm/label/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex18.c

## Implementations

_p_DMLabel in include/petsc/private/dmlabelimpl.h

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