MPI_Recv

Blocking receive for a message.

📝 Syntax

  • r = MPI_Recv(Source, Tag)

  • [r, mpi_source, mpi_tag] = MPI_Reduce(Source, Tag, Comm)

📥 Input argument

  • Source - an integer value: rank of source.

  • Tag - an integer value: message tag.

  • Comm - a MPI_Comm object.

📤 Output argument

  • r - received value

📄 Description

This function receives an array from a source node on a given communicator with the specified tag.

Throws an exception if there is an error.

Receive arrays of arbitrary complexity, including cell arrays, structures, strings, sparse, etc ...

💡 Example

mpiexec([modulepath('mpi'), '/examples/MPI_helloworld.m'], 4)

🔗 See also

MPI_Send.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?