PETSc version 3.17.5
Fix/Edit manual page

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