- TRY {
- cpu_model_name = xbt_cfg_get_string(_simix_cfg_set, "cpu_model");
- } CATCH(e) {
- if (e.category == bound_error) {
- xbt_assert0(0,
- "Set a cpu model to use with the 'compound' workstation model");
- xbt_ex_free(e);
- } else {
- RETHROW;
- }
- }
-
- TRY {
- network_model_name =
- xbt_cfg_get_string(_simix_cfg_set, "network_model");
- }
- CATCH(e) {
- if (e.category == bound_error) {
- xbt_assert0(0,
- "Set a network model to use with the 'compound' workstation model");
- xbt_ex_free(e);
- } else {
- RETHROW;
- }
- }
-
- network_id =
- find_model_description(surf_network_model_description,
- surf_network_model_description_size,
- network_model_name);
- cpu_id =
- find_model_description(surf_cpu_model_description,
- surf_cpu_model_description_size,
- cpu_model_name);
-
- surf_cpu_model_description[cpu_id].model_init(file);
- surf_network_model_description[network_id].model_init(file);
-
- parse_platform_file(file);
- parsed = 1;
- }
-
-
-
- surf_workstation_model_description[workstation_id].
- model_init(file);
-
- if (!parsed) parse_platform_file(file);
-
- _simix_init_status = 2; /* inited; don't change settings now */
-
- xbt_dict_foreach(workstation_set, cursor, name, workstation) {