# DMDAGetCoordinateArray
Gets an array containing the coordinates of the `DMDA` 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDAGetCoordinateArray(DM dm, void *xc)
```
Not collective


## Input Parameter

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



## Output Parameter

- ***xc -*** the coordinates





## Fortran Note
Not supported from Fortran


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

## Level
intermediate

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