- xbt_assert1(!strcmp(val, "CLM03") ||
- !strcmp(val, "KCCFLN05") ||
- !strcmp(val, "KCCFLN05_proportionnal"),
- "Unknown workstation model: %s (either 'CLM03' or 'KCCFLN05'",val);
+
+ find_resource_description(surf_workstation_resource_description,
+ surf_workstation_resource_description_size,
+ val);
+}
+
+/* callback of the cpu_model variable */
+static void _simix_cfg_cb__cpu_model(const char *name, int pos)
+{
+ char *val;
+
+ xbt_assert0(_simix_init_status<2, "Cannot change the model after the initialization");
+
+ val = xbt_cfg_get_string (_simix_cfg_set, name);
+ /* New Module missing */
+ find_resource_description(surf_cpu_resource_description,
+ surf_cpu_resource_description_size,
+ val);
+}
+/* callback of the workstation_model variable */
+static void _simix_cfg_cb__network_model(const char *name, int pos)
+{
+ char *val;
+
+ xbt_assert0(_simix_init_status<2, "Cannot change the model after the initialization");
+
+ val = xbt_cfg_get_string (_simix_cfg_set, name);
+ /* New Module missing */
+ find_resource_description(surf_network_resource_description,
+ surf_network_resource_description_size,
+ val);