Skip to content
Snippets Groups Projects
Commit 84aa3914 authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: noise - updated creation of control dictionary to allow -case option and...

BUG: noise - updated creation of control dictionary to allow -case option and env variables.  Fixes #402
parent 7e20157d
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -106,21 +106,12 @@ int main(int argc, char *argv[]) ...@@ -106,21 +106,12 @@ int main(int argc, char *argv[])
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
fileName dictName(runTime.system()/"noiseDict"); const word dictName("noiseDict");
if (args.optionFound("dict")) #include "setSystemRunTimeDictionaryIO.H"
{
dictName = args["dict"]; Info<< "Reading " << dictName << "\n" << endl;
}
IOdictionary dict IOdictionary dict(dictIO);
(
IOobject
(
dictName.expand(),
runTime,
IOobject::MUST_READ
)
);
autoPtr<noiseModel> model(noiseModel::New(dict)); autoPtr<noiseModel> model(noiseModel::New(dict));
model->calculate(); model->calculate();
......
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