- auto adst = ibModel->active_nodes.find(dst->get_name());
- if (adst != ibModel->active_nodes.end()) {
- act_dst = adst->second;
- } else {
- throw std::out_of_range(std::string("Could not find '") + dst->get_cname() + "' active comms !");
- }
-
- ibModel->active_comms[action]=std::make_pair(act_src, act_dst);
-
- ibModel->updateIBfactors(action, act_src, act_dst, 0);
+ ibModel->active_comms[&action] = std::make_pair(act_src, act_dst);
+ ibModel->updateIBfactors(&action, act_src, act_dst, 0);