From cbfa22fa1ba0f510cb6919c6d06b2a555f276a07 Mon Sep 17 00:00:00 2001 From: Lucas Schnorr Date: Sat, 9 Apr 2011 12:10:26 +0200 Subject: [PATCH] let the unique root AS of a platform file be the root of the hierarchy on trace --- src/instr/instr_routing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index ab222a7e2f..55063c8633 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -167,7 +167,7 @@ static void recursiveGraphExtraction (container_t container, xbt_dict_t filter) static void instr_routing_parse_start_AS () { if (getRootContainer() == NULL){ - container_t root = newContainer ("0", INSTR_AS, NULL); + container_t root = newContainer (A_surfxml_AS_id, INSTR_AS, NULL); instr_paje_init (root); currentContainer = xbt_dynar_new (sizeof(container_t), NULL); @@ -181,6 +181,8 @@ static void instr_routing_parse_start_AS () getLinkType ("MPI_LINK", getRootType(), mpi, mpi); } } + + return; } container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1); container_t new = newContainer (A_surfxml_AS_id, INSTR_AS, father); -- 2.20.1