MPI_Gather

--- Gathers together values from a group of processes

Input Parameters

sendbuf
starting address of send buffer (choice)
sendcount
number of elements in send buffer (integer)
sendtype
data type of send buffer elements (handle)
recvcount
number of elements for any single receive (integer, significant only at root)
recvtype
data type of recv buffer elements (significant only at root) (handle)
root
rank of receiving process (integer)
comm
communicator (handle)

Output Parameter

recvbuf
address of receive buffer (choice, significant only at root)

Synopsis


#include "mpi.h"
int MPI_Gather ( sendbuf, sendcnt, sendtype, recvbuf, recvcount, recvtype, 
   root, comm )
void             *sendbuf;
int               sendcnt;
MPI_Datatype      sendtype;
void             *recvbuf;
int               recvcount;
MPI_Datatype      recvtype;
int               root;
MPI_Comm          comm;

Location: gather.c