: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 src/sys/utils/mpits.c --- [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)