topodistInit

Initialize the routines to provide data about communication topology

Synopsis

int topodistInit(MPI_Comm comm, int nsend, int sendrank[],
                int nrecv, int recvrank[],
                topoinfo_t *ti, topodist_t **td)

Input Parameters

comm
MPI Communicator
nsend
Number of processes that this process sends to
sendrank
Array of ranks of processes that this process sends to
nrecv
Number of processes that this process receives from
recvrank
Array of ranks of processes that this process receives from
ti
Pointer to valid (initialized) topoinfo_t

Output Parameters

td
Pointer to valid and initialized topodist_t structure

Return Value