From 14c6ada837b95b526e9371038082ed511769d89f Mon Sep 17 00:00:00 2001 From: Taylor Brown <60201147+taylorbrown75@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:23:39 -0600 Subject: [PATCH] Fix total tracking bug --- ssc/cmod_trough_physical.cpp | 3 ++- tcs/csp_solver_trough_collector_receiver.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ssc/cmod_trough_physical.cpp b/ssc/cmod_trough_physical.cpp index c614cff81..d6d16546e 100644 --- a/ssc/cmod_trough_physical.cpp +++ b/ssc/cmod_trough_physical.cpp @@ -1647,7 +1647,8 @@ class cm_trough_physical : public compute_module assign("solar_mult", c_trough.m_solar_mult); assign("fixed_land_area", c_trough.m_fixed_land_area); //[acre] assign("total_land_area", c_trough.m_total_land_area); //[acre] - assign("total_tracking_power", c_trough.get_tracking_power()); //[MWe] + double total_tracking_power = c_trough.get_tracking_power(); + assign("total_tracking_power", total_tracking_power); //[MWe] assign("K_cpnt", c_trough.m_K_cpnt); assign("D_cpnt", c_trough.m_D_cpnt); //[m] assign("L_cpnt", c_trough.m_L_cpnt); //[m] diff --git a/tcs/csp_solver_trough_collector_receiver.cpp b/tcs/csp_solver_trough_collector_receiver.cpp index 4ba4b21c3..94f48ac60 100644 --- a/tcs/csp_solver_trough_collector_receiver.cpp +++ b/tcs/csp_solver_trough_collector_receiver.cpp @@ -4613,6 +4613,9 @@ bool C_csp_trough_collector_receiver::design_solar_mult() m_total_land_area = m_fixed_land_area * m_non_solar_field_land_area_multiplier; } + m_is_solar_mult_designed = true; + + return m_is_solar_mult_designed; } /*