Skip to content

Commit c688048

Browse files
committed
10299 Move a PixelCounting Check
An error message was being skipped because of the movement of the Get part of the old routine. anyScheduledShadingSurface was not set yet so the error message was never produced. This change should fix this problem and eliminate the change in the .err file for SolarShadingTestGPU.idf.
1 parent ce283a3 commit c688048

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/EnergyPlus/SolarShading.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -519,18 +519,6 @@ void GetShadowingInput(EnergyPlusData &state)
519519
state.dataSysVars->shadingMethod = ShadingMethod::PolygonClipping;
520520
}
521521

522-
if ((state.dataSysVars->shadingMethod == DataSystemVariables::ShadingMethod::PixelCounting) &&
523-
state.dataSolarShading->anyScheduledShadingSurface) {
524-
ShowSevereError(state, "The Shading Calculation Method of choice is \"PixelCounting\"; ");
525-
ShowContinueError(state, "and there is at least one shading surface of type ");
526-
ShowContinueError(state, "Shading:Site:Detailed, Shading:Building:Detailed, or Shading:Zone:Detailed, ");
527-
ShowContinueError(state, "that has an active transmittance schedule value greater than zero or may vary.");
528-
ShowContinueError(state, "With \"PixelCounting\" Shading Calculation Method, the shading surfaces will be treated as ");
529-
ShowContinueError(state, "completely opaque (transmittance = 0) during the shading calculation, ");
530-
ShowContinueError(state, "which may result in inaccurate or unexpected results.");
531-
ShowContinueError(state, "It is suggested switching to another Shading Calculation Method, such as \"PolygonClipping\".");
532-
}
533-
534522
aNum++;
535523
if (NumAlphas >= aNum) {
536524
if (Util::SameString(state.dataIPShortCut->cAlphaArgs(aNum), "Periodic")) {
@@ -738,6 +726,18 @@ void processShadowingInput(EnergyPlusData &state)
738726
{
739727
// all shadow input processing that needed zones and surfaces to already be read into data (part of fix for Defect #10299)
740728

729+
if ((state.dataSysVars->shadingMethod == DataSystemVariables::ShadingMethod::PixelCounting) &&
730+
state.dataSolarShading->anyScheduledShadingSurface) {
731+
ShowSevereError(state, "The Shading Calculation Method of choice is \"PixelCounting\"; ");
732+
ShowContinueError(state, "and there is at least one shading surface of type ");
733+
ShowContinueError(state, "Shading:Site:Detailed, Shading:Building:Detailed, or Shading:Zone:Detailed, ");
734+
ShowContinueError(state, "that has an active transmittance schedule value greater than zero or may vary.");
735+
ShowContinueError(state, "With \"PixelCounting\" Shading Calculation Method, the shading surfaces will be treated as ");
736+
ShowContinueError(state, "completely opaque (transmittance = 0) during the shading calculation, ");
737+
ShowContinueError(state, "which may result in inaccurate or unexpected results.");
738+
ShowContinueError(state, "It is suggested switching to another Shading Calculation Method, such as \"PolygonClipping\".");
739+
}
740+
741741
if (state.dataSysVars->shadingMethod == DataSystemVariables::ShadingMethod::Imported) {
742742
int ExtShadingSchedNum;
743743
for (int SurfNum = 1; SurfNum <= state.dataSurface->TotSurfaces; ++SurfNum) {

0 commit comments

Comments
 (0)