Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
023bdbe2
Commit
023bdbe2
authored
Jun 29, 2018
by
Misbah Mubarak
Browse files
checking direct connection first and then accessing the intergroups array
parent
fbe29658
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly-custom.C
View file @
023bdbe2
...
...
@@ -2471,8 +2471,9 @@ get_next_stop(router_state * s,
{
/* Only for non-minimal routes, direct connections are preferred
* (global ports) */
if
(
interGroupLinks
[
s
->
router_id
][
dest_group_id
].
size
()
>
1
&&
get_direct_con
)
if
(
get_direct_con
)
{
if
(
interGroupLinks
[
s
->
router_id
][
dest_group_id
].
size
()
>
1
)
select_chan
=
find_chan
(
s
->
router_id
,
dest_group_id
,
s
->
params
->
num_routers
);
assert
(
select_chan
>=
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment