:orphan:
# PetscSFCreateRemoteOffsets
Create offsets for point data on remote processes 
## Synopsis
```
#include "petscsf.h"   
PetscErrorCode PetscSFCreateRemoteOffsets(PetscSF sf, PetscSection rootSection, PetscSection leafSection, PetscInt **remoteOffsets)
```
Collective


## Input Parameters

- ***sf          -*** The `PetscSF`
- ***rootSection -*** Data layout of remote points for outgoing data (this is layout for SF roots)
- ***leafSection -*** Data layout of local points for incoming data  (this is layout for SF leaves)



## Output Parameter

- ***remoteOffsets -*** Offsets for point data on remote processes (these are offsets from the root section), or NULL





## Fortran Notes
In Fortran, use PetscSFCreateRemoteOffsetsF90()


## See Also
 `PetscSF`, `PetscSFCreate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/utils/sfutils.c.html#PetscSFCreateRemoteOffsets">src/vec/is/sf/utils/sfutils.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/tutorials/ex14.c.html">src/dm/impls/plex/tutorials/ex14.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/utils/sfutils.c)


[Index of all PetscSF routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
