Skip to content

Commit 2eb6284

Browse files
committed
par: add missing guard for -solution_file in evaluate_hypergraph_solution
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>
1 parent 6f4b728 commit 2eb6284

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/par/src/partitionmgr.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ proc evaluate_hypergraph_solution { args } {
318318
utl::error PAR 0925 "Missing mandatory argument -hypergraph_file."
319319
}
320320
set hypergraph_file $keys(-hypergraph_file)
321+
if { ![info exists keys(-solution_file)] } {
322+
utl::error PAR 0926 "Missing mandatory argument -solution_file."
323+
}
321324
set solution_file $keys(-solution_file)
322325
set num_parts 2
323326
set base_balance { 1.0 }

0 commit comments

Comments
 (0)