Commit f120a2c8 authored by David Johnson's avatar David Johnson

Work around a check for bad reordering in libvtop.

(This check was added for rflinks, and it is necessary for them, but it
doesn't apply to all nodes.  So if the node it checks isn't actually in
the solution, don't check.)
parent f8c5d62f
......@@ -4985,7 +4985,7 @@ sub ReadTextSolution($$)
my $mapped0 = $self->solution_v2p()->{ $vmem0node };
if( $mapped0 eq $nodeB ) {
if( defined($mapped0) && $mapped0 eq $nodeB ) {
# It isn't. Flip the order of the nodes to avoid
# horrible confusion later.
my ($nodeT, $portT);
......
......@@ -4994,7 +4994,7 @@ sub ReadTextSolution($$)
my $mapped0 = $self->solution_v2p()->{ $vmem0node };
if( $mapped0 eq $nodeB ) {
if( defined($mapped0) && $mapped0 eq $nodeB ) {
# It isn't. Flip the order of the nodes to avoid
# horrible confusion later.
my ($nodeT, $portT);
......
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