2: inited (running) */
xbt_cfg_t _simix_cfg_set = NULL;
-/* callback of the surf_workstation_model variable */
-static void _simix_cfg_cb__surf_workstation_model(const char *name, int pos)
+/* callback of the workstation_model variable */
+static void _simix_cfg_cb__workstation_model(const char *name, int pos)
{
char *val;
/* New Module missing */
xbt_assert1(!strcmp(val, "CLM03") ||
!strcmp(val, "KCCFLN05") ||
- !strcmp(val, "KCCFLN05_proportionnal"),
- "Unknown workstation model: %s (either 'CLM03' or 'KCCFLN05'",val);
+ !strcmp(val, "KCCFLN05_proportional") ||
+ !strcmp(val, "KCCFLN05_Vegas") ||
+ !strcmp(val, "KCCFLN05_Reno"),
+ "Unknown workstation model: %s (choices are: 'CLM03', 'KCCFLN05', 'KCCFLN05_proportional', 'KCCFLN05_Vegas' and 'KCCFLN05_Reno'",val);
}
/* create the config set and register what should be */
_simix_cfg_set = xbt_cfg_new();
xbt_cfg_register (_simix_cfg_set,
- "surf_workstation_model", xbt_cfgelm_string, 1,1,
- &_simix_cfg_cb__surf_workstation_model,NULL);
+ "workstation_model", xbt_cfgelm_string, 1,1,
+ &_simix_cfg_cb__workstation_model,NULL);
- xbt_cfg_set_string(_simix_cfg_set,"surf_workstation_model", "KCCFLN05");
+ xbt_cfg_set_string(_simix_cfg_set,"workstation_model", "KCCFLN05");
}
void simix_config_finalize(void)
_simix_init_status = 0;
}
-/** \brief set a configuration variable
+/** \brief Set a configuration variable
*
- * Currently existing configuation variable:
- * - surf_workstation_model (string): Model of workstation to use.
+ * Currently existing configuration variable:
+ * - workstation_model (string): Model of workstation to 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","KCCFLN05");
+ * \param name Configuration variable name that will change.
+ * \param pa A va_list with the others parameters
*/
void SIMIX_config(const char *name, va_list pa)
{