:orphan: # VecRestoreArrayWriteAndMemType Restore array obtained with `VecGetArrayWriteAndMemType()` ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecRestoreArrayWriteAndMemType(Vec x, PetscScalar **a) ``` Not Collective; No Fortran Support ## Input Parameters - ***vec -*** the vector - ***array -*** the array ## See Also [](ch_vectors), `Vec`, `VecGetArrayWriteAndMemType()`, `VecRestoreArrayAndMemType()`, `VecGetArray()`, `VecRestoreArray()`, `VecGetArrayPair()`, `VecRestoreArrayPair()` ## Level beginner ## Location src/vec/vec/interface/rvector.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/rvector.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)