ENH: noiseModels - updated frequency bounds handling

This commit is contained in:
Andrew Heather
2017-03-03 14:24:56 +00:00
parent 9741ce6e0d
commit f3abf405a8
3 changed files with 32 additions and 11 deletions

View File

@ -159,7 +159,11 @@ bool Foam::noiseModel::read(const dictionary& dict)
dict.readIfPresent("rhoRef", rhoRef_);
dict.readIfPresent("N", nSamples_);
customBounds_ = false;
if (dict.readIfPresent("fl", fLower_) || dict.readIfPresent("fu", fUpper_))
if (dict.readIfPresent("fl", fLower_))
{
customBounds_ = true;
}
if (dict.readIfPresent("fu", fUpper_))
{
customBounds_ = true;
}