Skip to content

Commit

Permalink
bug fix for convergence detail (deal with all vars fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
DLWoodruff committed Nov 15, 2024
1 parent c9be8c6 commit 899450d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpisppy/spbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,9 @@ def report_var_values_at_rank0(self, header="", print_zero_prob_values=False, fi

if len(header) != 0:
print(header)

if len(var_values) == 0:
print("No variables to report (perhaps all are fixed?)")
return
scenario_names = sorted(set(x for (x,y) in var_values))
max_scenario_name_len = max(len(s) for s in scenario_names)
variable_names = sorted(set(y for (x,y) in var_values))
Expand Down

0 comments on commit 899450d

Please sign in to comment.