PetscCommBuildTwoSidedSetType — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# 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

src/sys/utils/mpits.c

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages