:orphan: # VecScatterSetUp Sets up the `VecScatter` to be able to actually scatter information between vectors ## Synopsis ``` #include "petscsf.h" PetscErrorCode VecScatterSetUp(VecScatter sf) ``` Collective ## Input Parameter - ***sf -*** the scatter context ## See Also [](sec_scatter), `VecScatter`, `VecScatterCreate()`, `VecScatterCopy()` ## Level intermediate ## Location src/vec/is/sf/interface/vscat.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/vscat.c) [Index of all PetscSF routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)