X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5657b6cbb51a403dbc777e905664dc17ec49f327..34d2adc6cc16583d1a76eb79bdc36f39268829f7:/src/instr/jedule/jedule_sd_binding.c diff --git a/src/instr/jedule/jedule_sd_binding.c b/src/instr/jedule/jedule_sd_binding.c index e5c51c642c..8ce704bea5 100644 --- a/src/instr/jedule/jedule_sd_binding.c +++ b/src/instr/jedule/jedule_sd_binding.c @@ -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);