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
VM: move things from MSG to the C++ plugin
[simgrid.git]
/
src
/
surf
/
surf_routing.cpp
diff --git
a/src/surf/surf_routing.cpp
b/src/surf/surf_routing.cpp
index
b1b6a12
..
19b30f0
100644
(file)
--- a/
src/surf/surf_routing.cpp
+++ b/
src/surf/surf_routing.cpp
@@
-97,28
+97,7
@@
void RoutingPlatf::getRouteAndLatency(NetCard *src, NetCard *dst, std::vector<Li
{
XBT_DEBUG("getRouteAndLatency from %s to %s", src->name().c_str(), dst->name().c_str());
- AsImpl::getRouteRecursive(src, dst, route, latency);
-}
-
-static void _recursiveGetOneLinkRoutes(AsImpl* as, std::vector<Onelink*>* accumulator)
-{
- //adding my one link routes
- as->getOneLinkRoutes(accumulator);
-
- //recursing
- char *key;
- xbt_dict_cursor_t cursor = nullptr;
- AsImpl *rc_child;
- xbt_dict_foreach(as->children(), cursor, key, rc_child) {
- _recursiveGetOneLinkRoutes(rc_child, accumulator);
- }
-}
-
-std::vector<Onelink*>* RoutingPlatf::getOneLinkRoutes()
-{
- std::vector<Onelink*>* res = new std::vector<Onelink*>();
- _recursiveGetOneLinkRoutes(root_, res);
- return res;
+ AsImpl::getGlobalRoute(src, dst, route, latency);
}
}}}