On Sat, 7 Oct 2017, Allin Cottrell wrote:
After some reading on this topic it seems you just got lucky with
OpenMPI on
Linux, and in general this is something you are not supposed to do in MPI
(send/receive with the same process as destination and source). Anyway it's
pointless, just cluttering the message space.
Ah, here's a more authoritative source, the MPI-3.1 documentation at
http://mpi-forum.org/docs/ , section 3.2.4:
"Source = destination is allowed, that is, a process can send a
message to itself. (However, it is unsafe to do so with the
blocking send and receive operations described above, since this may
lead to deadlock. See Section 3.5.)"
Gretl's send and receive are blocking.
Allin