Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Additionnal information never hurt.
authorArnaud Legrand <arnaud.legrand@imag.fr>
Mon, 4 Feb 2013 13:00:12 +0000 (14:00 +0100)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Mon, 4 Feb 2013 14:47:38 +0000 (15:47 +0100)
src/surf/surf.c
src/surf/workstation_ptask_L07.c

index 335351e..6b03d70 100644 (file)
@@ -612,7 +612,7 @@ double surf_solve(double max_date)
 
     if ((min == -1.0) || (next_event_date > NOW + min)) break;
 
-    XBT_DEBUG("Updating models");
+    XBT_DEBUG("Updating models (min = %g, NOW = %g, next_event_date = %g)",min, NOW, next_event_date);
     while ((event =
             tmgr_history_get_next_event_leq(history, next_event_date,
                                             &value,
index 183c305..d689f68 100644 (file)
@@ -344,8 +344,8 @@ static void ptask_update_resource_state(void *id,
   link_L07_t nw_link = id;
 
   if (nw_link->type == SURF_WORKSTATION_RESOURCE_LINK) {
-    XBT_DEBUG("Updating link %s (%p) with value=%f",
-      surf_resource_name(nw_link), nw_link, value);
+    XBT_DEBUG("Updating link %s (%p) with value=%f for date=%g",
+      surf_resource_name(nw_link), nw_link, value, date);
     if (event_type == nw_link->bw_event) {
       nw_link->bw_current = value;
       lmm_update_constraint_bound(ptask_maxmin_system, nw_link->constraint,