aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Maffione <[email protected]>2017-03-19 16:31:43 +0100
committerVincenzo Maffione <[email protected]>2017-03-19 16:31:43 +0100
commit9bc830fc85831db2550a8bbebe943609185726bf (patch)
tree93f3cfb49c55fd381a49ad3fbba861732ab83d4d
parent48fffffde971102a07db602afd1bfa557d321c81 (diff)
downloadrumba-9bc830fc85831db2550a8bbebe943609185726bf.tar.gz
rumba-9bc830fc85831db2550a8bbebe943609185726bf.zip
model: Node.ipcps list generated in topological order
-rw-r--r--rumba/model.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rumba/model.py b/rumba/model.py
index 0adb503..694ce33 100644
--- a/rumba/model.py
+++ b/rumba/model.py
@@ -483,7 +483,11 @@ class Experiment:
# For each node, compute the required IPCP instances
for node in self.nodes:
node.ipcps = []
- for dif in node.difs:
+ # We want also the node.ipcps list to be generated in
+ # topological ordering
+ for dif in self.dif_ordering:
+ if dif not in node.difs:
+ continue
ipcp = IPCP(name = '%s.%s.IPCP' % (dif.name, node.name),
node = node, dif = dif)