:orphan:
# DMDAGetFieldNames
Gets the name of each component in the vector associated with the `DMDA` 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAGetFieldNames(DM da, const char *const **names)
```
Not Collective; names will contain a common value; No Fortran Support


## Input Parameter

- ***dm -*** the `DMDA` object



## Output Parameter

- ***names -*** the names of the components, final string is `NULL`, will have the same number of entries as the dof used in creating the `DMDA`





## Fortran Note
Use `DMDAGetFieldName()`


## See Also
 `DM`, `DMDA`, `DMDAGetFieldName()`, `DMDASetCoordinateName()`, `DMDAGetCoordinateName()`, `DMDASetFieldName()`, `DMDASetFieldNames()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dacorn.c.html#DMDAGetFieldNames">src/dm/impls/da/dacorn.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/extchemfield.c.html">src/ts/tutorials/extchemfield.c</A><BR>


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


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