:orphan:
# PetscSFDistributeSection
Create a new `PetscSection` reorganized, moving from the root to the leaves of the `PetscSF` 
## Synopsis
```
#include "petscsf.h"   
PetscErrorCode PetscSFDistributeSection(PetscSF sf, PetscSection rootSection, PetscInt **remoteOffsets, PetscSection leafSection)
```
Collective


## Input Parameters

- ***sf -*** The `PetscSF`
- ***rootSection -*** Section defined on root space



## Output Parameters

- ***remoteOffsets -*** root offsets in leaf storage, or NULL
- ***leafSection -*** Section defined on the leaf space





## Fortran Notes
In Fortran, use PetscSFDistributeSectionF90()


## See Also
 `PetscSF`, `PetscSFCreate()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/utils/sfutils.c.html#PetscSFDistributeSection">src/vec/is/sf/utils/sfutils.c</A>


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