:orphan:
# DMMoabVecRestoreArrayRead
Restores the read-only direct access array obtained via DMMoabVecGetArray
## Synopsis
```
#include "petscdmmoab.h"
PetscErrorCode DMMoabVecRestoreArrayRead(DM dm, Vec vec, void *array)
```
Collective
## Input Parameters
- ***dm -*** The DMMoab object being set
- ***vec -*** The Vector whose underlying data is requested
- ***array -*** The local data array
## See Also
`DMMoabVecGetArrayRead()`, `DMMoabVecGetArray()`, `DMMoabVecRestoreArray()`
## Level
intermediate
## Location
src/dm/impls/moab/dmmbvec.cxx
## Examples
src/ts/tutorials/ex35.cxx
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmbvec.cxx)
[Index of all DMMOAB routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)