Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Sep 1, 2024
1 parent 2751905 commit 6eb7369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EnergyPlus/ZoneTempPredictorCorrector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state)
TStatObjects.ZoneListActive = false;
TStatObjects.ZoneOrZoneListPtr = Item1;
} else if (ZLItem > 0) {
auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
TStatObjects.TempControlledZoneStartPtr = state.dataZoneCtrls->NumTempControlledZones + 1;
state.dataZoneCtrls->NumTempControlledZones += ZoneList.NumOfZones;
TStatObjects.NumOfZones = ZoneList.NumOfZones;
Expand Down Expand Up @@ -978,7 +978,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state)
ComfortTStatObjects.ZoneListActive = false;
ComfortTStatObjects.ZoneOrZoneListPtr = Item1;
} else if (ZLItem > 0) {
auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
ComfortTStatObjects.ComfortControlledZoneStartPtr = state.dataZoneCtrls->NumComfortControlledZones + 1;
state.dataZoneCtrls->NumComfortControlledZones += ZoneList.NumOfZones;
ComfortTStatObjects.NumOfZones = ZoneList.NumOfZones;
Expand Down Expand Up @@ -1810,7 +1810,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state)
Real64 ZoneVolCapMultpGenContam_temp = 0.0;

for (int ZoneNum = 1; ZoneNum <= NumOfZones; ZoneNum++) {
auto &Zone = state.dataHeatBal->Zone(ZoneNum);
auto const &Zone = state.dataHeatBal->Zone(ZoneNum);
ZoneVolCapMultpSens_temp += Zone.ZoneVolCapMultpSens;
ZoneVolCapMultpMoist_temp += Zone.ZoneVolCapMultpMoist;
ZoneVolCapMultpCO2_temp += Zone.ZoneVolCapMultpCO2;
Expand Down Expand Up @@ -2285,7 +2285,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state)
state.dataZoneCtrls->StagedTStatObjects(Item).ZoneListActive = false;
state.dataZoneCtrls->StagedTStatObjects(Item).ZoneOrZoneListPtr = Item1;
} else if (ZLItem > 0) {
auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem);
state.dataZoneCtrls->StagedTStatObjects(Item).TempControlledZoneStartPtr = state.dataZoneTempPredictorCorrector->NumStageCtrZone + 1;
state.dataZoneTempPredictorCorrector->NumStageCtrZone += ZoneList.NumOfZones;
state.dataZoneCtrls->StagedTStatObjects(Item).NumOfZones = ZoneList.NumOfZones;
Expand Down

4 comments on commit 6eb7369

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

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

CppCheck-ZoneTempPredCorr (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3706 of 3706 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

CppCheck-ZoneTempPredCorr (rraustad) - Win64-Windows-10-VisualStudio-16: OK (2871 of 2871 tests passed, 0 test warnings)

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.

CppCheck-ZoneTempPredCorr (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (2077 of 2077 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.

CppCheck-ZoneTempPredCorr (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (797 of 797 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.