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
SimDag Revolution: SD_workstation becomes sg_host
[simgrid.git]
/
examples
/
simdag
/
metaxml
/
sd_meta.c
diff --git
a/examples/simdag/metaxml/sd_meta.c
b/examples/simdag/metaxml/sd_meta.c
index
170a265
..
2b3da2a
100644
(file)
--- a/
examples/simdag/metaxml/sd_meta.c
+++ b/
examples/simdag/metaxml/sd_meta.c
@@
-23,10
+23,10
@@
int main(int argc, char **argv)
{
const char *platform_file;
- const
SD_workstation
_t *workstations;
+ const
sg_host
_t *workstations;
int ws_nr;
-
SD_workstation
_t w1 = NULL;
-
SD_workstation
_t w2 = NULL;
+
sg_host
_t w1 = NULL;
+
sg_host
_t w2 = NULL;
const char *name1, *name2;
int i, j, k;
@@
-46,8
+46,8
@@
int main(int argc, char **argv)
SD_create_environment(platform_file);
/* test the estimation functions */
- workstations =
SD_workstation_ge
t_list();
- ws_nr =
SD_workstation_ge
t_count();
+ workstations =
sg_hos
t_list();
+ ws_nr =
sg_hos
t_count();
/* Show routes between all workstation */
@@
-58,8
+58,8
@@
int main(int argc, char **argv)
int route_size;
w1 = workstations[i];
w2 = workstations[j];
- name1 =
SD_workstation
_get_name(w1);
- name2 =
SD_workstation
_get_name(w2);
+ name1 =
sg_host
_get_name(w1);
+ name2 =
sg_host
_get_name(w2);
XBT_INFO("Route between %s and %s:", name1, name2);
route = SD_route_get_list(w1, w2);
route_size = SD_route_get_size(w1, w2);