virtual ~process();
double get_comp() const { return comp; }
- double get_load() const { return load; }
+ double get_real_load() const { return real_load; }
int run();
double prev_load_broadcast; // used to ensure that we do not send
// a same information messages
- double load; // current load
+ double real_load; // current load
double expected_load; // expected load in bookkeeping mode
- double& lb_load() { return opt::bookkeeping ? expected_load : load; }
+ double& lb_load() { return opt::bookkeeping ? expected_load : real_load; }
// The load balancing algorithm comes here...
// Parameter "my_load" is the load to take into account for myself
- // (may be load or expected load).
+ // (may be real load or expected load).
// Returns the total load sent to neighbors.
virtual double load_balance(double my_load);