Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
meaningful pebcak message: you need to compile MC in to use it
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 20 Jun 2012 20:28:26 +0000 (22:28 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 20 Jun 2012 20:43:56 +0000 (22:43 +0200)
src/surf/surf_config.c

index 28f00ec..d761b04 100644 (file)
@@ -231,6 +231,9 @@ static void _surf_cfg_cb_model_check(const char *name, int pos)
   _surf_do_model_check = xbt_cfg_get_int(_surf_cfg_set, name);
 
   if (_surf_do_model_check) {
+#ifndef HAVE_MC
+    xbt_die("You tried to activate the model-checking from the command line, but it was not compiled in. Change your settings in cmake, recompile and try again");
+#endif
     /* Tell modules using mallocators that they shouldn't. MC don't like them */
     xbt_fifo_preinit();
     xbt_dict_preinit();