# 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
 `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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
