: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 src/vec/is/sf/utils/sfutils.c --- [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)