Skip to content

Commit

Permalink
Got a little too exuberant
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Dec 23, 2024
1 parent d26c66d commit 7d637f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/EnergyPlus/DemandManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,12 @@ void GetDemandManagerListInput(EnergyPlusData &state)
thisDemandMgrList.SafetyFraction = s_ipsc->rNumericArgs(1);

if (s_ipsc->lAlphaFieldBlanks(4)) {
ShowSevereEmptyField(state, eoh, s_ipsc->cAlphaFieldNames(4));
ErrorsFound = true;
} else if ((thisDemandMgrList.billingSched = Sched::GetSchedule(state, s_ipsc->cAlphaArgs(4))) == nullptr) {
ShowSevereItemNotFound(state, eoh, s_ipsc->cAlphaFieldNames(4), s_ipsc->cAlphaArgs(4));
ErrorsFound = true;
}

if (s_ipsc->lAlphaFieldBlanks(5)) {
ShowSevereEmptyField(state, eoh, s_ipsc->cAlphaFieldNames(5));
ErrorsFound = true;
} else if ((thisDemandMgrList.peakSched = Sched::GetSchedule(state, s_ipsc->cAlphaArgs(5))) == nullptr) {
ShowSevereItemNotFound(state, eoh, s_ipsc->cAlphaFieldNames(5), s_ipsc->cAlphaArgs(5));
ErrorsFound = true;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyPlus/RefrigeratedCase.cc
Original file line number Diff line number Diff line change
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

3 comments on commit 7d637f2

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ScheduleAPI (amirroth) - x86_64-Linux-Ubuntu-24.04-gcc-13.3: OK (2917 of 2918 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 800
  • Failed: 1

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ScheduleAPI (amirroth) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-UnitTestsCoverage-RelWithDebInfo: OK (2100 of 2100 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ScheduleAPI (amirroth) - x86_64-Linux-Ubuntu-24.04-gcc-13.3-IntegrationCoverage-RelWithDebInfo: OK (800 of 801 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 800
  • Failed: 1

Build Badge Test Badge Coverage Badge

Please sign in to comment.