Skip to content

Commit b39fbaf

Browse files
authored
Merge pull request #9774 from suhr25/fix/par-evaluate-hypergraph-solution-file-guard
fix: add validation for missing -solution_file in evaluate_hypergraph_solution
2 parents 6f4b728 + 2eb6284 commit b39fbaf

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)