A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code simplification: directly give the host name to SD_workstation_create
[simgrid.git]
/
src
/
simdag
/
sd_global.c
diff --git
a/src/simdag/sd_global.c
b/src/simdag/sd_global.c
index
b625857
..
5c55398
100644
(file)
--- a/
src/simdag/sd_global.c
+++ b/
src/simdag/sd_global.c
@@
-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){
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);
+ __SD_workstation_create((const char*)name);
}
}
}
}