petsc-3.9.4 2018-09-11
Report Typos and Errors

VecRestoreArrayPair

Returns a pair of pointers for two vectors that may be common. When not common the first is read only

Synopsis

PETSC_STATIC_INLINE PetscErrorCode VecRestoreArrayPair(Vec x,Vec y,PetscScalar **xv,PetscScalar **yv)
Logically Collective on Vec

Input Parameters

x - the vector
y - the second vector

Output Parameters

xv - location to put pointer to the first array
yv - location to put pointer to the second array

Not available from Fortran

See Also

VecGetArray(), VecGetArrayRead(), VecGetArrayPair()

Level

developer

Location

src/vec/vscat/../../../include/petscvec.h
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages