# DMMoabGetFieldName
Gets the names of individual field components in multicomponent vectors associated with a DMDA. 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabGetFieldName(DM dm, PetscInt field, const char **fieldName)
```
Not Collective


## Input Parameters

- ***dm     -*** the discretization manager object
- ***field -*** field number for the DMMoab (0, 1, ... dof-1), where dof indicates the
number of degrees of freedom per node within the DMMoab



## Output Parameter

- ***fieldName -*** the name of the field (component)





## See Also
 `DMMoabSetFieldName()`, `DMMoabSetFields()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmbfield.cxx.html#DMMoabGetFieldName">src/dm/impls/moab/dmmbfield.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmbfield.cxx)


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