Skip to content

Commit

Permalink
Correct incoming link
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Feb 17, 2021
1 parent e7f6bdb commit 9a2efe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pacman/operations/router_algorithms/ner_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ def _convert_a_route(
link_ids = list()
for (route, next_hop) in partition_route.children:
if route is not None:
next_incoming_link = None
if route >= 6:
# The route was offset as first 6 are the links
processor_ids.append(route - 6)
else:
link_ids.append(route)
next_incoming_link = (route + 3) % 6
if isinstance(next_hop, RoutingTree):
next_incoming_link = None
next_hops.append((next_hop, next_incoming_link))
Expand Down

0 comments on commit 9a2efe8

Please sign in to comment.