Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Missing header
[simgrid.git] / src / gras / gras.c
index 897e7f5..0fbbca9 100644 (file)
@@ -15,6 +15,7 @@
 #include "xbt_modinter.h"   /* module init/exit */
 
 #include "gras/core.h"
+#include "gras/cond.h"    /* gras_if_RL() => FIXME: killme when gras/sg works */
 #include "gras/process.h" /* FIXME: killme and put process_init in modinter */
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(gras,"All GRAS categories");
@@ -23,8 +24,7 @@ static int gras_running_process = 0;
 void gras_init(int *argc,char **argv, const char *defaultlog) {
 
   INFO0("Initialize GRAS");
-  CRITICAL0("Go Away ! Work in progress  ");
-  xbt_assert0(0, "GO TO HELL! ]:)"); 
+  xbt_assert0(gras_if_RL(),"Work in progress. Forget about GRAS simulation for now.");
   xbt_init_defaultlog(argc,argv,defaultlog);
   gras_process_init(); /* calls procdata_init, which calls dynar_new */
   /** init other submodules */