-
Notifications
You must be signed in to change notification settings - Fork 393
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 #8822 - new warning to explain why Standard62.1Summary may not be available in Output:Table:SummaryReports #8831
Conversation
if (UtilityRoutines::SameString(AlphArray(iReport), "Standard62.1Summary")) { | ||
ShowWarningError(state, | ||
format("{} Field[{}]=\"Standard62.1Summary\", Report is not enabled.", CurrentModuleObject, iReport)); | ||
ShowContinueError(state, "Do Zone Sizing or Do System Sizing must be enabled in SimulationControl."); | ||
|
||
} else { | ||
ShowSevereError( | ||
state, | ||
format("{} Field[{}]=\"{}\", invalid report name -- will not be reported.", CurrentModuleObject, iReport, AlphArray(iReport))); | ||
// ErrorsFound=.TRUE. | ||
} |
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.
New warning to explain.
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.
ref code :
EnergyPlus/src/EnergyPlus/OutputReportPredefined.cc
Lines 935 to 937 in e936516
// Standard62Report | |
if (state.dataGlobal->DoZoneSizing || state.dataGlobal->DoSystemSizing) { | |
s->pdrStd62 = newPreDefReport(state, "Standard62.1Summary", "Std62", "Standard 62.1 Summary"); |
TEST_F(EnergyPlusFixture, OutputReportTabularTest_PredefinedTable_Standard62_1_NoSizing) | ||
{ | ||
// Test for #8822 - new warning to explain why Standard62.1 report is not enabled | ||
std::string const idf_objects = delimited_string({ | ||
"Output:Table:SummaryReports,", | ||
" Standard62.1Summary; !- Report 1 Name", | ||
}); | ||
|
||
ASSERT_TRUE(process_idf(idf_objects)); | ||
|
||
// These are already set to these values, but be explicit. | ||
// Because DoZoneSizing and DoSystemSizing are both false Standard62.1Summary is **not** enabled | ||
state->files.outputControl.tabular = true; | ||
state->dataGlobal->DoZoneSizing = false; | ||
state->dataGlobal->DoSystemSizing = false; |
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.
Test that the warning is issued when sizing calcs are NOT requested
TEST_F(EnergyPlusFixture, OutputReportTabularTest_PredefinedTable_Standard62_1_WithSizing) | ||
{ | ||
// Test for #8822 - ensures that when Zone/System sizing is requested, the report is there and the warning isn't. | ||
std::string const idf_objects = delimited_string({ | ||
"Output:Table:SummaryReports,", | ||
" Standard62.1Summary; !- Report 1 Name", | ||
}); | ||
|
||
ASSERT_TRUE(process_idf(idf_objects)); | ||
|
||
// Because DoZoneSizing is true Standard62.1Summary **is** enabled | ||
state->files.outputControl.tabular = true; | ||
state->dataGlobal->DoZoneSizing = true; | ||
state->dataGlobal->DoSystemSizing = false; |
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.
Test that the warning is NOT issued when sizing calcs are requested
The Standard 62.1 Summary (key: Standard62.1Summary) produces a report that is consistent with many of the outputs needed when doing calculations consistent with ASHRAE Standard 62.1-2010. | ||
|
||
\textbf{Note: The report is only generated when sizing calculations are specified.}: in \hyperref[simulationcontrol]{SimulationControl}, ``Do Zone Sizing'' or ``Do System Sizing'' must be set to ``Yes''. | ||
|
||
The abbreviations used in the report are consistent with the abbreviations used in Appendix A4 of the Standard. The following tables are part of the report: |
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.
This report is more fully described in the Input Output Reference. The Standard 62.1 Summary produces a report that is consistent with many of the outputs needed when doing calculations consistent with ASHRAE Standard 62.1-2010. | ||
|
||
The abbreviations used in the report are consistent with the abbreviations used in Appendix A4 of the Standard. Directly following is an example of the report. The key used to obtain this report is Standard62.1Summary. | ||
|
||
\textbf{Note: The report is only generated when sizing calculations are specified.}: in \hyperref[simulationcontrol]{SimulationControl}, ``Do Zone Sizing'' or ``Do System Sizing'' must be set to ``Yes''. |
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.
@jmarrec I was going to start reviewing this but noticed that it had some formatting checks failing. Can you fix those and the merge conflict? Thanks. |
@JasonGlazer Merged develop and clang-formatted. |
Thanks @jmarrec |
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.
Looks good @jmarrec
This is ready to be merged. |
Thanks for the review @JasonGlazer ! |
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.