X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..5089a0a98b27f5eeee62321dff4f025f1648f025:/src/smpi/mpi/smpi_group.cpp diff --git a/src/smpi/mpi/smpi_group.cpp b/src/smpi/mpi/smpi_group.cpp index cbd973a064..00d32b2a58 100644 --- a/src/smpi/mpi/smpi_group.cpp +++ b/src/smpi/mpi/smpi_group.cpp @@ -7,9 +7,6 @@ #include "smpi_group.hpp" #include "smpi_comm.hpp" #include -#include - -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_group, smpi, "Logging specific to SMPI (group)"); simgrid::smpi::Group mpi_MPI_GROUP_EMPTY; MPI_Group MPI_GROUP_EMPTY=&mpi_MPI_GROUP_EMPTY; @@ -106,7 +103,6 @@ int Group::compare(MPI_Group group2) 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_) { @@ -115,7 +111,7 @@ int Group::incl(int n, const int* ranks, MPI_Group* newgroup) this->ref(); } else { *newgroup = new Group(n); - for (i = 0; i < n; i++) { + for (int i = 0; i < n; i++) { s4u::Actor* actor = this->actor(ranks[i]); // ranks[] was passed as a param! (*newgroup)->set_mapping(actor, i); }