Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Added correction factors for Hockney basic model. The capacity parameter...
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Oct 2008 14:31:30 +0000 (14:31 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Oct 2008 14:31:30 +0000 (14:31 +0000)
This reverts commit a09b50911036ecabe4fb37671dd20b30ddbb5865.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5991 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/network.c

index 3114caa..8555a3a 100644 (file)
@@ -18,8 +18,6 @@ static void (*network_solve) (lmm_system_t) = NULL;
 xbt_dict_t link_set = NULL;
 xbt_dict_t network_card_set = NULL;
 
-double alpha_legrandvelho = 1;
-double beta_legrandvelho = 0;
 int card_number = 0;
 int host_number = 0;
 link_CM02_t **routing_table = NULL;
@@ -454,7 +452,7 @@ static void update_resource_state(void *id,
                                                      lat_current));
       else
        lmm_update_variable_bound(network_maxmin_system, action->variable,
-                                 min(action->rate*alpha_legrandvelho,
+                                 min(action->rate,
                                      SG_TCP_CTE_GAMMA / (2.0 *
                                                          action->
                                                          lat_current)));
@@ -567,13 +565,13 @@ static surf_action_t communicate(void *src, void *dst, double size,
   } else {
     if (action->lat_current > 0)
       lmm_update_variable_bound(network_maxmin_system, action->variable,
-                               min(action->rate*alpha_legrandvelho,
+                               min(action->rate,
                                    SG_TCP_CTE_GAMMA / (2.0 *
                                                        action->
                                                        lat_current)));
     else
       lmm_update_variable_bound(network_maxmin_system, action->variable,
-                               action->rate*alpha_legrandvelho);
+                               action->rate);
   }
   lmm_update_variable_latency(network_maxmin_system, action->variable,
                              action->latency);
@@ -779,8 +777,7 @@ void surf_network_model_init_LegrandVelho(const char *filename)
   define_callbacks(filename);
   xbt_dynar_push(model_list, &surf_network_model);
   network_solve = lmm_solve;
-  alpha_legrandvelho = 0.92;
-  beta_legrandvelho = 10.4;
+
   update_model_description(surf_network_model_description,
                           "LegrandVelho",
                           (surf_model_t) surf_network_model);