# PetscCommBuildTwoSidedSetType
set algorithm to use when building two-sided communication 
## Synopsis
```
#include "petscsys.h"  
PetscErrorCode PetscCommBuildTwoSidedSetType(MPI_Comm comm, PetscBuildTwoSidedType twosided)
```
Logically Collective


## Input Parameters

- ***comm -*** `PETSC_COMM_WORLD`
- ***twosided -*** algorithm to use in subsequent calls to `PetscCommBuildTwoSided()`





## Note
This option is currently global, but could be made per-communicator.


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

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/mpits.c.html#PetscCommBuildTwoSidedSetType">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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
