]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Minor cleanups.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 25 Feb 2011 14:54:39 +0000 (15:54 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 25 Feb 2011 14:54:39 +0000 (15:54 +0100)
loba_fairstrategy.cpp
loba_makhoul.cpp
loba_makhoul2.cpp

index 5530f5a5be94a2a6d989fefa50a17d733b464bff..4054729142b10a0a835072cd700edf2a99a073cb 100644 (file)
@@ -6,14 +6,11 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
 
 void loba_fairstrategy::load_balance()
 {
 
 void loba_fairstrategy::load_balance()
 {
-    const double delta = 0.001;
-
     pneigh_sort_by_load(std::greater<double>());
     pneigh_sort_by_load(std::greater<double>());
-
     print_loads_p(false, xbt_log_priority_debug);
 
     print_loads_p(false, xbt_log_priority_debug);
 
+    const double delta = 0.001;
     bool found = true;
     bool found = true;
-
     while (found) {
         found = false;
         for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
     while (found) {
         found = false;
         for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
index fc25653f6051afe2d66e66521c33b67aaff6ffa5..cfc9483c66bbc06895b25b535fc7e0e70e05abe9 100644 (file)
@@ -7,7 +7,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
 void loba_makhoul::load_balance()
 {
     pneigh_sort_by_load(std::less<double>());
 void loba_makhoul::load_balance()
 {
     pneigh_sort_by_load(std::less<double>());
-
     print_loads_p(false, xbt_log_priority_debug);
 
     double alpha = 1.0 / (pneigh.size() + 1.0);
     print_loads_p(false, xbt_log_priority_debug);
 
     double alpha = 1.0 / (pneigh.size() + 1.0);
index d0cf20a636b9cf11917b499a47baf7fa83850e68..e6f629d6b6a93abc7c0183e733dc581af103666e 100644 (file)
@@ -9,7 +9,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
 void loba_makhoul2::load_balance()
 {
     pneigh_sort_by_load(std::less<double>());
 void loba_makhoul2::load_balance()
 {
     pneigh_sort_by_load(std::less<double>());
-
     print_loads_p(false, xbt_log_priority_debug);
 
     double alpha = 1.0 / (pneigh.size() + 1.0);
     print_loads_p(false, xbt_log_priority_debug);
 
     double alpha = 1.0 / (pneigh.size() + 1.0);