:orphan:
# PetscCommBuildTwoSidedGetType
get algorithm used when building two-sided communication 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscCommBuildTwoSidedGetType(MPI_Comm comm, PetscBuildTwoSidedType *twosided)
```
Logically Collective


## Output Parameters

- ***comm -*** communicator on which to query algorithm
- ***twosided -*** algorithm to use for `PetscCommBuildTwoSided()`





## See Also
 `PetscCommBuildTwoSided()`, `PetscCommBuildTwoSidedSetType()`, `PetscBuildTwoSidedType`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mpits.c.html#PetscCommBuildTwoSidedGetType">src/sys/utils/mpits.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/mpits.c)


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