VecRestoreArrayRead#

Restore array obtained with VecGetArrayRead()

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecRestoreArrayRead(Vec x, const PetscScalar **a)

Not Collective

Input Parameters#

  • x - the vector

  • a - the array

Fortran Notes#

VecRestoreArrayRead() Fortran binding is deprecated (since PETSc 3.19), use VecRestoreArrayReadF90()

See Also#

Vectors and Parallel Data, Vec, VecRestoreArrayReadF90(), VecGetArray(), VecRestoreArray(), VecGetArrayPair(), VecRestoreArrayPair()

Level#

beginner

Location#

src/vec/vec/interface/rvector.c

Examples#

src/vec/is/sf/tutorials/ex2.c
src/ts/tutorials/ex20td.c
src/ts/tutorials/ex41.c
src/ts/tutorials/ex20opt_ic.c
src/vec/vec/tutorials/ex10.c
src/ts/tutorials/ex44.c
src/vec/is/sf/tutorials/ex3.c
src/ts/tutorials/ex16fwd.c
src/ts/tutorials/ex36A.c
src/ts/tutorials/ex11.c

Implementations#

VecRestoreArrayRead_Nest() in src/vec/vec/impls/nest/vecnest.c


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