X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..e7cb73c92a8f68dc513934244646fa1a9d55f601:/teshsuite/surf/maxmin_bench/maxmin_bench.cpp?ds=sidebyside diff --git a/teshsuite/surf/maxmin_bench/maxmin_bench.cpp b/teshsuite/surf/maxmin_bench/maxmin_bench.cpp index c23689e584..da990b1cf8 100644 --- a/teshsuite/surf/maxmin_bench/maxmin_bench.cpp +++ b/teshsuite/surf/maxmin_bench/maxmin_bench.cpp @@ -17,8 +17,6 @@ #include #include -using namespace simgrid::kernel; - double date; int64_t seedx = 0; @@ -40,11 +38,12 @@ static unsigned int int_random(int max) static void test(int nb_cnst, int nb_var, int nb_elem, unsigned int pw_base_limit, unsigned int pw_max_limit, float rate_no_limit, int max_share, int mode) { - lmm::Constraint* cnst[nb_cnst]; - lmm::Variable* var[nb_var]; + simgrid::kernel::lmm::Constraint* cnst[nb_cnst]; + simgrid::kernel::lmm::Variable* var[nb_var]; int used[nb_cnst]; - lmm::System* Sys = new lmm::System(true); + /* We cannot activate the selective update as we pass nullptr as an Action when creating the variables */ + simgrid::kernel::lmm::System* Sys = new simgrid::kernel::lmm::System(false); for (int i = 0; i < nb_cnst; i++) { cnst[i] = Sys->constraint_new(NULL, float_random(10.0));