VecRestoreArray

Restores a vector after VecGetArray() has been called.

Synopsis

int VecRestoreArray(Vec x,Scalar **a)
Not Collective

Input Parameters

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

Fortran Note

The Fortran interface is slightly different from that given below. See the users manual and petsc/src/vec/examples for details.

Keywords

vector, restore, array

See Also

VecGetArray(), VecRestoreArrays(), VecRestoreArrayF90(), VecPlaceArray()

Examples

src/vec/examples/tutorials/ex4f.F

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