:orphan:
# VecScatterSetType
Builds a vector scatter, for a particular vector scatter implementation. 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode VecScatterSetType(VecScatter sf, VecScatterType type)
```
Collective


## Input Parameters

- ***sf -*** The `VecScatter` object
- ***type -*** The name of the vector scatter type



## Options Database Key

- ***-sf_type <type> -*** Sets the `VecScatterType`





## Note
Use `VecScatterDuplicate()` to form additional vectors scatter of the same type as an existing vector scatter.


## See Also
 [](sec_scatter), `VecScatter`, `VecScatterType`, `VecScatterGetType()`, `VecScatterCreate()`

## Level
intermediate

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