-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-discover unit tests #10922
Auto-discover unit tests #10922
Changes from all commits
d19f088
590cfde
1689f26
34de646
12b75e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,13 +249,16 @@ namespace Window { | |
constrSh.effShadeBlindEmi[iSlatAng] = EpsShIR * (1.0 + RhoGlIR * TauShIR / (1.0 - RhoGlIR * RhoShIR)); | ||
constrSh.effGlassEmi[iSlatAng] = EpsGlIR * TauShIR / (1.0 - RhoGlIR * RhoShIR); | ||
} | ||
|
||
surfShade.effShadeEmi = Interp(constrSh.effShadeBlindEmi[surfShade.blind.slatAngIdxLo], | ||
constrSh.effShadeBlindEmi[surfShade.blind.slatAngIdxHi], | ||
surfShade.blind.slatAngInterpFac); | ||
surfShade.effGlassEmi = Interp(constrSh.effGlassEmi[surfShade.blind.slatAngIdxLo], | ||
constrSh.effGlassEmi[surfShade.blind.slatAngIdxHi], | ||
surfShade.blind.slatAngInterpFac); | ||
// The following surface assignments previously lived in the WindowManagerExteriorThermal file. | ||
// They were moved here during the Material refactor, however I found that the array index values Lo/Hi | ||
// were making it here still as -1, and this was causing a difficult to diagnose segfault. | ||
// I'm moving these back over there, but open to suggestion if they need to be here. | ||
// surfShade.effShadeEmi = Interp(constrSh.effShadeBlindEmi[surfShade.blind.slatAngIdxLo], | ||
// constrSh.effShadeBlindEmi[surfShade.blind.slatAngIdxHi], | ||
// surfShade.blind.slatAngInterpFac); | ||
// surfShade.effGlassEmi = Interp(constrSh.effGlassEmi[surfShade.blind.slatAngIdxLo], | ||
// constrSh.effGlassEmi[surfShade.blind.slatAngIdxHi], | ||
// surfShade.blind.slatAngInterpFac); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment explains it, but basically, on my Apple Silicon, in a release build, this was throwing a segfault because the array indices were still -1 here. I just moved them to where they were assigned before the Material refactor, and it's all happy locally. We'll see how CI likes it. |
||
} // End of check if interior shade or interior blind | ||
} // End of surface loop | ||
} // InitWCE_SimplifiedOpticalData() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,10 +140,15 @@ namespace Window { | |
} | ||
SurfInsideTemp = aTemp - Constant::Kelvin; | ||
if (ANY_INTERIOR_SHADE_BLIND(state.dataSurface->SurfWinShadingFlag(SurfNum))) { | ||
auto const &surfShade = state.dataSurface->surfShades(SurfNum); | ||
auto &surfShade = state.dataSurface->surfShades(SurfNum); | ||
Real64 EffShBlEmiss = surfShade.effShadeEmi; | ||
Real64 EffGlEmiss = surfShade.effGlassEmi; | ||
|
||
surfShade.effShadeEmi = Interp(construction.effShadeBlindEmi[surfShade.blind.slatAngIdxLo], | ||
construction.effShadeBlindEmi[surfShade.blind.slatAngIdxHi], | ||
surfShade.blind.slatAngInterpFac); | ||
surfShade.effGlassEmi = Interp(construction.effGlassEmi[surfShade.blind.slatAngIdxLo], | ||
construction.effGlassEmi[surfShade.blind.slatAngIdxHi], | ||
surfShade.blind.slatAngInterpFac); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved these back here, where they were before the Material refactor. Let's see. |
||
state.dataSurface->SurfWinEffInsSurfTemp(SurfNum) = | ||
(EffShBlEmiss * SurfInsideTemp + EffGlEmiss * (state.dataWindowManager->thetas[2 * totSolidLayers - 3] - Constant::Kelvin)) / | ||
(EffShBlEmiss + EffGlEmiss); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced that block of "manual" source code parsing with just a call to let gtest discover the tests and add them to ctest. Excellence.