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
One method to set netzone's relationship
[simgrid.git]
/
src
/
kernel
/
routing
/
TorusZone.cpp
diff --git
a/src/kernel/routing/TorusZone.cpp
b/src/kernel/routing/TorusZone.cpp
index
2a2d218
..
0032c87
100644
(file)
--- a/
src/kernel/routing/TorusZone.cpp
+++ b/
src/kernel/routing/TorusZone.cpp
@@
-183,4
+183,12
@@
void TorusZone::get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs*
}
} // namespace routing
} // namespace kernel
+
+namespace s4u {
+NetZone* create_torus_zone(const std::string& name)
+{
+ return (new kernel::routing::TorusZone(name))->get_iface();
+}
+} // namespace s4u
+
} // namespace simgrid