From: Quintin Jean-Noël Date: Fri, 15 Jul 2011 18:22:17 +0000 (+0200) Subject: [SIMDAG] the dot file is not red X-Git-Tag: v3_6_2~192 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/09d1d6bd830abb339ca148d2a6b90e2f06e9a737 [SIMDAG] the dot file is not red change the call to agopen to agread --- diff --git a/src/simdag/sd_dotloader.c b/src/simdag/sd_dotloader.c index 71c6cc4161..71be0c04f3 100644 --- a/src/simdag/sd_dotloader.c +++ b/src/simdag/sd_dotloader.c @@ -148,7 +148,9 @@ xbt_dynar_t SD_dotload_with_sched(const char *filename){ xbt_dynar_t SD_dotload_generic(const char * filename) { xbt_assert(filename, "Unable to use a null file descriptor\n"); - dag_dot = agopen((char*)filename,Agstrictdirected,0); +//dag_dot = agopen((char*)filename,Agstrictdirected,0); + FILE *in_file = fopen(filename, "r"); + dag_dot = agread(in_file, NIL(Agdisc_t *)); result = xbt_dynar_new(sizeof(SD_task_t), dot_task_free); files = xbt_dict_new(); @@ -228,6 +230,7 @@ xbt_dynar_t SD_dotload_generic(const char * filename) /* Free previous copy of the files */ xbt_dict_free(&files); + fclose(in_file); if(acyclic_graph_detail(result)) return result; acyclic_graph_detail(result);