# VecCUDAResetArray
Resets a vector to use its default memory. Call this after the use of VecCUDAPlaceArray(). 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecCUDAResetArray(Vec vin)
```
Not Collective


## Input Parameters

- ***vec -*** the vector





## See Also
 `VecGetArray()`, `VecRestoreArray()`, `VecReplaceArray()`, `VecPlaceArray()`, `VecResetArray()`, `VecCUDAPlaceArray()`, `VecCUDAReplaceArray()`


## Level
developer

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


---
[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)  
