From 78a18a4acd4478b8f3ec80e1ac90f59988dbfddd Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Tue, 26 Oct 2004 12:37:19 +0000 Subject: [PATCH] corrected error checking This commit was SVN r3336. --- src/mpi/c/sendrecv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpi/c/sendrecv.c b/src/mpi/c/sendrecv.c index 139bfa089d..9e3c190628 100644 --- a/src/mpi/c/sendrecv.c +++ b/src/mpi/c/sendrecv.c @@ -37,7 +37,7 @@ int MPI_Sendrecv(void *sendbuf, int sendcount, MPI_Datatype recvtype, rc = MPI_ERR_COUNT; } else if (sendtype == MPI_DATATYPE_NULL) { rc = MPI_ERR_TYPE; - } else if (ompi_comm_peer_invalid(comm, dest)) { + } else if (dest != MPI_PROC_NULL && ompi_comm_peer_invalid(comm, dest)) { rc = MPI_ERR_RANK; } else if (sendtag < 0 || sendtag > MPI_TAG_UB_VALUE) { rc = MPI_ERR_TAG;