:orphan: # VecRestoreKokkosView Returns a Kokkos View gotten by `VecGetKokkosView()`. ## Synopsis ``` template PetscErrorCode VecRestoreKokkosView(Vec, Kokkos::View *) ``` ## Synopsis ``` #include PetscErrorCode VecRestoreKokkosView (Vec v,Kokkos::View* kv); PetscErrorCode VecRestoreKokkosView (Vec v,Kokkos::View* kv); ``` Logically Collective ## Input Parameters - ***v -*** the vector in type of `VECKOKKOS` - ***kv -*** the Kokkos View with a user-specified template parameter MemorySpace ## Notes If the vector is not of type `VECKOKKOS`, an error will be raised. The functions are similar to `VecRestoreArrayRead()` and `VecRestoreArray()` respectively. They are the counterpart of `VecGetKokkosView()`. ## See Also `VecGetKokkosView()`, `VecRestoreKokkosViewWrite()`, `VecRestoreArray()`, `VecGetArrayRead()`, `VecGetArrays()`, `VecGetArrayF90()`, `VecGetArrayReadF90()`, `VecPlaceArray()`, `VecGetArray2d()`, `VecGetArrayPair()`, `VecRestoreArrayPair()`, `VecGetArrayWrite()`, `VecRestoreArrayWrite()` ## Level beginner ## Location include/petscvec_kokkos.hpp --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec_kokkos.hpp) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)