void s_lmm_system_t::var_free(lmm_variable_t var)
{
XBT_IN("(sys=%p, var=%p)", this, var);
- modified = 1;
+ modified = true;
// TODOLATER Can do better than that by leaving only the variable in only one enabled_element_set, call
// update_modified_set, and then remove it..
s_lmm_variable_t var;
s_lmm_constraint_t cnst;
- modified = 0;
+ modified = false;
selective_update_active = selective_update;
visited_counter = 1;
void s_lmm_system_t::expand(lmm_constraint_t cnst, lmm_variable_t var, double consumption_weight)
{
- modified = 1;
+ modified = true;
//Check if this variable already has an active element in this constraint
//If it does, substract it from the required slack
void s_lmm_system_t::expand_add(lmm_constraint_t cnst, lmm_variable_t var, double value)
{
- modified = 1;
+ modified = true;
check_concurrency();
} while (cnst_light_num > 0);
- modified = 0;
+ modified = false;
if (selective_update_active)
remove_all_modified_set();
*/
void s_lmm_system_t::update_variable_bound(lmm_variable_t var, double bound)
{
- modified = 1;
+ modified = true;
var->bound = bound;
if (not var->cnsts.empty())
XBT_IN("(sys=%p, var=%p, weight=%f)", this, var, weight);
- modified = 1;
+ modified = true;
//Are we enabling this variable?
if (enabling_var){
void s_lmm_system_t::update_constraint_bound(lmm_constraint_t cnst, double bound)
{
- modified = 1;
+ modified = true;
update_modified_set(cnst);
cnst->bound = bound;
}