:orphan:
# DMDAGetCoordinateName
Gets the name of a coordinate direction associated with a `DMDA`. 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAGetCoordinateName(DM dm, PetscInt nf, const char **name)
```
Not Collective; name will contain a common value; No Fortran Support


## Input Parameters

- ***dm -*** the `DMDA`
- ***nf -*** number for the `DMDA` (0, 1, ... dim-1)



## Output Parameter

- ***names -*** the name of the coordinate direction





## Note
It must be called after having called `DMSetUp()`.


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

## Level
intermediate

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


---
[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)  
