VecPlaceArray

Allows one to replace the array in a vector with a user-provided one. This is useful to avoid copying an array into a vector. FOR EXPERTS ONLY!

Synopsis

int VecPlaceArray(Vec vec,Scalar *array)
Not Collective

Input Parameters

vec - the vector
array - the array

Notes

You should back up the original array by calling VecGetArray() andstashing the value somewhere. Then when finished using the vector, call VecPlaceArray() with that stashed value; otherwise, you maylose access to the original array.

See Also

VecGetArray(), VecRestoreArray()

Keywords

vec, place, array

Examples

src/sles/examples/tutorials/ex13f.F
src/sles/examples/tutorials/ex13.c

Location: src/vec/utils/vinv.c
Vector Index
Table of Contents