Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove a useless xbt_assert from the critical path
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 9 Nov 2011 17:08:21 +0000 (18:08 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 9 Nov 2011 17:08:21 +0000 (18:08 +0100)
The error message was not more informative than a segfault will be,
and user behavior cannot produce this (I think)

src/surf/surf.c

index 764671f..d5dbc3d 100644 (file)
@@ -218,7 +218,6 @@ double generic_maxmin_share_resources(xbt_swag_t running_actions,
   double value = -1;
 #define VARIABLE(action) (*((lmm_variable_t*)(((char *) (action)) + (offset))))
 
-  xbt_assert(solve, "Give me a real solver function!");
   solve(sys);
 
   xbt_swag_foreach(action, running_actions) {