Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename misleading "fullduplex" keyword to "crosstraffic".
[simgrid.git] / src / surf / network.c
index 0a2aff0..d9afd7b 100644 (file)
@@ -26,7 +26,7 @@ double sg_bandwidth_factor = 1.0;       /* default value; can be set by model or
 double sg_weight_S_parameter = 0.0;     /* default value; can be set by model or from command line */
 
 double sg_tcp_gamma = 0.0;
-int sg_network_fullduplex = 0;
+int sg_network_crosstraffic = 0;
 
 xbt_dict_t gap_lookup = NULL;
 
@@ -589,7 +589,7 @@ static surf_action_t net_communicate(const char *src_name,
   // I need to have the forward and backward routes at the same time, so allocate "route". That way, the routing wont clean it up
   routing_get_route_and_latency(src_name, dst_name, &route, &latency);
 
-  if (sg_network_fullduplex == 1) {
+  if (sg_network_crosstraffic == 1) {
     // FIXME: fill route directly
     routing_get_route_and_latency(dst_name, src_name, &back_route,NULL);
   }
@@ -698,7 +698,7 @@ static surf_action_t net_communicate(const char *src_name,
                action->variable, 1.0);
   }
 
-  if (sg_network_fullduplex == 1) {
+  if (sg_network_crosstraffic == 1) {
     XBT_DEBUG("Fullduplex active adding backward flow using 5%c", '%');
     xbt_dynar_foreach(back_route, i, link) {
       lmm_expand(network_maxmin_system, link->lmm_resource.constraint,