From b43cc35843c52d9bd6185276909b50916df9d9fd Mon Sep 17 00:00:00 2001 From: Matt Mitchell Date: Wed, 25 Feb 2026 10:08:39 -0700 Subject: [PATCH] fix unitary system getDesignSpecMSHPdata error argument --- src/EnergyPlus/UnitarySystem.cc | 2 +- src/EnergyPlus/UnitarySystem.hh | 2 +- tst/EnergyPlus/unit/UnitarySystem.unit.cc | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/EnergyPlus/UnitarySystem.cc b/src/EnergyPlus/UnitarySystem.cc index 53eaf86858e..17517f86eab 100644 --- a/src/EnergyPlus/UnitarySystem.cc +++ b/src/EnergyPlus/UnitarySystem.cc @@ -223,7 +223,7 @@ namespace UnitarySystems { } } - void DesignSpecMSHP::getDesignSpecMSHPdata(EnergyPlusData &state, bool errorsFound) + void DesignSpecMSHP::getDesignSpecMSHPdata(EnergyPlusData &state, bool &errorsFound) { std::string const cCurrentModuleObject = "UnitarySystemPerformance:Multispeed"; diff --git a/src/EnergyPlus/UnitarySystem.hh b/src/EnergyPlus/UnitarySystem.hh index a3ebb1db343..545b84ec014 100644 --- a/src/EnergyPlus/UnitarySystem.hh +++ b/src/EnergyPlus/UnitarySystem.hh @@ -177,7 +177,7 @@ namespace UnitarySystems { bool m_SingleModeFlag = false; static void getDesignSpecMSHP(EnergyPlusData &state); - static void getDesignSpecMSHPdata([[maybe_unused]] EnergyPlusData &state, bool errorsFound); + static void getDesignSpecMSHPdata([[maybe_unused]] EnergyPlusData &state, bool &errorsFound); DesignSpecMSHP() = default; ~DesignSpecMSHP() = default; diff --git a/tst/EnergyPlus/unit/UnitarySystem.unit.cc b/tst/EnergyPlus/unit/UnitarySystem.unit.cc index 24f9fdc1279..81f9774c254 100644 --- a/tst/EnergyPlus/unit/UnitarySystem.unit.cc +++ b/tst/EnergyPlus/unit/UnitarySystem.unit.cc @@ -26817,6 +26817,18 @@ TEST_F(ZoneUnitarySysTest, ZeroCoolingSpeedTest) , !- Heat Recovery Water Outlet Node Name UnitarySystemPerformance:Multispeed, !- Design Specification Multispeed Object Type Sys 1 Furnace DX Cool Unitary System MultiSpeed Performance; !- Design Specification Multispeed Object Name + + UnitarySystemPerformance:Multispeed, + MultiSpeed Performance, !- Name + 1, !- Number of Speeds for Heating + 2, !- Number of Speeds for Cooling + No, !- Single Mode Operation + , !- No Load Supply Air Flow Rate Ratio + AutoSize, !- Heating Speed 1 Supply Air Flow Ratio + AutoSize, !- Cooling Speed 1 Supply Air Flow Ratio + AutoSize, !- Heating Speed 2 Supply Air Flow Ratio + AutoSize; !- Cooling Speed 2 Supply Air Flow Ratio + Coil:Cooling:DX, Sys 1 Furnace DX Cool Cooling Coil, !- Name Sys 1 Furnace DX Cool Supply Fan Outlet, !- Evaporator Inlet Node Name