:orphan: # DMPlexPartitionLabelInvert Create a partition label of remote roots from a local root label ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexPartitionLabelInvert(DM dm, DMLabel rootLabel, PetscSF processSF, DMLabel leafLabel) ``` ## Input Parameters - ***dm -*** The `DM` - ***rootLabel -*** `DMLabel` assigning ranks to local roots - ***processSF -*** A star forest mapping into the local index on each remote rank ## Output Parameter - ***leafLabel -*** `DMLabel` assigning ranks to remote roots ## Note The rootLabel defines a send pattern by mapping local points to remote target ranks. The resulting leafLabel is a receiver mapping of remote roots to their parent rank. ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMPlexPartitionLabelCreateSF()`, `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)