Skip to content
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

Fix Bug Uncovered in PR #10646 #10696

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Fix Bug Uncovered in PR #10646 #10696

merged 1 commit into from
Sep 3, 2024

Conversation

amirroth
Copy link
Collaborator

PR #10646 uncovered a bug in which the maximum number of profile angles was used to cap slat angle calculations. This bug was uncovered when the maximum number of slat angles was increased to greatly exceed the number of profile angles. I'm not sure why I didn't notice this during PR #10646.

There are expected diffs in the three testfiles that use blinds with variable slat angles. I believe that these changes will partially the diffs that #10646 showed, which is also good.

@amirroth amirroth added Defect Includes code to repair a defect in EnergyPlus DoNotPublish Includes changes that shouldn't be reported in the changelog labels Aug 25, 2024
@amirroth amirroth added this to the EnergyPlus 24.2 milestone Aug 25, 2024
@amirroth amirroth requested a review from Myoldmopar August 25, 2024 19:49
@@ -6441,7 +6441,7 @@ void CalcInteriorSolarDistribution(EnergyPlusData &state)
if (state.dataSurface->SurfWinWindowModelType(SurfNum) != WindowModel::EQL && ANY_BLIND(ShadeFlag)) {
int SlatsAngIndexLower = state.dataSurface->SurfWinSlatsAngIndex(SurfNum);
int ProfAngIndexLower = state.dataSurface->SurfWinProfAngIndex(SurfNum);
int SlatsAngIndexUpper = std::min(Material::MaxProfAngs, SlatsAngIndexLower + 1);
int SlatsAngIndexUpper = std::min(Material::MaxSlatAngs, SlatsAngIndexLower + 1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here are the changes. No explanation necessary.

Copy link
Member

Choose a reason for hiding this comment

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

Not sure about this. Just kidding. Good stuff, thanks @amirroth

@Myoldmopar Myoldmopar merged commit df3d7c7 into develop Sep 3, 2024
17 checks passed
@Myoldmopar Myoldmopar deleted the SlatAngBugFix branch September 3, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Includes code to repair a defect in EnergyPlus DoNotPublish Includes changes that shouldn't be reported in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants