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_group.cpp
diff --git
a/src/smpi/bindings/smpi_pmpi_group.cpp
b/src/smpi/bindings/smpi_pmpi_group.cpp
index
4155bf6
..
83b08ed
100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_group.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_group.cpp
@@
-182,9
+182,13
@@
int PMPI_Group_range_excl(MPI_Group group, int n, int ranges[][3], MPI_Group * n
}
MPI_Group PMPI_Group_f2c(MPI_Fint group){
+ if(group==-1)
+ return MPI_GROUP_NULL;
return simgrid::smpi::Group::f2c(group);
}
MPI_Fint PMPI_Group_c2f(MPI_Group group){
+ if(group==MPI_GROUP_NULL)
+ return -1;
return group->c2f();
}