X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be6965a2b4eeef9c8225b33abd4acb08f2b561ef..077972fd6355b0900d78e4ff0779cf58a5e10e71:/src/simdag/sd_global.cpp diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 3119cfd782..389d9f52ae 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -171,21 +171,12 @@ void SD_create_environment(const char *platform_file) parse_platform_file(platform_file); - /* now let's create the SD wrappers for workstations, storages and links */ - { - xbt_dict_cursor_t cursor = NULL; - simgrid_Host* host = NULL; - xbt_dict_foreach(host_list, cursor, name, host){ - __SD_workstation_create((const char*)name); - } - } - + /* now let's create the SD wrappers for storage elements */ xbt_lib_foreach(storage_lib, cursor, name, surf_storage) { - if(surf_storage[SURF_STORAGE_LEVEL]) - __SD_storage_create(surf_storage[SURF_STORAGE_LEVEL], NULL); + if(surf_storage[SURF_STORAGE_LEVEL]) + __SD_storage_create(surf_storage[SURF_STORAGE_LEVEL], NULL); } - XBT_DEBUG("Workstation number: %d, link number: %d", SD_workstation_get_count(), sg_link_count()); #ifdef HAVE_JEDULE