:orphan:
# DMRestoreNamedGlobalVector
restore access to a named, persistent global vector
## Synopsis
```
#include "petscdm.h"
PetscErrorCode DMRestoreNamedGlobalVector(DM dm, const char *name, Vec *X)
```
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
`DM`, `DMGetNamedGlobalVector()`
## Level
developer
## Location
src/dm/interface/dmget.c
## Examples
src/ts/tutorials/ex29.c
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)