Skip to content

Commit

Permalink
WalkIn freezer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Dec 21, 2024
1 parent 278e872 commit c6833bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/RefrigeratedCase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ void GetRefrigerationInput(EnergyPlusData &state)
WalkIn(WalkInID).Name = Alphas(1);

if (lAlphaBlanks(2)) {
WalkIn(WalkInID).availSched = Sched::GetScheduleAlwaysOn(state);
WalkIn(WalkInID).availSched = Sched::GetScheduleAlwaysOn(state);
} else if ((WalkIn(WalkInID).availSched = Sched::GetSchedule(state, Alphas(2))) == nullptr) {
ShowSevereItemNotFound(state, eoh, cAlphaFieldNames(2), Alphas(2));
ErrorsFound = true;
Expand Down Expand Up @@ -2242,7 +2242,7 @@ void GetRefrigerationInput(EnergyPlusData &state)
}

++AlphaNum; // A6
if (!lAlphaBlanks(AlphaNum)) {
if (lAlphaBlanks(AlphaNum)) {
WarehouseCoil(CoilID).heaterAvailSched = Sched::GetScheduleAlwaysOn(state);
} else if ((WarehouseCoil(CoilID).heaterAvailSched = Sched::GetSchedule(state, Alphas(AlphaNum))) == nullptr) {
ShowSevereItemNotFound(state, eoh, cAlphaFieldNames(AlphaNum), Alphas(AlphaNum));
Expand Down

0 comments on commit c6833bb

Please sign in to comment.