From 266069df9b25eabf52791fdfb6b042d7dbea99fb Mon Sep 17 00:00:00 2001 From: rraustad Date: Wed, 25 Dec 2024 12:15:36 -0500 Subject: [PATCH] CppCheck log1p HVACVariableRefrigerantFlow --- src/EnergyPlus/HVACVariableRefrigerantFlow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EnergyPlus/HVACVariableRefrigerantFlow.cc b/src/EnergyPlus/HVACVariableRefrigerantFlow.cc index 87722ea5a58..47b272b587c 100644 --- a/src/EnergyPlus/HVACVariableRefrigerantFlow.cc +++ b/src/EnergyPlus/HVACVariableRefrigerantFlow.cc @@ -14968,7 +14968,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; }