X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d84fcdff740a04c83fa4db136db739ca4f130fe..4353e376f88e2261155e107d7e6d7619954f6425:/src/simdag/sd_global.cpp?ds=sidebyside diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 3119cfd782..6fe06bd4b6 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -24,7 +24,7 @@ #endif #ifdef HAVE_JEDULE -#include "instr/jedule/jedule_sd_binding.h" +#include "simgrid/jedule/jedule_sd_binding.h" #endif XBT_LOG_NEW_CATEGORY(sd, "Logging specific to SimDag"); @@ -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