:orphan:
# DMDARestoreArray
Restores an array of derivative types for a `DMDA` 
## Synopsis
```
#include "petscdmda.h"   
PetscErrorCode DMDARestoreArray(DM da, PetscBool ghosted, void *vptr)
```

## Input Parameters

- ***da -*** information about my local patch
- ***ghosted -*** do you want arrays for the ghosted or nonghosted patch
- ***vptr -*** array data structured





## See Also
 `DM`, `DMDA`, `DMDAGetArray()`

## Level
advanced

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

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/da/dalocal.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)  
