| | 1 | = MPI_Recv = |
| | 2 | Basic receive |
| | 3 | = Synopsis = |
| | 4 | |
| | 5 | #include "mpi.h" |
| | 6 | int MPI_Recv( void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status *status ) |
| | 7 | |
| | 8 | = Output Parameters = |
| | 9 | {{{ |
| | 10 | buf initial address of receive buffer (choice) |
| | 11 | status status object (Status) |
| | 12 | }}} |
| | 13 | |
| | 14 | = Input Parameters = |
| | 15 | {{{ |
| | 16 | count maximum number of elements in receive buffer (integer) |
| | 17 | datatype datatype of each receive buffer element (handle) |
| | 18 | source rank of source (integer) |
| | 19 | tag message tag (integer) |
| | 20 | comm communicator (handle) |
| | 21 | }}} |
| | 22 | = Notes = |
| | 23 | The count argument indicates the maximum length of a message; the actual number can be determined with MPI_Get_count. |
| | 24 | |