Commit db75d4fe authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: vanDriestDelta - updated reading of coeffs from non-optional sub-dict

parent 9ab7fe6b
......@@ -108,7 +108,10 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta
IOobject::groupName("geometricDelta", turbulence.U().group()),
dict.optionalSubDict(type() + "Coeffs")
// Note: cannot use optionalSubDict - if no *Coeffs dict the
// code will get stuck in a loop attempting to read the delta entry
// - consider looking up "geometricDelta" instead of "delta"?
dict.subDict(type() + "Coeffs")
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment