- /* now let's create the SD wrappers for workstations and links */
- xbt_lib_foreach(host_lib, cursor, name, surf_workstation){
- if(surf_workstation[SURF_WKS_LEVEL])
- __SD_workstation_create(surf_workstation[SURF_WKS_LEVEL], NULL);
+ /* 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){
+ surf_Host* surf_host = (surf_Host*) surf_host_resource_priv(host);
+ if (surf_host != NULL)
+ __SD_workstation_create(surf_host, NULL);
+ }