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
convert between Fortran and C MPI_*_NULL handles
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_pmpi_info.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_info.cpp
b/src/smpi/bindings/smpi_pmpi_info.cpp
index
ca08ebf
..
82634cf
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_info.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_info.cpp
@@
-74,9
+74,13
@@
int PMPI_Info_get_valuelen( MPI_Info info, const char *key, int *valuelen, int *
}
MPI_Info PMPI_Info_f2c(MPI_Fint info){
+ if(info==-1)
+ return MPI_INFO_NULL;
return static_cast<MPI_Info>(simgrid::smpi::Info::f2c(info));
}
MPI_Fint PMPI_Info_c2f(MPI_Info info){
+ if(info==MPI_INFO_NULL)
+ return -1;
return info->c2f();
}