VecRestoreArrays

Restores a group of vectors after VecGetArrays() has been called.

Synopsis

int VecRestoreArrays(const Vec x[],int n,Scalar **a[])
Not Collective

Input Parameters

x - the vector
n - the number of vectors
a - location of pointer to arrays obtained from VecGetArrays()

Notes

For regular PETSc vectors this routine does not involve any copies. For any special vectors that do not store local vector data in a contiguous array, this routine will copy the data back into the underlying vector data structure from the arrays obtained with VecGetArrays().

Fortran Note

This routine is not supported in Fortran.

Keywords

vector, restore, arrays

See Also

VecGetArrays(), VecRestoreArray()

Level:intermediate
Location:src/vec/interface/vector.c
Vector Index
Table of Contents