diff options
author | Vincenzo Maffione <[email protected]> | 2017-03-19 16:31:43 +0100 |
---|---|---|
committer | Vincenzo Maffione <[email protected]> | 2017-03-19 16:31:43 +0100 |
commit | 9bc830fc85831db2550a8bbebe943609185726bf (patch) | |
tree | 93f3cfb49c55fd381a49ad3fbba861732ab83d4d | |
parent | 48fffffde971102a07db602afd1bfa557d321c81 (diff) | |
download | rumba-9bc830fc85831db2550a8bbebe943609185726bf.tar.gz rumba-9bc830fc85831db2550a8bbebe943609185726bf.zip |
model: Node.ipcps list generated in topological order
-rw-r--r-- | rumba/model.py | 6 |
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) |