A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
standard says handle should be set to MPI_DATATYPE_NULL.
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_type.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_type.cpp
b/src/smpi/bindings/smpi_pmpi_type.cpp
index
056316c
..
49b1a87
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_type.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_type.cpp
@@
-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;
}
}