Skip to content
Snippets Groups Projects
Commit 115bf529 authored by mattijs's avatar mattijs
Browse files

BUG: vanDriestDelta: use 1 if not specified. See #2648

parent 09f4d851
Branches
Tags
No related merge requests found
...@@ -135,6 +135,7 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta ...@@ -135,6 +135,7 @@ Foam::LESModels::vanDriestDelta::vanDriestDelta
) )
) )
{ {
calcInterval_ = 1;
const dictionary& coeffsDict(dict.optionalSubDict(type() + "Coeffs")); const dictionary& coeffsDict(dict.optionalSubDict(type() + "Coeffs"));
if (!coeffsDict.readIfPresent("calcInterval", calcInterval_)) if (!coeffsDict.readIfPresent("calcInterval", calcInterval_))
{ {
...@@ -155,6 +156,7 @@ void Foam::LESModels::vanDriestDelta::read(const dictionary& dict) ...@@ -155,6 +156,7 @@ void Foam::LESModels::vanDriestDelta::read(const dictionary& dict)
dict.readIfPresent<scalar>("kappa", kappa_); dict.readIfPresent<scalar>("kappa", kappa_);
coeffsDict.readIfPresent<scalar>("Aplus", Aplus_); coeffsDict.readIfPresent<scalar>("Aplus", Aplus_);
coeffsDict.readIfPresent<scalar>("Cdelta", Cdelta_); coeffsDict.readIfPresent<scalar>("Cdelta", Cdelta_);
calcInterval_ = 1;
if (!coeffsDict.readIfPresent<label>("calcInterval", calcInterval_)) if (!coeffsDict.readIfPresent<label>("calcInterval", calcInterval_))
{ {
coeffsDict.readIfPresent("updateInterval", calcInterval_); coeffsDict.readIfPresent("updateInterval", calcInterval_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment