# VecScatterSetFromOptions
Configures the vector scatter from the options database. 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode VecScatterSetFromOptions(VecScatter sf)
```
Collective


## Input Parameter

- ***sf -*** The vector scatter



## Notes
To see all options, run your program with the -help option, or consult the users manual.

Must be called before `VecScatterSetUp()` but before the vector scatter is used.




## See Also
 [](sec_scatter), `VecScatter`, `VecScatterCreate()`, `VecScatterDestroy()`, `VecScatterSetUp()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/vscat.c.html#VecScatterSetFromOptions">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
