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.
} 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);
}
}