LESfilter: Allow the name of the filter sub-dict to be specified by New

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1659
This commit is contained in:
Henry
2015-04-18 19:30:27 +01:00
parent 9c6a3c66d7
commit 73dd190003
2 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -40,10 +40,11 @@ namespace Foam
Foam::autoPtr<Foam::LESfilter> Foam::LESfilter::New
(
const fvMesh& mesh,
const dictionary& dict
const dictionary& dict,
const word& filterDictName
)
{
const word filterType(dict.lookup("filter"));
const word filterType(dict.lookup(filterDictName));
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(filterType);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -102,7 +102,8 @@ public:
static autoPtr<LESfilter> New
(
const fvMesh&,
const dictionary&
const dictionary&,
const word& filterDictName="filter"
);