-MSG_error_t MSG_main_stateful(void)
-{
- /* Clean IO before the run */
- fflush(stdout);
- fflush(stderr);
-
- if (MC_IS_ENABLED) {
- MC_modelcheck_stateful();
- }
- else {
- SIMIX_run();
- }
- return MSG_OK;
+/** \ingroup msg_simulation
+ * \brief set a configuration variable
+ *
+ * Do --help on any simgrid binary to see the list of currently existing configuration variables, and see Section @ref options.
+ *
+ * Example:
+ * MSG_config("workstation/model","ptask_L07");
+ */
+void MSG_config(const char *key, const char *value){
+ xbt_assert(msg_global,"ERROR: Please call MSG_init() before using MSG_config()");
+ xbt_cfg_set_as_string(_sg_cfg_set, key, value);