# DMPlexCreateTwoSidedProcessSF
Create an SF 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 on dm


## Input Parameters

- ***dm      -*** The DM
- ***sfPoint -*** The PetscSF which encodes point connectivity
- ***rootRankSection -*** 
- ***rootRanks -*** 
- ***leftRankSection -*** 
- ***leafRanks -*** 



## Output Parameters

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





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