: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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/vscat.c.html#VecScatterViewFromOptions">src/vec/is/sf/interface/vscat.c</A>


---
[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)  
