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
empty RoutingPlatf: move the loopback link to the network_model(s)
[simgrid.git]
/
src
/
kernel
/
routing
/
AsFloyd.cpp
diff --git
a/src/kernel/routing/AsFloyd.cpp
b/src/kernel/routing/AsFloyd.cpp
index
2b5d921
..
6aa1816
100644
(file)
--- a/
src/kernel/routing/AsFloyd.cpp
+++ b/
src/kernel/routing/AsFloyd.cpp
@@
-170,7
+170,7
@@
void AsFloyd::seal(){
}
/* Add the loopback if needed */
}
/* Add the loopback if needed */
- if (
routing_platf
->loopback_ && hierarchy_ == RoutingMode::base) {
+ if (
surf_network_model
->loopback_ && hierarchy_ == RoutingMode::base) {
for (unsigned int i = 0; i < table_size; i++) {
sg_platf_route_cbarg_t e_route = TO_FLOYD_LINK(i, i);
if (!e_route) {
for (unsigned int i = 0; i < table_size; i++) {
sg_platf_route_cbarg_t e_route = TO_FLOYD_LINK(i, i);
if (!e_route) {
@@
-178,7
+178,7
@@
void AsFloyd::seal(){
e_route->gw_src = nullptr;
e_route->gw_dst = nullptr;
e_route->link_list = new std::vector<Link*>();
e_route->gw_src = nullptr;
e_route->gw_dst = nullptr;
e_route->link_list = new std::vector<Link*>();
- e_route->link_list->push_back(
routing_platf
->loopback_);
+ e_route->link_list->push_back(
surf_network_model
->loopback_);
TO_FLOYD_LINK(i, i) = e_route;
TO_FLOYD_PRED(i, i) = i;
TO_FLOYD_COST(i, i) = 1;
TO_FLOYD_LINK(i, i) = e_route;
TO_FLOYD_PRED(i, i) = i;
TO_FLOYD_COST(i, i) = 1;