From 2992a19a6dbf3a208f4859a14fe2039d7baf6067 Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Sun, 24 Nov 2024 03:14:46 -0700 Subject: [PATCH] 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" );