petsc-main 2021-03-04
Report Typos and Errors

VecRestoreArrayAndMemType

Restores a vector after VecGetArrayAndMemType() has been called.

Synopsis

#include "petscvec.h"   
PetscErrorCode VecRestoreArrayAndMemType(Vec x,PetscScalar **a)
Logically Collective on Vec

Input Parameters

x - the vector
a - location of pointer to array obtained from VecGetArrayAndMemType()

See Also

VecGetArrayAndMemType(), VecGetArray(), VecRestoreArrayRead(), VecRestoreArrays(), VecRestoreArrayF90(), VecRestoreArrayReadF90(),
VecPlaceArray(), VecRestoreArray2d(), VecGetArrayPair(), VecRestoreArrayPair()

Level

beginner

Location

src/vec/vec/interface/rvector.c

Implementations

VecRestoreArrayAndMemType_SeqKokkos in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx
VecRestoreArrayAndMemType_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda.c

Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages