Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
standard says handle should be set to MPI_DATATYPE_NULL.
authorAugustin Degomme <adegomme@gmail.com>
Mon, 8 Jun 2020 10:23:35 +0000 (12:23 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Mon, 8 Jun 2020 10:23:35 +0000 (12:23 +0200)
src/smpi/bindings/smpi_pmpi_type.cpp

index 056316c..49b1a87 100644 (file)
@@ -17,6 +17,7 @@ int PMPI_Type_free(MPI_Datatype * datatype)
     return MPI_ERR_TYPE;
   } else {
     simgrid::smpi::Datatype::unref(*datatype);
+    *datatype=MPI_DATATYPE_NULL;
     return MPI_SUCCESS;
   }
 }