#include "petscsys.h" PetscErrorCode PetscCommBuildTwoSided(MPI_Comm comm,PetscMPIInt count,MPI_Datatype dtype,PetscInt nto,const PetscMPIInt *toranks,const void *todata,PetscInt *nfrom,PetscMPIInt **fromranks,void *fromdata)Collective on MPI_Comm
comm | - communicator | |
count | - number of entries to send/receive (must match on all ranks) | |
dtype | - datatype to send/receive from each rank (must match on all ranks) | |
nto | - number of ranks to send data to | |
toranks | - ranks to send to (array of length nto) | |
todata | - data to send to each rank (packed) |
nfrom | - number of ranks receiving messages from | |
fromranks | - ranks receiving messages from (length nfrom; caller should PetscFree()) | |
fromdata | - packed data from each rank, each with count entries of type dtype (length nfrom, caller responsible for PetscFree()) |
Basic data types as well as contiguous types are supported, but non-contiguous (e.g., strided) types are not.
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