:orphan: # VecStrideScatterAll Scatters all the single components from separate vectors into a multi-component vector. ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecStrideScatterAll(Vec s[], Vec v, InsertMode addv) ``` Collective ## Input Parameters - ***s -*** the location where the subvectors are stored - ***addv -*** one of `ADD_VALUES`, `INSERT_VALUES`, `MAX_VALUES` ## Output Parameter - ***v -*** the multicomponent vector ## Notes One must call `VecSetBlockSize()` before this routine to set the stride information, or use a vector created from a multicomponent `DMDA`. The parallel layout of the vector and the subvector must be the same; i.e., nlocal of v = stride*(nlocal of s) Not optimized; could be easily ## See Also `Vec`, `VecStrideNorm()`, `VecStrideScatter()`, `VecStrideMin()`, `VecStrideMax()`, `VecStrideGather()`, `VecStrideScatterAll()` ## Level advanced ## Location src/vec/vec/utils/vinv.c ## Examples src/snes/tutorials/ex7.c
src/vec/vec/tutorials/ex16.c
src/vec/vec/tutorials/ex16f.F90
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/utils/vinv.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)