:orphan:
# DMPlexCreateTwoSidedProcessSF
Create an `PetscSF` which just has process connectivity 
## Synopsis
```
#include "petscdmplex.h"   
#include "petscdmlabel.h"  
PetscErrorCode DMPlexCreateTwoSidedProcessSF(DM dm, PetscSF sfPoint, PetscSection rootRankSection, IS rootRanks, PetscSection leafRankSection, IS leafRanks, IS *processRanks, PetscSF *sfProcess)
```
Collective


## Input Parameters

- ***dm      -*** The `DM`
- ***sfPoint -*** The `PetscSF` which encodes point connectivity
- ***rootRankSection -*** to be documented
- ***rootRanks -*** to be documented
- ***leftRankSection -*** to be documented
- ***leafRanks -*** to be documented



## Output Parameters

- ***processRanks -*** A list of process neighbors, or `NULL`
- ***sfProcess    -*** An `PetscSF` encoding the two-sided process connectivity, or `NULL`





## See Also
 `DMPLEX`, `PetscSFCreate()`, `DMPlexCreateProcessSF()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexdistribute.c.html#DMPlexCreateTwoSidedProcessSF">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
