# 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
 `DMPlexDistribute()`, `DMPlexCreateOverlap()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexpartition.c.html#DMPlexPartitionLabelCreateSF">src/dm/impls/plex/plexpartition.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
