# PetscSFGetType
Get the `PetscSF` communication implementation 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode PetscSFGetType(PetscSF sf, PetscSFType *type)
```
Not Collective


## Input Parameter

- ***sf  -*** the `PetscSF` context



## Output Parameter

- ***type -*** the `PetscSF` type name





## See Also
 `PetscSFType`, `PetscSFSetType()`, `PetscSFCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/sf.c.html#PetscSFGetType">src/vec/is/sf/interface/sf.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/interface/sf.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)  
