-
Notifications
You must be signed in to change notification settings - Fork 396
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
CppCheck PurchasedAirManager #10724
CppCheck PurchasedAirManager #10724
Conversation
@@ -1616,46 +1595,25 @@ void SizePurchasedAir(EnergyPlusData &state, int const PurchAirNum) | |||
if (MaxHeatSensCapDes < HVAC::SmallLoad) { | |||
MaxHeatSensCapDes = 0.0; | |||
} | |||
if (IsAutoSize) { | |||
PurchAir(PurchAirNum).MaxHeatSensCap = MaxHeatSensCapDes; |
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.
[src/EnergyPlus/PurchasedAirManager.cc:1619]:(style),[knownConditionTrueFalse],Condition 'IsAutoSize' is always false
@@ -1786,102 +1739,80 @@ void SizePurchasedAir(EnergyPlusData &state, int const PurchAirNum) | |||
if (MaxCoolTotCapDes < HVAC::SmallLoad) { | |||
MaxCoolTotCapDes = 0.0; | |||
} | |||
if (IsAutoSize) { | |||
PurchAir(PurchAirNum).MaxCoolTotCap = MaxCoolTotCapDes; |
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.
[src/EnergyPlus/PurchasedAirManager.cc:1789]:(style),[knownConditionTrueFalse],Condition 'IsAutoSize' is always false
Great cleanups with a net of 125 or so lines removed. I'll take it! Building here with develop... |
Good stuff, merging. |
Pull request overview
-Use CppCheck as a guide
NOTE: ENHANCEMENTS MUST FOLLOW A SUBMISSION PROCESS INCLUDING A FEATURE PROPOSAL AND DESIGN DOCUMENT PRIOR TO SUBMITTING CODE
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.