#include "petscsys.h" PetscErrorCode PetscGatherMessageLengths2(MPI_Comm comm,PetscMPIInt nsends,PetscMPIInt nrecvs,const PetscMPIInt ilengths1[],const PetscMPIInt ilengths2[],PetscMPIInt **onodes,PetscMPIInt **olengths1,PetscMPIInt **olengths2)Collective
| comm | - Communicator | |
| nsends | - number of messages that are to be sent. | |
| nrecvs | - number of messages being received | |
| ilengths1 | - first array of integers of length sizeof(comm) | |
| ilengths2 | - second array of integers of length sizeof(comm) |
| onodes | - list of node-ids from which messages are expected | |
| olengths1 | - first corresponding message lengths | |
| olengths2 | - second message lengths |
The calling function deallocates the memory in onodes and olengths
To determine nrecvs, one can use PetscGatherNumberOfMessages()