XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_maxmin, surf, "Logging specific to SURF (maxmin)");
-typedef std::vector<int> dyn_light_t;
-
double sg_maxmin_precision = 0.00001; /* Change this with --cfg=maxmin/precision:VALUE */
double sg_surf_precision = 0.00001; /* Change this with --cfg=surf/precision:VALUE */
int sg_concurrency_limit = -1; /* Change this with --cfg=maxmin/concurrency-limit:VALUE */
+namespace simgrid {
+namespace surf {
+
+typedef std::vector<int> dyn_light_t;
+
int s_lmm_variable_t::Global_debug_id = 1;
int s_lmm_constraint_t::Global_debug_id = 1;
XBT_OUT();
}
-s_lmm_system_t::s_lmm_system_t(bool selective_update)
+s_lmm_system_t::s_lmm_system_t(bool selective_update) : selective_update_active(selective_update)
{
s_lmm_variable_t var;
s_lmm_constraint_t cnst;
modified = false;
- selective_update_active = selective_update;
visited_counter = 1;
XBT_DEBUG("Setting selective_update_active flag to %d", selective_update_active);
delete cnst;
}
-s_lmm_constraint_t::s_lmm_constraint_t(void* id_value, double bound_value)
+s_lmm_constraint_t::s_lmm_constraint_t(void* id_value, double bound_value) : bound(bound_value), id(id_value)
{
s_lmm_element_t elem;
- id = id_value;
id_int = Global_debug_id++;
xbt_swag_init(&enabled_element_set, xbt_swag_offset(elem, enabled_element_set_hookup));
xbt_swag_init(&disabled_element_set, xbt_swag_offset(elem, disabled_element_set_hookup));
remaining = 0.0;
usage = 0.0;
- bound = bound_value;
concurrency_limit = sg_concurrency_limit;
concurrency_current = 0;
concurrency_maximum = 0;
int number_of_constraints, unsigned visited_value)
{
id = id_value;
- id_int = s_lmm_variable_t::Global_debug_id++;
+ id_int = Global_debug_id++;
cnsts.reserve(number_of_constraints);
sharing_weight = sharing_weight_value;
staged_weight = 0.0;
}
return result;
}
+}
+}