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
Merge branch 'master' into disk
[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
868a2a9
..
5e35a9d
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_type.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_type.cpp
@@
-301,10
+301,14
@@
int PMPI_Type_get_name(MPI_Datatype datatype, char * name, int* len)
}
MPI_Datatype PMPI_Type_f2c(MPI_Fint datatype){
}
MPI_Datatype PMPI_Type_f2c(MPI_Fint datatype){
+ if(datatype==-1)
+ return MPI_DATATYPE_NULL;
return static_cast<MPI_Datatype>(simgrid::smpi::F2C::f2c(datatype));
}
MPI_Fint PMPI_Type_c2f(MPI_Datatype datatype){
return static_cast<MPI_Datatype>(simgrid::smpi::F2C::f2c(datatype));
}
MPI_Fint PMPI_Type_c2f(MPI_Datatype datatype){
+ if(datatype==MPI_DATATYPE_NULL)
+ return -1;
return datatype->c2f();
}
return datatype->c2f();
}