Commit 2679cfa7 authored by Robert Ricci's avatar Robert Ricci

Fix ordering issues in certain interswitch link situation.

parent d914f3be
......@@ -634,11 +634,11 @@ int add_node(vvertex vv,pvertex pv, bool deterministic)
resolutions[resolution_index].type = tb_link_info::LINK_INTERSWITCH;
if (flipped) { // Order these need to go in depends on flipped bit
resolutions[resolution_index].plinks.push_back(first);
resolutions[resolution_index].plinks.push_front(second);
} else {
resolutions[resolution_index].plinks.push_front(second);
resolutions[resolution_index].plinks.push_back(first);
} else {
resolutions[resolution_index].plinks.push_front(first);
resolutions[resolution_index].plinks.push_back(second);
}
resolution_index++;
total_weight += LINK_RESOLVE_INTERSWITCH;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment