From: Lucas Schnorr Date: Sat, 9 Apr 2011 10:10:26 +0000 (+0200) Subject: let the unique root AS of a platform file be the root of the hierarchy on trace X-Git-Tag: v3.6_beta2~59^2~14 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cbfa22fa1ba0f510cb6919c6d06b2a555f276a07 let the unique root AS of a platform file be the root of the hierarchy on trace --- 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);