Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Iprobe should return flag=true when asked with stupid parameters
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 11 Jul 2013 13:59:16 +0000 (15:59 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 11 Jul 2013 19:26:35 +0000 (21:26 +0200)
src/smpi/smpi_pmpi.c

index 69de4f4..f073ed7 100644 (file)
@@ -1434,6 +1434,7 @@ int PMPI_Iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status* statu
   } else if (comm == MPI_COMM_NULL) {
     retval = MPI_ERR_COMM;
   } else if (source == MPI_PROC_NULL) {
+    *flag=TRUE;
     smpi_empty_status(status);
     status->MPI_SOURCE = MPI_PROC_NULL;
     retval = MPI_SUCCESS;