Skip to content

Commit

Permalink
I'm officially starting to lose it
Browse files Browse the repository at this point in the history
  • Loading branch information
amirroth committed Dec 12, 2024
1 parent 1c1ead8 commit 7b4e5a4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/EnergyPlus/ScheduleManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3317,9 +3317,9 @@ namespace Sched {
for (int i = 0; i < Constant::iHoursInDay * s_glob->TimeStepsInHour; ++i) {
if (daySched->tsVals[i] == value) return true;
}
daySchedChecked[iDay] = true;
daySchedChecked[daySched->Num] = true;
}
weekSchedChecked[iWeek] = true;
weekSchedChecked[weekSched->Num] = true;
}

return false;
Expand Down Expand Up @@ -3363,19 +3363,19 @@ namespace Sched {
std::fill(daySchedChecked.begin(), daySchedChecked.end(), false);

for (int iWeek = 1; iWeek <= 366; ++iWeek) {
if (weekSchedChecked[iWeek]) continue;

auto const *weekSched = this->weekScheds[iWeek];
for (int iDay = 1; iDay < (int)DayType::Num; ++iDay) {
if (daySchedChecked[iDay]) continue;
if (weekSchedChecked[weekSched->Num]) continue;

for (int iDay = 1; iDay < (int)DayType::Num; ++iDay) {
auto const *daySched = weekSched->dayScheds[iDay];
if (daySchedChecked[daySched->Num]) continue;

for (int i = 0; i < Constant::iHoursInDay * s_glob->TimeStepsInHour; ++i) {
if (daySched->tsVals[i] > 0.0 && daySched->tsVals[i] < 1.0) return true;
}
daySchedChecked[iDay] = true;
daySchedChecked[daySched->Num] = true;
}
weekSchedChecked[iWeek] = true;
weekSchedChecked[weekSched->Num] = true;
}

return false;
Expand Down

3 comments on commit 7b4e5a4

@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.2: OK (2908 of 2918 tests passed, 0 test warnings)

Failures:\n

API Test Summary

  • Passed: 14
  • Subprocess aborted: 2

EnergyPlusFixture Test Summary

  • Passed: 1602
  • Failed: 2
  • Subprocess aborted: 1

integration Test Summary

  • Passed: 796
  • Failed: 5

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.2-UnitTestsCoverage-RelWithDebInfo: OK (2095 of 2100 tests passed, 0 test warnings)

Failures:\n

API Test Summary

  • Passed: 14
  • Subprocess aborted: 2

EnergyPlusFixture Test Summary

  • Passed: 1602
  • Failed: 2
  • Subprocess aborted: 1

Build Badge Test Badge Coverage 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.2-IntegrationCoverage-RelWithDebInfo: OK (796 of 801 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 796
  • Failed: 5

Build Badge Test Badge Coverage Badge

Please sign in to comment.