Skip to content

Commit

Permalink
Fix 6par sanity check that causes SAM to crash (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaulgilman authored Nov 18, 2024
1 parent a7a6db2 commit 08b2aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssc/cmod_6parsolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class cm_6parsolve : public compute_module
int err = m.solve_with_sanity_and_heuristics<double>(300, 1e-7);

int err_keys[10] = { -1, -2, -3, -4, -5, -6, -7, -33, -44, -55 };
int x;
int x=0;
for (int i = 0; i < 10; i++)
if (err_keys[i] == err)
x = i;
Expand Down

0 comments on commit 08b2aa7

Please sign in to comment.