Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More tracking of random numbers and correcting assertion
authorFabien Chaix <chaix@ics.forth.gr>
Fri, 26 Feb 2016 20:43:14 +0000 (22:43 +0200)
committerFabien Chaix <chaix@ics.forth.gr>
Fri, 26 Feb 2016 20:43:14 +0000 (22:43 +0200)
src/surf/maxmin.cpp
teshsuite/surf/maxmin_bench/maxmin_bench.c

index 51afec6..b6712d9 100644 (file)
@@ -754,7 +754,7 @@ void lmm_print(lmm_system_t sys)
     //   xbt_assert(!double_positive(sum - cnst->bound, cnst->bound*sg_maxmin_precision),
     //           "Incorrect value (%f is not smaller than %f): %g",
     //             sum, cnst->bound, sum - cnst->bound);
-    if(!double_positive(sum - cnst->bound, cnst->bound*sg_maxmin_precision))
+    if(double_positive(sum - cnst->bound, cnst->bound*sg_maxmin_precision))
       XBT_ERROR("Incorrect value (%f is not smaller than %f): %g",sum, cnst->bound, sum - cnst->bound);
       
   }
index 99f393e..16a0152 100644 (file)
@@ -147,6 +147,8 @@ int main(int argc, char **argv)
   
   srand(testcount);
 
+  printf("Starting to test (%i,%i,%i)\n",rand()%1000,rand()%1000,rand()%1000);
+
   //Show me everything (debug or performance)!
   mode=0;
   if(argc>=4 && strcmp(argv[3],"test")==0)