Skip to content

Commit bc6b68b

Browse files
committed
Ensure m_CoolingSpeedNum is at least 1
1 parent 3b384bd commit bc6b68b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/EnergyPlus/UnitarySystem.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14130,6 +14130,7 @@ namespace UnitarySystems {
1413014130

1413114131
if (OutletHumRatLS > DesOutHumRat) {
1413214132
CycRatio = 1.0;
14133+
this->m_CoolingSpeedNum = std::max(1, this->m_CoolingSpeedNum);
1413314134

1413414135
for (int speedNum = this->m_CoolingSpeedNum; speedNum <= this->m_NumOfSpeedCooling; ++speedNum) {
1413514136
VariableSpeedCoils::SimVariableSpeedCoils(state,

0 commit comments

Comments
 (0)