Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
have the maxmin system create by itself what it needs for selective update
[simgrid.git] / teshsuite / surf / maxmin_bench / maxmin_bench.cpp
index 70bf29f..5175990 100644 (file)
@@ -17,7 +17,7 @@
 #include <cstdio>
 #include <cstdlib>
 
-using namespace simgrid::surf;
+using namespace simgrid::kernel;
 
 double date;
 int64_t seedx = 0;
@@ -40,11 +40,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)
 {
-  simgrid::kernel::lmm::Constraint* cnst[nb_cnst];
-  simgrid::kernel::lmm::Variable* var[nb_var];
+  lmm::Constraint* cnst[nb_cnst];
+  lmm::Variable* var[nb_var];
   int used[nb_cnst];
 
-  simgrid::kernel::lmm::System* Sys = new simgrid::kernel::lmm::System(true);
+  /* We cannot activate the selective update as we pass nullptr as an Action when creating the variables */
+  lmm::System* Sys = new lmm::System(false);
 
   for (int i = 0; i < nb_cnst; i++) {
     cnst[i] = Sys->constraint_new(NULL, float_random(10.0));