# PetscSFWindowGetDataTypes
gets composite local and remote data types for each rank 
## Synopsis
```
#include "petscsf.h" 
static PetscErrorCode PetscSFWindowGetDataTypes(PetscSF sf, MPI_Datatype unit, const MPI_Datatype **localtypes, const MPI_Datatype **remotetypes)
```
Not Collective


## Input Parameters

- ***sf -*** star forest of type `PETSCSFWINDOW`
- ***unit -*** data type for each node



## Output Parameters

- ***localtypes -*** types describing part of local leaf buffer referencing each remote rank
- ***remotetypes -*** types describing part of remote root buffer referenced for each remote rank





## See Also
 `PetscSF`, `PETSCSFWINDOW`, `PetscSFSetGraph()`, `PetscSFView()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/impls/window/sfwindow.c.html#PetscSFWindowGetDataTypes">src/vec/is/sf/impls/window/sfwindow.c</A>


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


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