:orphan: # VecRestoreArrayRead Restore array obtained with `VecGetArrayRead()` ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecRestoreArrayRead(Vec x, const PetscScalar **a) ``` Not Collective ## Input Parameters - ***vec -*** the vector - ***array -*** the array ## Fortran Note `VecRestoreArrayRead()` Fortran binding is deprecated (since PETSc 3.19), use `VecRestoreArrayReadF90()` ## See Also [](ch_vectors), `Vec`, `VecRestoreArrayReadF90()`, `VecGetArray()`, `VecRestoreArray()`, `VecGetArrayPair()`, `VecRestoreArrayPair()` ## Level beginner ## Location src/vec/vec/interface/rvector.c ## Examples src/dm/field/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/plex/tutorials/ex8.c
src/dm/tutorials/ex22.c
src/dm/tutorials/swarm_ex3.c
src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex35.cxx
src/ksp/ksp/tutorials/ex36.cxx
src/ksp/ksp/tutorials/ex70.c
src/ksp/ksp/tutorials/ex71.c
src/ksp/ksp/tutorials/ex73.c
## Implementations VecRestoreArrayRead_Nest in src/vec/vec/impls/nest/vecnest.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)