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
Introduce on_???_cb functions to shield the signals
[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 1403317b2ed5ff7a05b0fcb3fd1038b67f8a8a16..de21fc6c335217efe7f6ff4effe11318fcbbfa4f 100644
(file)
--- a/
src/smpi/bindings/smpi_pmpi_group.cpp
+++ b/
src/smpi/bindings/smpi_pmpi_group.cpp
@@
-117,7
+117,8
@@
int PMPI_Group_incl(MPI_Group group, int n, const int *ranks, MPI_Group * newgro
{
CHECK_GROUP(1, group)
CHECK_NEGATIVE(2, MPI_ERR_ARG, n)
- CHECK_NULL(3, MPI_ERR_ARG, ranks)
+ if (n != 0)
+ CHECK_NULL(3, MPI_ERR_ARG, ranks)
CHECK_NULL(4, MPI_ERR_ARG, newgroup)
CHECK_GROUP_RANKS(group, n, ranks)
return group->incl(n, ranks, newgroup);