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

Private GIT Repository
Use square brackets for default values in help.
[loba.git] / loba_simple.cpp
index d79ead5b41af70f619175c491c0e8c6105d9e943..5702fba8a667fb76d6c982bd495769f1363adec2 100644 (file)
@@ -32,7 +32,7 @@ double loba_simple::load_balance(double my_load)
         double balance = (my_load - min) / 2;
         DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, my_load, balance);
         pneigh[imin]->set_to_send(balance);
-                               pneigh[imin]->set_load(min+balance);
+        pneigh[imin]->add_load(balance);
         return balance;
     } else {
         return 0.0;