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