Skip to content

Commit

Permalink
Fix bug outputting energy output in MMBtu
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbrown75 committed Nov 15, 2024
1 parent b58cf62 commit 71e2ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssc/cmod_singleowner_heat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3994,7 +3994,7 @@ class cm_singleowner_heat : public compute_module
std::vector<double> 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]
}

Expand Down

0 comments on commit 71e2ec0

Please sign in to comment.