Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Iprobe should return flag=true when asked with stupid parameters
[simgrid.git] / 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;