#include "petscsys.h" PetscErrorCode PetscGatherMessageLengths(MPI_Comm comm,PetscMPIInt nsends,PetscMPIInt nrecvs,const PetscMPIInt ilengths[],PetscMPIInt **onodes,PetscMPIInt **olengths)Collective on MPI_Comm Many br
comm | - Communicator Many br | |
nsends | - number of messages that are to be sent. Many br | |
nrecvs | - number of messages being received Many br | |
ilengths | - an array of integers of length sizeof(comm) Many bra non zero ilengths[i] represent a message to i of length ilengths[i] Many br |
onodes | - list of node-ids from which messages are expected Many br | |
olengths | - corresponding message lengths Many br |
Many br
The calling function deallocates the memory in onodes and olengths Many br
To determine nrecevs, one can use PetscGatherNumberOfMessages() Many br
Level:developer
Location:src/sys/utils/mpimesg.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages