mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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);
|
||||
|
||||
@ -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"
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user