# DMRestoreNamedLocalVector
restore access to a named, persistent local vector 
## Synopsis
```
#include "petscdm.h" 
PetscErrorCode DMRestoreNamedLocalVector(DM dm, const char *name, Vec *X)
```
Not Collective


## Input Parameters

- ***dm -*** DM on which the vector was gotten
- ***name -*** name under which the vector was gotten
- ***X -*** Vec to restore





## See Also
 `DMRestoreNamedGlobalVector()`, `DMGetNamedLocalVector()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/interface/dmget.c.html#DMRestoreNamedLocalVector">src/dm/interface/dmget.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex29.c.html">src/ts/tutorials/ex29.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/interface/dmget.c)


[Index of all DM routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
