Commit 73dd1900 authored by Henry's avatar Henry
Browse files

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
parent 9c6a3c66
......@@ -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"
);
......
Markdown is supported
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