# DMInterpolationGetVector
Gets a `Vec` which can hold all the interpolated field values 
## Synopsis
```
#include "petscdmplex.h" 
#include "petscsnes.h"   
PetscErrorCode DMInterpolationGetVector(DMInterpolationInfo ctx, Vec *v)
```
Collective


## Input Parameter

- ***ctx -*** the context



## Output Parameter

- ***v  -*** a vector capable of holding the interpolated field values



## Note
This vector should be returned using `DMInterpolationRestoreVector()`.




## See Also
 `DMInterpolationInfo`, `DMInterpolationRestoreVector()`, `DMInterpolationEvaluate()`, `DMInterpolationAddPoints()`, `DMInterpolationCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/dmplexsnes.c.html#DMInterpolationGetVector">src/snes/utils/dmplexsnes.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmplexsnes.c)


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