From: degomme Date: Mon, 15 Apr 2019 10:44:47 +0000 (+0200) Subject: Don't explode here, as flatifier may try exactly to do this. X-Git-Tag: v3.22.2~124 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d7ad62659d8110fcc3bdf07b95b51cde092f10bb Don't explode here, as flatifier may try exactly to do this. --- diff --git a/src/kernel/routing/ClusterZone.cpp b/src/kernel/routing/ClusterZone.cpp index 021eddd65b..e49e486ba2 100644 --- a/src/kernel/routing/ClusterZone.cpp +++ b/src/kernel/routing/ClusterZone.cpp @@ -29,12 +29,14 @@ void ClusterZone::get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArg "Cluster routing: no links attached to the source node - did you use host_link tag?"); if ((src->id() == dst->id()) && has_loopback_) { - xbt_assert(not src->is_router(), "Routing from a cluster private router to itself is meaningless"); - - std::pair info = private_links_.at(node_pos(src->id())); - route->link_list.push_back(info.first); - if (lat) - *lat += info.first->get_latency(); + if (src->is_router()) { + XBT_WARN("Routing from a cluster private router to itself is meaningless"); + } else { + std::pair info = private_links_.at(node_pos(src->id())); + route->link_list.push_back(info.first); + if (lat) + *lat += info.first->get_latency(); + } return; }