Skip to content

Commit

Permalink
unused and reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Sep 1, 2024
1 parent 5ddf16b commit 2cdd1ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/EnergyPlus/WindowManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,6 @@ namespace Window {

int BlNum; // Window blind number
int SurfNumAdj; // An interzone surface's number in the adjacent zone
int ZoneNumAdj; // An interzone surface's adjacent zone number
int TotLay; // Total number of layers in a construction
// (sum of solid layers and gap layers)
int LayPtr; // Material number for a layer
Expand Down Expand Up @@ -2429,7 +2428,6 @@ namespace Window {

if (SurfNumAdj > 0) { // Interzone window

ZoneNumAdj = state.dataSurface->Surface(SurfNumAdj).Zone;
Real64 RefAirTempAdj = state.dataSurface->Surface(SurfNumAdj).getInsideAirTemperature(state, SurfNumAdj);
state.dataHeatBal->SurfTempEffBulkAir(SurfNumAdj) = RefAirTempAdj;
wm->tout = RefAirTempAdj + Constant::Kelvin; // outside air temperature
Expand Down Expand Up @@ -3394,7 +3392,6 @@ namespace Window {
Real64 CpAirOutlet = 0.0; // Heat capacity of air from window gap (J/kg-K)
Real64 CpAirZone = 0.0; // Heat capacity of zone air (J/kg-K)
Real64 InletAirHumRat = 0.0; // Humidity ratio of air from window gap entering fan
int InsideFaceIndex = 0; // intermediate variable for index of inside face in thetas

Array1D<Real64> hr = Array1D<Real64>(2 * maxGlassLayers); // Radiative conductance (W/m2-K)
Array1D<Real64> AbsRadShadeFace(2); // Solar radiation, short-wave radiation from lights, and long-wave
Expand Down Expand Up @@ -3458,6 +3455,7 @@ namespace Window {
(state.dataSurface->surfIntConv(SurfNum).model == Convect::HcInt::ASHRAETARP)) {
// coef model is "detailed" and not prescribed by user
// need to find inside face index, varies with shade/blind etc.
int InsideFaceIndex; // intermediate variable for index of inside face in thetas
if (ANY_INTERIOR_SHADE_BLIND(ShadeFlag)) {
InsideFaceIndex = wm->nglfacep;
} else {
Expand Down Expand Up @@ -3977,7 +3975,6 @@ namespace Window {

int ConstrNumSh; // Shaded construction number
int MatNumSh; // Material number of shade/blind layer
int nglassfaces; // Number of glass faces in contruction
// In the following, "gaps" refer to the gaps on either side of the shade/blind
Array1D<Real64> TGlassFace(2); // Temperature of glass surfaces facing gaps (K)
Array1D<Real64> TShadeFace(2); // Temperature of shade surfaces facing gaps (K)
Expand Down Expand Up @@ -4021,7 +4018,6 @@ namespace Window {

ConstrNumSh = state.dataSurface->Surface(SurfNum).activeShadedConstruction;
ShadeFlag = state.dataSurface->SurfWinShadingFlag(SurfNum);
nglassfaces = 2 * state.dataConstruction->Construct(ConstrNumSh).TotGlassLayers;

if (state.dataConstruction->Construct(ConstrNumSh).TotGlassLayers == 2) { // Double glazing
MatNumSh = state.dataConstruction->Construct(ConstrNumSh).LayerPoint(3);
Expand Down

4 comments on commit 2cdd1ef

@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-WindowManager (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-WindowManager (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-WindowManager (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

@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-WindowManager (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

Please sign in to comment.