Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENH: RASModel.C: clipping input to log

  • Loading branch information...
commit 004d1eb23f62121f3404ad93eab6426f12886ec1 1 parent 89fc6e6
mattijs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/turbulenceModels/compressible/RAS/RASModel/RASModel.C
View
2  src/turbulenceModels/compressible/RAS/RASModel/RASModel.C
@@ -165,7 +165,7 @@ scalar RASModel::yPlusLam(const scalar kappa, const scalar E) const
for (int i=0; i<10; i++)
{
- ypl = log(E*ypl)/kappa;
+ ypl = log(max(E*ypl, 1))/kappa;
}
return ypl;
Please sign in to comment.
Something went wrong with that request. Please try again.