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 the link factories
[simgrid.git]
/
src
/
surf
/
network_interface.cpp
diff --git
a/src/surf/network_interface.cpp
b/src/surf/network_interface.cpp
index
6034eae
..
9c14062
100644
(file)
--- a/
src/surf/network_interface.cpp
+++ b/
src/surf/network_interface.cpp
@@
-185,6
+185,9
@@
namespace simgrid {
: Resource(model, name, constraint),
PropertyHolder(props)
{
+ if (strcmp(name,"__loopback__"))
+ xbt_assert(!Link::byName(name), "Link '%s' declared several times in the platform.", name);
+
m_latency.scale = 1;
m_bandwidth.scale = 1;