From: suter Date: Tue, 25 Sep 2012 13:22:42 +0000 (+0200) Subject: solve bug on FAILED tasks that are rescheduled X-Git-Tag: v3_8~146^2~30 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9ad287798b010fb71a233c26966f1ee902e0ee14 solve bug on FAILED tasks that are rescheduled seems to have raised another bug ... --- diff --git a/src/simdag/sd_task.c b/src/simdag/sd_task.c index c51d5f2847..c4dc318032 100644 --- a/src/simdag/sd_task.c +++ b/src/simdag/sd_task.c @@ -1440,6 +1440,11 @@ void SD_task_schedulev(SD_task_t task, int count, xbt_assert(task->workstation_nb == count,"Got %d locations, but were expecting %d locations",count,task->workstation_nb); for (i = 0; i < count; i++) task->workstation_list[i] = list[i]; + if (SD_task_get_kind(task)== SD_TASK_COMP_SEQ && !task->computation_amount){ + /*This task has failed and is rescheduled. Reset the computation amount*/ + task->computation_amount = xbt_new0(double, 1); + task->computation_amount[0] = task->remains; + } SD_task_do_schedule(task); break; default: