"Cannot change the model after the initialization");
val = xbt_cfg_get_string(_sd_cfg_set, name);
- find_model_description(surf_workstation_model_description,
- surf_workstation_model_description_size,
- val);
+ find_model_description(surf_workstation_model_description, val);
}
/* callback of the cpu_model variable */
"Cannot change the model after the initialization");
val = xbt_cfg_get_string(_sd_cfg_set, name);
- find_model_description(surf_cpu_model_description,
- surf_cpu_model_description_size, val);
+ find_model_description(surf_cpu_model_description, val);
}
/* callback of the workstation_model variable */
"Cannot change the model after the initialization");
val = xbt_cfg_get_string(_sd_cfg_set, name);
- find_model_description(surf_network_model_description,
- surf_network_model_description_size, val);
+ find_model_description(surf_network_model_description, val);
}
XBT_LOG_EXTERNAL_CATEGORY(sd_kernel);
DEBUG1("Model : %s", workstation_model_name);
workstation_id =
find_model_description(surf_workstation_model_description,
- surf_workstation_model_description_size,
- workstation_model_name);
+ workstation_model_name);
if (!strcmp(workstation_model_name, "compound")) {
xbt_ex_t e;
char *network_model_name = NULL;
network_id =
find_model_description(surf_network_model_description,
- surf_network_model_description_size,
- network_model_name);
+ network_model_name);
cpu_id =
find_model_description(surf_cpu_model_description,
- surf_cpu_model_description_size,
- cpu_model_name);
+ cpu_model_name);
surf_cpu_model_description[cpu_id].model_init(platform_file);
surf_network_model_description[network_id].model_init(platform_file);