Skip to content

Commit

Permalink
Merge pull request #10687 from NREL/CppCheck-ConvectionCoefficients-l…
Browse files Browse the repository at this point in the history
…og1p

CppCheck log to log1p to see what diffs look like
  • Loading branch information
Myoldmopar authored Sep 10, 2024
2 parents d6e4966 + 4b4da6c commit 08056a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnergyPlus/ConvectionCoefficients.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6301,7 +6301,7 @@ Real64 CalcClearRoof(EnergyPlusData &state,

Real64 Rf = RoughnessMultiplier[(int)RoughnessIndex];
if (Rex > 0.1) { // avoid zero and crazy small denominators
Real64 tmp = std::log(1.0 + GrLn / pow_2(Rex));
Real64 tmp = std::log1p(GrLn / pow_2(Rex));
eta = tmp / (1.0 + tmp);
} else {
eta = 1.0; // forced convection gone because no wind
Expand Down

0 comments on commit 08056a2

Please sign in to comment.