Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added stupid comment to smpi_group.cpp
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Mon, 22 Jan 2018 23:33:57 +0000 (00:33 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 24 Jan 2018 14:58:22 +0000 (15:58 +0100)
With all the different class members around, like
actor_to_rank_, rank_to_actor_, ..., I didn't realize that
this value was passed in as a param. Hope this comment will
save someone a few moments in the future.

src/smpi/mpi/smpi_group.cpp

index f3715b1..2128c4c 100644 (file)
@@ -136,7 +136,7 @@ int Group::incl(int n, int* ranks, MPI_Group* newgroup)
   } else {
     *newgroup = new Group(n);
     for (i = 0; i < n; i++) {
   } else {
     *newgroup = new Group(n);
     for (i = 0; i < n; i++) {
-      ActorPtr actor = this->actor(ranks[i]);
+      ActorPtr actor = this->actor(ranks[i]); // ranks[] was passed as a param!
       (*newgroup)->set_mapping(actor, i);
     }
   }
       (*newgroup)->set_mapping(actor, i);
     }
   }