-/* Copyright (c) 2006-2013. The SimGrid Team.
+/* Copyright (c) 2006-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
xbt_cfg_setdefault_string(_sg_cfg_set, "workstation/model",
"ptask_L07");
-#ifdef HAVE_TRACING
- TRACE_start ();
-#endif
-
#ifdef HAVE_JEDULE
jedule_sd_init();
#endif
if (elapsed_time > 0.0)
total_time += elapsed_time;
+ /* FIXME: shoud look at model_list or model_list_invoke? */
/* let's see which tasks are done */
xbt_dynar_foreach(model_list, iter, model) {
- while ((action = xbt_swag_extract(surf_model_done_action_set(model)))) {
+ while ((action = surf_model_extract_done_action_set(model))) {
task = surf_action_get_data(action);
task->start_time = surf_action_get_start_time(task->surf_action);
}
/* let's see which tasks have just failed */
- while ((action = xbt_swag_extract(surf_model_failed_action_set(model)))) {
+ while ((action = surf_model_extract_failed_action_set(model))) {
task = surf_action_get_data(action);
task->start_time = surf_action_get_start_time(task->surf_action);
task->finish_time = surf_get_clock();