petsc-3.7.1 2016-05-15
Report Typos and Errors

VecStrideScatter

Scatters a single component from a vector into a multi-component vector.

Synopsis

#include "petscvec.h" 
PetscErrorCode  VecStrideScatter(Vec s,PetscInt start,Vec v,InsertMode addv)
Collective on Vec Many br

Input Parameter

s - the single-component vector Many br
start - starting point of the subvector (defined by a stride) Many br
addv - one of ADD_VALUES,INSERT_VALUES,MAX_VALUES Many br

Output Parameter

v -the location where the subvector is scattered (the multi-component vector) Many br

Notes

One must call VecSetBlockSize() on the multi-component vector before this Many brroutine to set the stride information, or use a vector created from a multicomponent DMDA. Many br

The parallel layout of the vector and the subvector must be the same; Many bri.e., nlocal of v = stride*(nlocal of s) Many br

Not optimized; could be easily Many br

Many br

See Also

VecStrideNorm(), VecStrideGather(), VecStrideMin(), VecStrideMax(), VecStrideGatherAll(),
VecStrideScatterAll(), VecStrideSubSetScatter(), VecStrideSubSetGather() Many br

Level:advanced
Location:
src/vec/vec/utils/vinv.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/vec/vec/examples/tutorials/ex12.c.html
src/vec/vec/examples/tutorials/ex16.c.html