From 80538e58592ca59e871581390eb6b2a93650be9c Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Thu, 21 Nov 2024 00:24:32 -0700 Subject: [PATCH 1/2] 2024.12.12.ssc.296.beta expires 1/31/2025 --- ssc/sscapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/sscapi.cpp b/ssc/sscapi.cpp index 12386e71d..2844d1cf6 100644 --- a/ssc/sscapi.cpp +++ b/ssc/sscapi.cpp @@ -51,7 +51,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SSCEXPORT int ssc_version() { - return 295; + return 296; } SSCEXPORT const char *ssc_build_info() From 2992a19a6dbf3a208f4859a14fe2039d7baf6067 Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Sun, 24 Nov 2024 03:14:46 -0700 Subject: [PATCH 2/2] Fix SAM issue 1927 --- ssc/cmod_singleowner_heat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/cmod_singleowner_heat.cpp b/ssc/cmod_singleowner_heat.cpp index 1454a9ff6..82fb922c2 100644 --- a/ssc/cmod_singleowner_heat.cpp +++ b/ssc/cmod_singleowner_heat.cpp @@ -3496,7 +3496,7 @@ class cm_singleowner_heat : public compute_module // save_cf(CF_energy_curtailed, nyears, "cf_energy_curtailed"); // const double MMBTU_TO_KWh = 293.07107; // 1 save_cf(CF_ppa_price, nyears, "cf_ppa_price"); - for (size_t i = 0; i < nyears; i++) + for (size_t i = 0; i <= nyears; i++) cf.at(CF_ppa_price_heat_btu, i) = cf.at(CF_ppa_price, i) * MMBTU_TO_KWh; save_cf( CF_ppa_price_heat_btu, nyears, "cf_ppa_price_heat_btu" ); save_cf( CF_om_fixed_expense, nyears, "cf_om_fixed_expense" );