Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
standard says handle should be set to MPI_DATATYPE_NULL.
[simgrid.git] / 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;
   }
 }