From 4b78b143daece4e5b11f11a7cf26cd68ac32f80b Mon Sep 17 00:00:00 2001 From: schnorr Date: Mon, 13 Dec 2010 16:44:49 +0000 Subject: [PATCH] [trace] registering in the dictionary the router containers git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9181 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/instr/instr_routing.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 05e42e49d5..7a640a2878 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -233,7 +233,10 @@ static void instr_routing_parse_start_router () container_t father = xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1); char type[INSTR_DEFAULT_STR_SIZE]; snprintf (type, INSTR_DEFAULT_STR_SIZE, "ROUTER-%s", father->type); - newContainer (A_surfxml_router_id, type, "ROUTER"); + container_t new = newContainer (A_surfxml_router_id, type, "ROUTER"); + + //register created host on the dictionary + xbt_dict_set (allContainers, A_surfxml_router_id, new, NULL); } static void instr_routing_parse_end_router () -- 2.20.1