# DMDASetCoordinateName
Sets the name of the coordinate directions associated with a `DMDA`, for example "x" or "y" 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDASetCoordinateName(DM dm, PetscInt nf, const char name[])
```
Logically collective; name must contain a common value


## Input Parameters

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





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


## Fortran Note
Not supported from Fortran


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

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/da/dacorn.c.html#DMDASetCoordinateName">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
