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
, its length will be the size of the chart ofleafSection
leafSection - Section defined on the leaf space
Note#
Caller must PetscFree()
remoteOffsets
if it was requested
Fortran Note#
Use PetscSFDestroyRemoteOffsets()
when remoteOffsets
is no longer needed.
See Also#
Level#
advanced
Location#
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages