# DMPlexDistributeOwnership
Compute owner information for shared points. This basically gets two-sided for an SF. 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexDistributeOwnership(DM dm, PetscSection rootSection, IS *rootrank, PetscSection leafSection, IS *leafrank)
```
Collective on dm


## Input Parameter

- ***dm -*** The DM



## Output Parameters

- ***rootSection -*** The number of leaves for a given root point
- ***rootrank    -*** The rank of each edge into the root point
- ***leafSection -*** The number of processes sharing a given leaf point
- ***leafrank    -*** The rank of each process sharing a leaf point





## See Also
 `DMPlexCreateOverlapLabel()`, `DMPlexDistribute()`, `DMPlexDistributeOverlap()`

## Level
developer

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plexdistribute.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)  
