From 59a7fccc48d0e70aab0a45fb9e00e0df1d5efd3e Mon Sep 17 00:00:00 2001 From: rraustad Date: Wed, 21 Aug 2024 23:02:03 -0400 Subject: [PATCH] Shadow var and unused --- src/EnergyPlus/Fans.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/EnergyPlus/Fans.cc b/src/EnergyPlus/Fans.cc index e406c30b18c..6252888f20e 100644 --- a/src/EnergyPlus/Fans.cc +++ b/src/EnergyPlus/Fans.cc @@ -846,7 +846,7 @@ void GetFanInput(EnergyPlusData &state) } // end Number of Component Model FAN Loop for (int SystemFanNum = 1; SystemFanNum <= NumSystemModelFan; ++SystemFanNum) { - constexpr std::string_view cCurrentModuleObject = "Fan:SystemModel"; + cCurrentModuleObject = "Fan:SystemModel"; ip->getObjectItem(state, cCurrentModuleObject, @@ -1343,8 +1343,7 @@ void FanComponent::set_size(EnergyPlusData &state) static constexpr std::string_view routineName = "FanComponent::set_size()"; // include trailing blank space // SUBROUTINE LOCAL VARIABLE DECLARATIONS: - bool _bPRINT = true; // TRUE if sizing is reported to output (eio) - int NumFansSized = 0; // counter used to deallocate temporary string array after all fans have been sized + bool _bPRINT = true; // TRUE if sizing is reported to output (eio) std::string SizingString = sizingPrefix + " [m3/s]";