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
Factory functions for all Netzones
[simgrid.git]
/
src
/
kernel
/
routing
/
ClusterZone.cpp
diff --git
a/src/kernel/routing/ClusterZone.cpp
b/src/kernel/routing/ClusterZone.cpp
index
23b711d
..
0df128e
100644
(file)
--- a/
src/kernel/routing/ClusterZone.cpp
+++ b/
src/kernel/routing/ClusterZone.cpp
@@
-161,4
+161,12
@@
void ClusterZone::create_links_for_node(ClusterCreationArgs* cluster, int id, in
}
} // namespace routing
} // namespace kernel
+
+namespace s4u {
+NetZone* createClusterZone(const std::string& name)
+{
+ return (new kernel::routing::ClusterZone(name))->get_iface();
+}
+} // namespace s4u
+
} // namespace simgrid