From 08b2aa7e4673d9e7a040bd3b543465cf2256bb62 Mon Sep 17 00:00:00 2001 From: Paul Gilman Date: Mon, 18 Nov 2024 14:52:34 -0800 Subject: [PATCH] Fix 6par sanity check that causes SAM to crash (#1245) --- ssc/cmod_6parsolve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/cmod_6parsolve.cpp b/ssc/cmod_6parsolve.cpp index b695173f3..4e2cd669f 100644 --- a/ssc/cmod_6parsolve.cpp +++ b/ssc/cmod_6parsolve.cpp @@ -108,7 +108,7 @@ class cm_6parsolve : public compute_module int err = m.solve_with_sanity_and_heuristics(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;