From: Jean-Baptiste Hervé Date: Fri, 10 Aug 2012 12:12:42 +0000 (+0200) Subject: Platform generation: record the router id X-Git-Tag: v3_8~170 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/16fc71ed9141ceeb215950e0e570156f57ba9ea1 Platform generation: record the router id --- diff --git a/src/surf/platf_generator.c b/src/surf/platf_generator.c index 90c2d8d631..db59a92e58 100644 --- a/src/surf/platf_generator.c +++ b/src/surf/platf_generator.c @@ -653,7 +653,8 @@ void platf_generate(void) { sg_platf_new_cluster(cluster_parameters); break; case ROUTER: - router_parameters.id = bprintf("router-%d", ++last_router); + node_data->router_id = bprintf("router-%d", ++last_router); + router_parameters.id = node_data->router_id; sg_platf_new_router(&router_parameters); } }