Maps the local portion of a vector into a vector.
PetscErrorCode VecGetLocalVector(Vec v,Vec w)
Collective on v, not collective on w.
v -The vector for which the local vector is desired.
w -Upon exit this contains the local vector.
This function is similar to VecGetArray() which maps the local
portion into a raw pointer. VecGetLocalVector() is usually about as
efficient as VecGetArray() but in certain circumstances
VecGetLocalVector() can be much more efficient than VecGetArray().
This is because the construction of a contiguous array representing
the vector data required by VecGetArray() can be an expensive
operation for certain vector types. For example, for GPU vectors
VecGetArray() requires that the data between device and host is
VecRestoreLocalVector(), VecGetLocalVectorRead(), VecGetArrayRead(), VecGetArray()
ImplementationsVecGetLocalVector_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda2.cu
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages