From 71e2ec06b8a1960918b1003a8188d8f95ef704bd Mon Sep 17 00:00:00 2001 From: Taylor Brown <60201147+taylorbrown75@users.noreply.github.com> Date: Fri, 15 Nov 2024 00:09:11 -0700 Subject: [PATCH] Fix bug outputting energy output in MMBtu --- 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 a739e1639..1454a9ff6 100644 --- a/ssc/cmod_singleowner_heat.cpp +++ b/ssc/cmod_singleowner_heat.cpp @@ -3994,7 +3994,7 @@ class cm_singleowner_heat : public compute_module std::vector cf_energy_net_vec = as_vector_double("cf_energy_net"); //[kWht] int cf_energy_net_size = cf_energy_net_vec.size(); ssc_number_t* cf_energy_net_heat_btu_arr = allocate("cf_energy_net_heat_btu", cf_energy_net_size); - for (int i = 0; i <= cf_energy_net_size; i++) + for (int i = 0; i < cf_energy_net_size; i++) cf_energy_net_heat_btu_arr[i] = (ssc_number_t)(cf_energy_net_vec[i] / MMBTU_TO_KWh); //[MMBtu] }