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 7965abf..8ce704b 100644 (file)
@@ -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);