From: suter Date: Thu, 31 Jan 2013 14:21:21 +0000 (+0100) Subject: more complicated than expected. should be okay now. X-Git-Tag: v3_9_90~571 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f6de0be59ccbf547ff0ab288ca88452cb1ff37b2?ds=sidebyside more complicated than expected. should be okay now. --- diff --git a/src/simdag/sd_dotloader.c b/src/simdag/sd_dotloader.c index 15dcb33c94..148b4d4781 100644 --- a/src/simdag/sd_dotloader.c +++ b/src/simdag/sd_dotloader.c @@ -405,16 +405,25 @@ void dot_add_task(Agnode_t * dag_node) XBT_DEBUG("See ", name, agget(dag_node, (char *) "size"), runtime); + if (!strcmp(name, "root")){ - XBT_WARN("'root' node is explicitly declared in the DOT file. Ignore it"); - return; + XBT_WARN("'root' node is explicitly declared in the DOT file. Update it"); + root_task->amount = runtime; +#ifdef HAVE_TRACING + TRACE_sd_dotloader (root_task, agget (dag_node, (char*)"category")); +#endif } + if (!strcmp(name, "end")){ - XBT_WARN("'end' node is explicitly declared in the DOT file. Ignore it"); - return; + XBT_WARN("'end' node is explicitly declared in the DOT file. Update it"); + end_task->amount = runtime; +#ifdef HAVE_TRACING + TRACE_sd_dotloader (end_task, agget (dag_node, (char*)"category")); +#endif } + current_job = xbt_dict_get_or_null(jobs, name); - if (current_job == NULL) { + if (!current_job) { current_job = SD_task_create_comp_seq(name, NULL , runtime); #ifdef HAVE_TRACING