-
Notifications
You must be signed in to change notification settings - Fork 461
Fix Tabular Annual Average Values with Unit Conversion #11410
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
base: develop
Are you sure you want to change the base?
Conversation
mitchute
left a comment
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.
Walk through
|
|
||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/test_code_integrity.yml) | ||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/build_documentation.yml) | ||
| [](https://github.com/NatLabRockies/EnergyPlus/actions/workflows/test_code_integrity.yml) |
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.
Unrelated. Pinning the README badges to the develop branch.
| if (ort->MonthlyColumns(curCol).duration(lMonth) > 0) { | ||
| sumVal += ((ort->MonthlyColumns(curCol).reslt(lMonth) / ort->MonthlyColumns(curCol).duration(lMonth) * | ||
| curConversionFactor) + | ||
| state.dataOutRptTab->curConversionOffset) * | ||
| ort->MonthlyColumns(curCol).duration(lMonth); | ||
| } |
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.
We have to divide reslt(lMonth) by the monthly duration, convert the units, then multiply back in the monthly duration so the annual average can be calculated later.


Pull request overview
Description of the purpose of this PR
Pull Request Author
Reviewer