:orphan: # VecScatterViewFromOptions View a `VecScatter` object based on values in the options database ## Synopsis ``` #include "petscsf.h" PetscErrorCode VecScatterViewFromOptions(VecScatter sf, PetscObject obj, const char name[]) ``` Collective ## Input Parameters - ***sf -*** the scatter context - ***obj -*** Optional object - ***name -*** command line option ## Note See `PetscObjectViewFromOptions()` for available `PetscViewer` and `PetscViewerFormat` values ## See Also [](sec_scatter), `VecScatter`, `VecScatterView()`, `PetscObjectViewFromOptions()`, `VecScatterCreate()` ## 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)