X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b1640b1ff96d9a64a02d0c9862cf81e32d73e2e..cfc908020fbf63ece22826542148fa0e01fd4195:/examples/simdag/dot/simulate_dot.c diff --git a/examples/simdag/dot/simulate_dot.c b/examples/simdag/dot/simulate_dot.c index 22cc2429ed..67a27934e9 100644 --- a/examples/simdag/dot/simulate_dot.c +++ b/examples/simdag/dot/simulate_dot.c @@ -32,7 +32,8 @@ int main(int argc, char **argv) /* load the DOT file and schedule tasks */ dot = SD_dotload_with_sched(argv[2]); if(!dot){ - XBT_CRITICAL("The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose"); + XBT_CRITICAL("The dot file with the provided scheduling is wrong," + " more information with the option : --log=sd_dotparse.thres:verbose"); SD_exit(); exit(2); } @@ -40,9 +41,8 @@ int main(int argc, char **argv) char *tracefilename; char *last = strrchr(argv[2], '.'); tracefilename = bprintf("%.*s.trace", (int) (last == NULL ? strlen(argv[2]) : last - argv[2]),argv[2]); - if (argc == 4) + if (argc == 4) tracefilename = xbt_strdup(argv[3]); - /* Display all the tasks */ XBT_INFO("------------------- Display all tasks of the loaded DAG ---------------------------"); @@ -50,14 +50,6 @@ int main(int argc, char **argv) SD_task_dump(task); } - FILE *dotout = fopen("dot.dot", "w"); - fprintf(dotout, "digraph A {\n"); - xbt_dynar_foreach(dot, cursor, task) { - SD_task_dotty(task, dotout); - } - fprintf(dotout, "}\n"); - fclose(dotout); - XBT_INFO("------------------- Run the schedule ---------------------------"); SD_simulate(-1);