Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of github.com:mquinson/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Feb 2016 12:02:28 +0000 (13:02 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Feb 2016 12:02:28 +0000 (13:02 +0100)
1  2 
src/surf/network_cm02.cpp
tools/cmake/Tests.cmake

@@@ -396,12 -414,17 +396,15 @@@ Action *NetworkCm02Model::communicate(N
  
    if (sg_network_crosstraffic == 1) {
      XBT_DEBUG("Fullduplex active adding backward flow using 5%%");
 -    xbt_dynar_foreach(back_route, i, _link) {
 -      link = static_cast<NetworkCm02Link*>(_link);
 +    for (auto link : *back_route)
        lmm_expand(p_maxminSystem, link->getConstraint(), action->getVariable(), .05);
-     lmm_variable_concurrency_share_set(action->getVariable(),2);
 -    }
++     
+     //Change concurrency_share here, if you want that cross-traffic is included in the SURF concurrency
+     //(You would also have to change lmm_element_concurrency())
+     //lmm_variable_concurrency_share_set(action->getVariable(),2);
    }
  
 -  xbt_dynar_free(&route);
 +  delete route;
    XBT_OUT();
  
    networkCommunicateCallbacks(action, src, dst, size, rate);
Simple merge