Have you tried MPI_Probe?
Shaun Jackman wrote:
> Is there a function similar to MPI_Test that doesn't deallocate the
> MPI_Request object? I would like to test if a message has been
> received (MPI_Irecv), check its tag, and dispatch the MPI_Request to
> another function based on that tag.
> users mailing list