:orphan: # DMPlexPartitionLabelCreateSF Create a star forest from a label that assigns ranks to points ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexPartitionLabelCreateSF(DM dm, DMLabel label, PetscSF *sf) ``` ## Input Parameters - ***dm -*** The `DM` - ***label -*** `DMLabel` assigning ranks to remote roots ## Output Parameter - ***sf -*** The star forest communication context encapsulating the defined mapping ## Note The incoming label is a receiver mapping of remote points to their parent rank. ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMLabel`, `PetscSF`, `DMPlexDistribute()`, `DMPlexCreateOverlap()` ## Level developer ## Location src/dm/impls/plex/plexpartition.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexpartition.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)