:orphan:
# DMDARestoreCoordinateArray
Sets an array containing the coordinates of the `DMDA`
## Synopsis
```
#include "petscdmda.h"
PetscErrorCode DMDARestoreCoordinateArray(DM dm, void *xc)
```
Not Collective; No Fortran Support
## Input Parameters
- ***dm -*** the `DMDA`
- ***xc -*** the coordinates
## See Also
`DM`, `DMDA`, `DMDASetCoordinateName()`, `DMDASetFieldName()`, `DMDAGetFieldName()`, `DMDAGetCoordinateArray()`
## Level
intermediate
## Location
src/dm/impls/da/dacorn.c
## Examples
src/ts/tutorials/extchemfield.c
---
[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)