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
Fix MPI_Type_dup for derived datatypes.
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_datatype.cpp
diff --git
a/src/smpi/mpi/smpi_datatype.cpp
b/src/smpi/mpi/smpi_datatype.cpp
index
09e81eb
..
5547458
100644
(file)
--- a/
src/smpi/mpi/smpi_datatype.cpp
+++ b/
src/smpi/mpi/smpi_datatype.cpp
@@
-182,6
+182,11
@@
Datatype::~Datatype()
xbt_free(name_);
}
+MPI_Datatype Datatype::clone(){
+ int ret = MPI_SUCCESS;
+ return new Datatype(this, &ret);
+}
+
void Datatype::ref()
{
refcount_++;