-
Notifications
You must be signed in to change notification settings - Fork 448
Fix issues with meters reporting during warmup #11170
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
@lymereJ @Myoldmopar it has been 28 days since this pull request was last updated. |
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.
Code walk-through:
if (state.dataSysVars->ReportDuringWarmup) { | ||
OutputProcessor::ResetAccumulationWhenWarmupComplete(state); | ||
} |
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.
Use (unused) existing function to reset the meters when warmup is complete.
EXPECT_NEAR(state->dataUnitarySystems->unitarySys[0].m_DesignCoolingCapacity, 24883.6371, 0.05); | ||
|
||
// Check meter accumulation | ||
// Lights are 1W so the meter should be 3600 [J] * 24 hours | ||
EXPECT_TRUE(state->dataOutputProcessor->meters[4]->periodFinYrSM.Value == 3600 * 24); |
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.
Piggy-back on an existing unit test; A 1 W light object is used to check that the meters are being reset.
The defect file was updated to v25.2: defect_file_252.txt. When using this branch, the results are the same whether ![]() These are the same results that we get when using |
Pull request overview
Output:Diagnostics
'sReportDuringWarmup
option impact annual energy use #11141Description of the purpose of this PR
Pull Request Author
Reviewer