Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
typo
[simgrid.git] / src / surf / network.c
index a6512e8..5003826 100644 (file)
@@ -579,7 +579,7 @@ static void net_update_actions_state_lazy(double now, double delta)
     XBT_DEBUG("Action %p: finish", action);
     GENERIC_ACTION(action).finish = surf_get_clock();
 
-    // if I am wearing a latency heat
+    // if I am wearing a latency hat
     if( action->hat ==  LATENCY){
         lmm_update_variable_weight(network_maxmin_system, action->variable,
                                            action->weight);
@@ -804,7 +804,7 @@ static surf_action_t net_communicate(const char *src_name,
     if(network_update_mechanism == UM_LAZY){
       // add to the heap the event when the latency is payed
       XBT_DEBUG("Added action (%p) one latency event at date %f", action, action->latency + action->last_update);
-      heap_insert(action, action->latency + action->last_update, LATENCY);
+      heap_insert(action, action->latency + action->last_update, xbt_dynar_is_empty(route)?NORMAL:LATENCY);
     }
   } else
     action->variable =
@@ -1107,14 +1107,9 @@ void surf_network_model_init_SMPI(void)
 /*  } */
 void surf_network_model_init_LegrandVelho(void)
 {
-  char *model = xbt_cfg_get_string(_surf_cfg_set, "network/model");
-
   if (surf_network_model)
     return;
 
-  if(!strcmp(model,"LV08_fullupdate")) {
-    XBT_WARN("[*Deprecated*. Use --cfg=network/model:LV08 with option --cfg=network/optim:Full instead.]");
-  }
   set_update_mechanism();
 
   surf_network_model_init_internal();