1 #include "loba_simple.h"
5 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
8 * load balance with a least-loaded neighbor,
9 * without breaking the ping-pong condition
11 double loba_simple::load_balance(double my_load)
17 for (unsigned i = 0 ; i < neigh.size() ; ++i) {
18 double l = neigh[i].get_load();
32 double balance = (my_load - max) / 2;
33 DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, my_load, balance);
34 neigh[imin].set_to_send(balance);