petsc-3.7.3 2016-07-24
Report Typos and Errors

# DMGetNumLabels

Return the number of labels defined by the mesh

### Synopsis

    #include "petscdm.h"
    #include "petscdmlabel.h"
    PetscErrorCode DMGetNumLabels(DM dm, PetscInt *numLabels)

Not Collective

### Input Parameter

dm -The DM object

### Output Parameter

numLabels -the number of Labels

### Keywords

mesh

### See Also

DMGetLabelValue(), DMSetLabelValue(), DMGetStratumIS()

Level:intermediate
Location: src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/ts/examples/tutorials/ex11.c.html