-
Notifications
You must be signed in to change notification settings - Fork 392
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 OutputReportTabular #10740
base: develop
Are you sure you want to change the base?
CppCheck OutputReportTabular #10740
Conversation
@@ -175,7 +175,7 @@ void GetOutsideEnergySourcesInput(EnergyPlusData &state) | |||
EnergyType = DataPlant::PlantEquipmentType::PurchHotWater; | |||
heatWaterIndex++; | |||
thisIndex = heatWaterIndex; | |||
} else if (EnergySourceNum > NumDistrictUnitsHeatWater && EnergySourceNum <= NumDistrictUnitsHeatWater + NumDistrictUnitsCool) { | |||
} else if (EnergySourceNum <= NumDistrictUnitsHeatWater + NumDistrictUnitsCool) { |
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/OutsideEnergySources.cc:178]:(style),[knownConditionTrueFalse],Condition 'EnergySourceNum>NumDistrictUnitsHeatWater' is always true
@@ -95,12 +95,12 @@ namespace Material { | |||
Tau2 = this->deltaTempMeltingHigh; | |||
if (updatedTempTDT < TempLowPCM) { | |||
phaseChangeState = Phase::Crystallized; | |||
} else if (updatedTempTDT >= TempLowPCM && updatedTempTDT <= TempHighPCM) { | |||
} else if (updatedTempTDT <= TempHighPCM) { |
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/PhaseChangeModeling/HysteresisModel.cc:98]:(style),[knownConditionTrueFalse],Condition 'updatedTempTDT>=TempLowPCM' is always true
0.00010184 * (t_film + 273.15) - 0.00039333; // Dumas, A., and Trancossi, M., SAE Technical Papers, 2009 | ||
density_air = 101.3 / (0.287 * (t_film + 273.15)); // Ideal gas law | ||
diffusivity_air = k_air / (cp_amb * density_air); // definition | ||
kin_viscosity_air = mu_air / density_air; // definition |
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/PhotovoltaicThermalCollectors.cc:1530]:(style),[redundantAssignment],Variable 'prandtl_air' is reassigned a value before the old one has been used.
src/EnergyPlus/Photovoltaics.cc
Outdated
Real64 const II, // Autodesk Aliased to XX in some calls | ||
Real64 const VV, // Autodesk Aliased to XX in some calls | ||
Real64 const &II, // Autodesk Aliased to XX in some calls | ||
Real64 const &VV, // Autodesk Aliased to XX in some calls |
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.
Debugger showed an uninitialized argument in the call to the NEWTON function for argument II. Changing the argument declarations back to what it was previously corrected the example file failures for GeneratorswithPV and ShopWithBIPVT.
@rraustad @Myoldmopar it has been 28 days since this pull request was last updated. |
Pull request overview
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.