:orphan:
# DMGetAuxiliaryLabels
Get the labels, values, and parts for all auxiliary vectors in this `DM` 
## Synopsis
```
#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetAuxiliaryLabels(DM dm, DMLabel labels[], PetscInt values[], PetscInt parts[])
```
Not Collective


## Input Parameter

- ***dm      -*** The `DM`



## Output Parameters

- ***labels  -*** The `DMLabel`s for each `Vec`
- ***values  -*** The label values for each `Vec`
- ***parts   -*** The equation parts for each `Vec`





## Note
The arrays passed in must be at least as large as `DMGetNumAuxiliaryVec()`.


## See Also
 [](ch_dmbase), `DM`, `DMGetNumAuxiliaryVec()`, `DMGetAuxiliaryVec()`, `DMGetNumAuxiliaryVec()`, `DMSetAuxiliaryVec()`, DMCopyAuxiliaryVec()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dm.c.html#DMGetAuxiliaryLabels">src/dm/interface/dm.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dm.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
