Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
updated jedule output of SimDag
[simgrid.git] / src / instr / jedule / jedule_sd_binding.c
index e5c51c6..8ce704b 100644 (file)
@@ -60,7 +60,7 @@ static void create_hierarchy(AS_t current_comp,
        unsigned int dynar_cursor;
        char *key;
        AS_t elem;
-       network_element_t network_elem;
+       sg_routing_edge_t network_elem;
 
        if(xbt_dict_is_empty(current_comp->routing_sons)) {
                // I am no AS
@@ -99,7 +99,7 @@ void jedule_setup_platform() {
 
        jed_create_jedule(&jedule);
 
-       root_comp = global_routing->root;
+       root_comp = routing_platf->root;
        XBT_DEBUG("root name %s\n", root_comp->name);
 
        // that doesn't work
@@ -125,8 +125,13 @@ void jedule_sd_init() {
 
 void jedule_sd_dump() {
        FILE *fh;
+    char fname[1024];
 
-       fh = fopen("simgrid.jed", "w");
+    fname[0] = '\0';
+    strcat(fname, xbt_binary_name);
+    strcat(fname, ".jed\0");
+    
+       fh = fopen(fname, "w");
 
        write_jedule_output(fh, jedule, jedule_event_list, NULL);