X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1e4f9e047bc78741855531896a027d58ccc5a381..6a6bf1eb1c1bee3ae5f014efa55daaba5a4eba0c:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 2cc3b1744f..8742488d69 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -112,10 +112,6 @@ void sg_platf_new_router(sg_platf_router_cbarg_t router) if (router->coord && strcmp(router->coord, "")) new simgrid::kernel::routing::vivaldi::Coords(netcard, router->coord); - auto cluster = dynamic_cast(current_routing); - if(cluster != nullptr) - cluster->router_ = simgrid::s4u::Engine::instance()->netcardByNameOrNull(router->id); - if (TRACE_is_enabled() && TRACE_needs_platform()) sg_instr_new_router(router); } @@ -280,8 +276,7 @@ void sg_platf_new_cluster(sg_platf_cluster_cbarg_t cluster) rankId++; } - // Add a router. It is magically used thanks to the way in which surf_routing_cluster is written, - // and it's very useful to connect clusters together + // Add a router. XBT_DEBUG(" "); XBT_DEBUG("", cluster->router_id); char *newid = nullptr; @@ -557,7 +552,7 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process) void sg_platf_new_peer(sg_platf_peer_cbarg_t peer) { simgrid::kernel::routing::VivaldiZone* as = dynamic_cast(current_routing); - xbt_assert(as, " tag can only be used in Vivaldi ASes"); + xbt_assert(as, " tag can only be used in Vivaldi netzones."); std::vector speedPerPstate; speedPerPstate.push_back(peer->speed);