MPI_Sendrecv

--- Sends and receives a message

Input Parameters

sendbuf
initial address of send buffer (choice)
sendcount
number of elements in send buffer (integer)
sendtype
type of elements in send buffer (handle)
dest
rank of destination (integer)
sendtag
send tag (integer)
recvcount
number of elements in receive buffer (integer)
recvtype
type of elements in receive buffer (handle)
source
rank of source (integer)
recvtag
receive tag (integer)
comm
communicator (handle)

Output Parameters

recvbuf
initial address of receive buffer (choice)
status
status object (Status). This refers to the receive operation.

Synopsis


#include "mpi.h"
int MPI_Sendrecv( sendbuf, sendcount, sendtype, dest, sendtag, 
                  recvbuf, recvcount, recvtype, source, recvtag, 
                  comm, status )
void         *sendbuf;
int           sendcount;
MPI_Datatype  sendtype;
int           dest, sendtag;
void         *recvbuf;
int           recvcount;
MPI_Datatype  recvtype;
int           source, recvtag;
MPI_Comm      comm;
MPI_Status   *status;

Location: sendrecv.c