#include "xbt/sysdep.h"
#include "xbt/log.h"
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_cfg, msg,
- "Configuration support in \ref MSG_API");
-
-
int _msg_init_status = 0; /* 0: beginning of time;
1: pre-inited (cfg_set created);
2: inited (running) */
"surf_workstation_model", xbt_cfgelm_string, 1,1,
&_msg_cfg_cb__surf_workstation_model,NULL);
- xbt_cfg_set_string(_msg_cfg_set,"surf_workstation_model", "CLM03");
+ xbt_cfg_set_string(_msg_cfg_set,"surf_workstation_model", "KCCFLN05");
+}
+
+void msg_config_finalize(void) {
+
+ if (!_msg_init_status)
+ return; /* Not initialized yet. Nothing to do */
+
+ xbt_cfg_free(&_msg_cfg_set);
+ _msg_init_status = 0;
}
/** \brief set a configuration variable
*
* Currently existing configuation variable:
* - surf_workstation_model (string): Model of workstation to use.
- * Possible values (defaults to "CLM03"):
- * - "CLM03": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03])
- * - "KCCFLN05": simple network model (no latency) but interference
- * between computations and communications (UNSTABLE, DONT USE)
+ * Possible values (defaults to "KCCFLN05"):
+ * - "CLM03": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + support for parallel tasks
+ * - "KCCFLN05": realistic TCP behavior + basic CPU model (see [CML03 at CCGrid03]) + failure handling + interference between communications and computations if precised in the platform file.
*
* Example:
- * MSG_config("surf_workstation_model","CLM03");
+ * MSG_config("surf_workstation_model","KCCFLN05");
*/
void
MSG_config(const char *name, ...) {