Skip to content

Commit 2e36edf

Browse files
committed
accept different incoming processors but incoming links
1 parent 259a2a4 commit 2e36edf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pacman/model/routing_table_by_partition/multicast_routing_table_by_partition_entry.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,12 @@ def has_same_route(
199199
:rtype: bool
200200
"""
201201
# pylint:disable=protected-access
202-
return (self.spinnaker_route == entry.spinnaker_route)
202+
# False if the outgoing processor of linsk are diffeent
203+
if self.spinnaker_route != entry.spinnaker_route:
204+
return False
205+
# True if the incoming link or processor is the same
206+
if self._incoming == entry._incoming:
207+
return True
208+
# True if both have an incoming processor even if different
209+
return (self._incoming > Router.MAX_LINKS_PER_ROUTER and
210+
entry._incoming > Router.MAX_LINKS_PER_ROUTER)

0 commit comments

Comments
 (0)