Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
nicer API to the Netcard type
[simgrid.git] / src / surf / surf_routing_cluster_torus.cpp
index 8cd9b74..2d08077 100644 (file)
@@ -115,7 +115,7 @@ namespace simgrid {
       XBT_VERB("torus_get_route_and_latency from '%s'[%d] to '%s'[%d]",
           src->name(), src->id(), dst->name(), dst->id());
 
-      if (dst->getRcType() == SURF_NETWORK_ELEMENT_ROUTER || src->getRcType() == SURF_NETWORK_ELEMENT_ROUTER)
+      if (dst->isRouter() || src->isRouter())
         return;
 
       if ((src->id() == dst->id()) && has_loopback_) {