Skip to content

Commit

Permalink
Merge pull request #10879 from NREL/CppCheck-log1p-HVACVariableRefrig…
Browse files Browse the repository at this point in the history
…erantFlow

CppCheck log1p HVACVariableRefrigerantFlow
  • Loading branch information
Myoldmopar authored Jan 9, 2025
2 parents b85f3f1 + 266069d commit fc0e338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnergyPlus/HVACVariableRefrigerantFlow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14939,7 +14939,7 @@ void VRFCondenserEquipment::VRFOU_PipeLossC(
Pipe_Coe_k1 = Pipe_Num_Nu * Pipe_viscosity_ref;
Pipe_Coe_k3 = RefPipInsH * (this->RefPipDiaSuc + 2 * this->RefPipInsThi);
if (this->RefPipInsThi >= 0.0) {
Pipe_Coe_k2 = 2 * this->RefPipInsCon / std::log(1.0 + 2 * this->RefPipInsThi / this->RefPipDiaSuc);
Pipe_Coe_k2 = 2 * this->RefPipInsCon / std::log1p(2 * this->RefPipInsThi / this->RefPipDiaSuc);
} else {
Pipe_Coe_k2 = 9999.9;
}
Expand Down

0 comments on commit fc0e338

Please sign in to comment.