:orphan: # VecRestoreLocalVectorRead Unmaps the local portion of a vector previously mapped into a vector using `VecGetLocalVectorRead()`. ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecRestoreLocalVectorRead(Vec v, Vec w) ``` Not Collective. ## Input parameter - ***v -*** The local portion of this vector was previously mapped into `w` using `VecGetLocalVectorRead()`. - ***w -*** The vector into which the local portion of `v` was mapped. ## See Also [](ch_vectors), `Vec`, `VecCreateLocalVector()`, `VecGetLocalVectorRead()`, `VecGetLocalVector()`, `VecGetArrayRead()`, `VecGetArray()` ## Level beginner ## Location src/vec/vec/interface/rvector.c ## Implementations VecRestoreLocalVectorRead_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)