# PetscSFScatterBegin
begin pointwise scatter operation from multi-roots to leaves, to be completed with `PetscSFScatterEnd()` 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode PetscSFScatterBegin(PetscSF sf, MPI_Datatype unit, const void *multirootdata, void *leafdata)
```
Collective


## Input Parameters

- ***sf -*** star forest
- ***unit -*** data type
- ***multirootdata -*** root buffer to send to each leaf, one unit of data per leaf



## Output Parameter

- ***leafdata -*** leaf data to be update with personal data from each respective root





## See Also
 `PetscSF`, `PetscSFComputeDegreeBegin()`, `PetscSFScatterBegin()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/sf.c.html#PetscSFScatterBegin">src/vec/is/sf/interface/sf.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/tutorials/ex1.c.html">src/vec/is/sf/tutorials/ex1.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/sf.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)  
