- /* Connect our log channels: that must be done manually under windows */
- XBT_LOG_CONNECT(gras_ddt, gras);
- XBT_LOG_CONNECT(gras_ddt_cbps, gras_ddt);
- XBT_LOG_CONNECT(gras_ddt_convert, gras_ddt);
- XBT_LOG_CONNECT(gras_ddt_create, gras_ddt);
- XBT_LOG_CONNECT(gras_ddt_exchange, gras_ddt);
- XBT_LOG_CONNECT(gras_ddt_lexer, gras_ddt_parse);
- XBT_LOG_CONNECT(gras_ddt_parse, gras_ddt);
-
- XBT_LOG_CONNECT(gras_modules, gras);
-
- XBT_LOG_CONNECT(gras_msg, gras);
- XBT_LOG_CONNECT(gras_msg_read, gras_msg);
- XBT_LOG_CONNECT(gras_msg_rpc, gras_msg);
-
- XBT_LOG_CONNECT(gras_timer, gras);
-
- XBT_LOG_CONNECT(gras_trp, gras);
- XBT_LOG_CONNECT(gras_trp_file, gras_trp);
- XBT_LOG_CONNECT(gras_trp_meas, gras_trp);
- XBT_LOG_CONNECT(gras_trp_sg, gras_trp);
- XBT_LOG_CONNECT(gras_trp_tcp, gras_trp);
-
- XBT_LOG_CONNECT(gras_virtu, gras);
- XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu);
- XBT_LOG_CONNECT(gras_virtu_process, gras_virtu);
-
- gras_trp_register();
- gras_msg_register();
+ first = 1;
+
+ if (!getenv("GRAS_NO_WARN_EXPERIMENTAL"))
+ XBT_WARN("GRAS is not well maintained anymore. We consider it to be experimental (and not stable anymore) since SimGrid 3.6. Sorry about it, please consider contributing to improve this situation");
+
+ gras_trp_register();
+ gras_msg_register();
+
+ xbt_trp_plugin_new("file", gras_trp_file_setup);
+ if (gras_if_SG()) {
+ xbt_trp_plugin_new("sg", gras_trp_sg_setup);
+ }
+ /* the TCP plugin (used in RL mode) is automatically loaded by XBT */