Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge conflicts in instr_routing.c
authorJonathan Rouzaud-Cornabas <jonathan.rouzaud-cornabas@ens-lyon.fr>
Thu, 27 Sep 2012 06:07:29 +0000 (08:07 +0200)
committerJonathan Rouzaud-Cornabas <jonathan.rouzaud-cornabas@ens-lyon.fr>
Thu, 27 Sep 2012 06:07:29 +0000 (08:07 +0200)
1  2 
buildtools/Cmake/DefinePackages.cmake
include/instr/instr.h
include/msg/msg.h
src/instr/instr_config.c
src/instr/instr_interface.c
src/instr/instr_private.h
src/instr/instr_routing.c
src/msg/msg_private.h
src/surf/simgrid_dtd.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -133,18 -156,13 +156,23 @@@ static void recursiveGraphExtraction (A
    container_t child1, child2;
    const char *child1_name, *child2_name;
    xbt_dict_foreach(container->children, cursor1, child1_name, child1) {
 -    if (graph_extraction_filter_out (child1, NULL)) continue;
 +    //if child1 is not a link, a smpi node, a msg process, a msg vm or a msg task
 +    if (child1->kind == INSTR_LINK || child1->kind == INSTR_SMPI || child1->kind == INSTR_MSG_PROCESS || child1->kind == INSTR_MSG_VM || child1->kind == INSTR_MSG_TASK) continue;
 +
 +    xbt_dict_foreach(container->children, cursor2, child2_name, child2) {
 +      //if child2 is not a link, a smpi node, a msg process, a msg vm or a msg task
 +      if (child2->kind == INSTR_LINK || child2->kind == INSTR_SMPI || child2->kind == INSTR_MSG_PROCESS || child2->kind == INSTR_MSG_VM || child2->kind == INSTR_MSG_TASK) continue;
 +
 +      //if child1 is not child2
 +      if (strcmp (child1_name, child2_name) == 0) continue;
 +
++      if (graph_extraction_filter_out (child1, NULL)) continue;
+     xbt_dict_foreach(container->children, cursor2, child2_name, child2) {
+       if (graph_extraction_filter_out (child2, child1)) continue;
+       XBT_DEBUG ("get_route from %s to %s", child1_name, child2_name);
        //get the route
-       route_t route = xbt_new0(s_route_t,1);
+       sg_platf_route_cbarg_t route = xbt_new0(s_sg_platf_route_cbarg_t,1);
        route->link_list = xbt_dynar_new(sizeof(sg_routing_link_t),NULL);
        rc->get_route_and_latency(rc, child1->net_elm, child2->net_elm,
                                  route, NULL);
Simple merge
Simple merge