# 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
 [](chapter_vectors), `Vec`, `VecCreateLocalVector()`, `VecGetLocalVectorRead()`, `VecGetLocalVector()`, `VecGetArrayRead()`, `VecGetArray()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/interface/rvector.c.html#VecRestoreLocalVectorRead">src/vec/vec/interface/rvector.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/nest/vecnest.c.html#VecRestoreLocalVectorRead_Nest">VecRestoreLocalVectorRead_Nest in src/vec/vec/impls/nest/vecnest.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/seqcuda/veccuda2.cu.html#VecRestoreLocalVectorRead_SeqCUDA">VecRestoreLocalVectorRead_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda2.cu</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/seqhip/vechip2.hip.c.html#VecRestoreLocalVectorRead_SeqHIP">VecRestoreLocalVectorRead_SeqHIP in src/vec/vec/impls/seq/seqhip/vechip2.hip.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
