]> AND Public Git Repository - simgrid.git/blobdiff - src/simdag/sd_global.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code simplification: directly give the host name to SD_workstation_create
[simgrid.git] / src / simdag / sd_global.c
index dad96a3992eb53699d0fd82970ed6c730ab798fa..5c5539805a76d0443b4831da4d23c26cb2a7884b 100644 (file)
@@ -211,9 +211,7 @@ void SD_create_environment(const char *platform_file)
     xbt_dict_cursor_t cursor = NULL;
     simgrid_Host* host = NULL;
     xbt_dict_foreach(host_list, cursor, name, host){
-      surf_Host* surf_host = (surf_Host*) sg_host_get_facet(host, SURF_HOST_LEVEL);
-      if (surf_host != NULL)
-        __SD_workstation_create(surf_host, NULL);
+       __SD_workstation_create((const char*)name);
     }
   }