MPI_Sendrecv(3)

MPI_Sendrecv - Sends and receives a message

Showing IRIX 6.5.30 (default release). Added in IRIX 6.5.19.

NAME
     MPI_Sendrecv - Sends and receives a message

SYNOPSIS
     C:

          #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;


     C++:

          #include <mpi.h>

          void Comm::Sendrecv(
          const void        *sendbuf,
          int               sendcount,
          const Datatype&   sendtype,
          int               dest,
          int               sendtag,
          void              *recvbuf,
          int               recvcount,
          const Datatype&   recvtype,
          int               source,
          int               recvtag) const


     Fortran:

          INCLUDE "mpif.h" (or USE MPI)

          <type> SENDBUF(*), RECVBUF(*)
          INTEGER sendcount, sendtype, dest, sendtag,
          recvcount, recvtype, source, recvtag,  comm,
          status(MPI_STATUS_SIZE), ierror

          CALL MPI_SENDRECV(*sendbuf, sendcount, sendtype, dest,
          sendtag, *recvbuf, recvcount, recvtype, source,
          recvtag, comm, status(MPI_STATUS_SIZE), ierror)
STANDARDS
     This release implements the MPI 1.2 standard, as documented by the MPI
     Forum in the spring 1997 release of MPI:  A Message Passing Interface
     Standard.

DESCRIPTION
     The MPI_Sendrecv routine sends and receives a message.  This routine
     accepts the following parameters:

     sendbuf        Specifies the initial address of the send buffer (choice)

     sendcount      Specifies the number of elements in the send buffer
                    (integer)

     sendtype       Specifies the type of elements in the send buffer (handle)

     dest           Specifies the rank of the destination (integer)

     sendtag        Specifies the send tag (integer)

     recvcount      Specifies the number of elements in the receive buffer
                    (integer)

     recvtype       Specifies the type of elements in the receive buffer
                    (handle)

     source         Specifies the rank of the source (integer)

     recvtag        Specifies the receive tag (integer)

     comm           Specifies the communicator (handle)

     recvbuf        Returns the initial address of the receive buffer (choice)

     status         Returns the status object (as it relates to the receive
                    operation) (status)

     ierror         Specifies the return code value for successful completion,
                    which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the
                    mpif.h file.