:orphan: # DMStagVecRestoreArray restore access to a raw array ## Synopsis ``` PetscErrorCode DMStagVecRestoreArray(DM dm, Vec vec, void *array) ``` Logically Collective ## Input Parameters - ***dm -*** the `DMSTAG` object - ***vec -*** the `Vec` object ## Output Parameter - ***array -*** the array ## See Also [](ch_stag), `DMSTAG`, `DMStagVecGetArray()`, `DMDAVecRestoreArray()`, `DMDAVecRestoreArrayDOF()` ## Level beginner ## Location src/dm/impls/stag/stagutils.c ## Examples src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex2.c
src/dm/impls/stag/tutorials/ex3.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/stag/tutorials/ex6.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/stag/stagutils.c) [Index of all DMStag routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)