-/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <cstdlib>
#include <xbt/utility.hpp>
-XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_maxmin);
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(ker_lmm);
void simgrid::kernel::lmm::FairBottleneck::bottleneck_solve()
{
}
XBT_DEBUG("Active constraints : %zu", active_constraint_set.size());
- for (Constraint& cnst : active_constraint_set) {
- saturated_constraint_set.push_back(cnst);
- }
+ saturated_constraint_set.insert(saturated_constraint_set.end(), active_constraint_set.begin(),
+ active_constraint_set.end());
for (Constraint& cnst : saturated_constraint_set) {
cnst.remaining_ = cnst.bound_;
cnst.usage_ = 0.0;
auto& var_list = saturated_variable_set;
auto& cnst_list = saturated_constraint_set;
do {
- if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) {
+ if (XBT_LOG_ISENABLED(ker_lmm, xbt_log_priority_debug)) {
XBT_DEBUG("Fair bottleneck done");
print();
}
cnst_list.clear();
modified_ = true;
- if (XBT_LOG_ISENABLED(surf_maxmin, xbt_log_priority_debug)) {
+ if (XBT_LOG_ISENABLED(ker_lmm, xbt_log_priority_debug)) {
XBT_DEBUG("Fair bottleneck done");
print();
}