X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73d1f79133c1e0e086ce5e2414aa04d180cba08a..30aca4d4af004d1ec899d12f0a9fe3997e9be15e:/src/surf/maxmin.cpp diff --git a/src/surf/maxmin.cpp b/src/surf/maxmin.cpp index 40e186f60d..623a3b28f5 100644 --- a/src/surf/maxmin.cpp +++ b/src/surf/maxmin.cpp @@ -74,7 +74,7 @@ inline void lmm_increase_concurrency(lmm_element_t elem) { "Concurrency limit overflow!"); } -lmm_system_t lmm_system_new(int selective_update) +lmm_system_t lmm_system_new(bool selective_update) { lmm_system_t l = nullptr; s_lmm_variable_t var; @@ -102,6 +102,8 @@ lmm_system_t lmm_system_new(int selective_update) lmm_variable_mallocator_free_f, lmm_variable_mallocator_reset_f); + l->solve_fun = &lmm_solve; + return l; } @@ -1241,7 +1243,7 @@ double lmm_constraint_get_usage(lmm_constraint_t cnst) { if (cnst->sharing_policy) usage += elem->value * elem->variable->value; else if (usage < elem->value * elem->variable->value) - usage = max(usage, elem->value * elem->variable->value); + usage = std::max(usage, elem->value * elem->variable->value); } } return usage;