aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)