Skip to content

Commit

Permalink
10299 Request to Improve Variable Name
Browse files Browse the repository at this point in the history
Addressed review request to change the name of a variable to be more descriptive.
  • Loading branch information
RKStrand committed Jul 24, 2024
1 parent 5664dfa commit a0cff9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/DataSystemVariables.hh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ struct SystemVarsData : BaseGlobalStruct
bool DisableSelfShadingWithinGroup = false;
bool DisableSelfShadingBetweenGroup = false;

int shadingGroupsNum = 0; // number of shading groups
Array1D_string zoneName; // array of zone names in user input
int shadingGroupsNum = 0; // number of shading groups
Array1D_string shadingGroupZoneListNames; // array of zone names in user input

bool TrackAirLoopEnvFlag = false; // If TRUE generates a file with runtime statistics for each HVAC
// controller on each air loop
Expand Down
7 changes: 4 additions & 3 deletions src/EnergyPlus/SolarShading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ void GetShadowingInput(EnergyPlusData &state)

aNum++;
state.dataSysVars->shadingGroupsNum = NumAlphas - (aNum - 1);
state.dataSysVars->zoneName.allocate(state.dataSysVars->shadingGroupsNum);
state.dataSysVars->shadingGroupZoneListNames.allocate(state.dataSysVars->shadingGroupsNum);
for (int numZone = 1; numZone <= state.dataSysVars->shadingGroupsNum; ++numZone) {
state.dataSysVars->zoneName(numZone) = state.dataIPShortCut->cAlphaArgs(aNum - 1 + numZone);
state.dataSysVars->shadingGroupZoneListNames(numZone) = state.dataIPShortCut->cAlphaArgs(aNum - 1 + numZone);
}

if (!state.dataSysVars->DetailedSolarTimestepIntegration && state.dataSurface->ShadingTransmittanceVaries &&
Expand Down Expand Up @@ -757,7 +757,8 @@ void processShadowingInput(EnergyPlusData &state)
if (NumOfShadingGroups > 0) {
DisableSelfShadingGroups.allocate(NumOfShadingGroups);
for (int i = 1; i <= NumOfShadingGroups; i++) {
Found = Util::FindItemInList(state.dataSysVars->zoneName(i), state.dataHeatBal->ZoneList, state.dataHeatBal->NumOfZoneLists);
Found = Util::FindItemInList(
state.dataSysVars->shadingGroupZoneListNames(i), state.dataHeatBal->ZoneList, state.dataHeatBal->NumOfZoneLists);
if (Found != 0) DisableSelfShadingGroups(i) = Found;
}

Expand Down

5 comments on commit a0cff9a

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

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

10299CheckConvexityChangeCheckForShadowCalculations (RKStrand) - x86_64-MacOS-10.18-clang-15.0.0: OK (3649 of 3650 tests passed, 786 test warnings)

Messages:\n

  • 787 tests had: EIO diffs.
  • 25 tests had: ESO small diffs.
  • 15 tests had: MTR small diffs.
  • 11 tests had: Table small diffs.
  • 30 tests had: ERR diffs.
  • 1 test had: Table string diffs.

Failures:\n

regression Test Summary

  • Passed: 790
  • Failed: 1

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.

10299CheckConvexityChangeCheckForShadowCalculations (RKStrand) - Win64-Windows-10-VisualStudio-16: OK (2858 of 2858 tests passed, 0 test warnings)

Build Badge Test 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.

10299CheckConvexityChangeCheckForShadowCalculations (RKStrand) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3688 of 3691 tests passed, 788 test warnings)

Messages:\n

  • 791 tests had: EIO diffs.
  • 26 tests had: ESO small diffs.
  • 13 tests had: MTR small diffs.
  • 10 tests had: Table small diffs.
  • 30 tests had: ERR diffs.
  • 3 tests had: Table string diffs.
  • 1 test had: ESO big diffs.
  • 1 test had: Table big diffs.

Failures:\n

regression Test Summary

  • Passed: 808
  • Failed: 3

Build Badge Test 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.

10299CheckConvexityChangeCheckForShadowCalculations (RKStrand) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (2066 of 2066 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.

10299CheckConvexityChangeCheckForShadowCalculations (RKStrand) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (795 of 795 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.