- DEBUG1("Model : %s", workstation_model_name);
- if (!strcmp(workstation_model_name,"KCCFLN05")) {
- surf_workstation_resource_init_KCCFLN05(file);
- }
- else if (!strcmp(workstation_model_name,"KCCFLN05_proportionnal")) {
- surf_workstation_resource_init_KCCFLN05_proportionnal(file);
- } else if (!strcmp(workstation_model_name,"CLM03")) {
- surf_workstation_resource_init_CLM03(file);
- } else {
- xbt_assert0(0,"The impossible happened (once again)");
+ void **host = NULL;
+ void **storage = NULL;
+ xbt_lib_cursor_t cursor = NULL;
+ char *name = NULL;
+
+ /* Create host at SIMIX level */
+ xbt_lib_foreach(host_lib, cursor, name, host) {
+ if(host[SURF_HOST_LEVEL])
+ SIMIX_host_create(name);