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
Start the SimDag revolution: function factoring
[simgrid.git]
/
src
/
simdag
/
sd_workstation.cpp
diff --git
a/src/simdag/sd_workstation.cpp
b/src/simdag/sd_workstation.cpp
index
06eb2bd
..
f959d3e
100644
(file)
--- a/
src/simdag/sd_workstation.cpp
+++ b/
src/simdag/sd_workstation.cpp
@@
-222,7
+222,7
@@
const SD_link_t *SD_route_get_list(SD_workstation_t src,
if (sd_global->recyclable_route == NULL) {
/* first run */
if (sd_global->recyclable_route == NULL) {
/* first run */
- sd_global->recyclable_route = xbt_new(SD_link_t,
SD_link_get
_count());
+ sd_global->recyclable_route = xbt_new(SD_link_t,
sg_link
_count());
}
surf_route = surf_host_model_get_route((surf_host_model_t)surf_host_model, src, dst);
}
surf_route = surf_host_model_get_route((surf_host_model_t)surf_host_model, src, dst);
@@
-338,7
+338,7
@@
double SD_route_get_bandwidth(SD_workstation_t src, SD_workstation_t dst)
min_bandwidth = -1.0;
for (i = 0; i < nb_links; i++) {
min_bandwidth = -1.0;
for (i = 0; i < nb_links; i++) {
- bandwidth =
SD_link_get
_bandwidth(links[i]);
+ bandwidth =
sg_link
_bandwidth(links[i]);
if (bandwidth < min_bandwidth || min_bandwidth == -1.0)
min_bandwidth = bandwidth;
}
if (bandwidth < min_bandwidth || min_bandwidth == -1.0)
min_bandwidth = bandwidth;
}
@@
-386,7
+386,7
@@
double SD_route_get_communication_time(SD_workstation_t src,
min_bandwidth = -1.0;
for (i = 0; i < nb_links; i++) {
min_bandwidth = -1.0;
for (i = 0; i < nb_links; i++) {
- bandwidth =
SD_link_get
_bandwidth(links[i]);
+ bandwidth =
sg_link
_bandwidth(links[i]);
if (bandwidth < min_bandwidth || min_bandwidth == -1.0)
min_bandwidth = bandwidth;
}
if (bandwidth < min_bandwidth || min_bandwidth == -1.0)
min_bandwidth = bandwidth;
}