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
Reduce scope for variables.
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_group.cpp
diff --git
a/src/smpi/mpi/smpi_group.cpp
b/src/smpi/mpi/smpi_group.cpp
index
cbd973a
..
fb70b84
100644
(file)
--- a/
src/smpi/mpi/smpi_group.cpp
+++ b/
src/smpi/mpi/smpi_group.cpp
@@
-106,7
+106,6
@@
int Group::compare(MPI_Group group2)
int Group::incl(int n, const int* ranks, MPI_Group* newgroup)
{
int Group::incl(int n, const int* ranks, MPI_Group* newgroup)
{
- int i=0;
if (n == 0) {
*newgroup = MPI_GROUP_EMPTY;
} else if (n == size_) {
if (n == 0) {
*newgroup = MPI_GROUP_EMPTY;
} else if (n == size_) {
@@
-115,7
+114,7
@@
int Group::incl(int n, const int* ranks, MPI_Group* newgroup)
this->ref();
} else {
*newgroup = new Group(n);
this->ref();
} else {
*newgroup = new Group(n);
- for (i = 0; i < n; i++) {
+ for (i
nt i
= 0; i < n; i++) {
s4u::Actor* actor = this->actor(ranks[i]); // ranks[] was passed as a param!
(*newgroup)->set_mapping(actor, i);
}
s4u::Actor* actor = this->actor(ranks[i]); // ranks[] was passed as a param!
(*newgroup)->set_mapping(actor, i);
}