Skip to content
Snippets Groups Projects
Commit 182fd767 authored by sergio's avatar sergio
Browse files

Merge branch 'master' of develop.openfoam.com:Development/OpenFOAM-plus

parents a67ae885 1ddf2591
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -106,21 +106,12 @@ int main(int argc, char *argv[])
#include "setRootCase.H"
#include "createTime.H"
fileName dictName(runTime.system()/"noiseDict");
if (args.optionFound("dict"))
{
dictName = args["dict"];
}
const word dictName("noiseDict");
#include "setSystemRunTimeDictionaryIO.H"
Info<< "Reading " << dictName << "\n" << endl;
IOdictionary dict
(
IOobject
(
dictName.expand(),
runTime,
IOobject::MUST_READ
)
);
IOdictionary dict(dictIO);
autoPtr<noiseModel> model(noiseModel::New(dict));
model->calculate();
......
......@@ -20,7 +20,7 @@ if (dictPath.size())
{
dictIO = IOobject
(
dictPath,
dictPath.expand(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
......
......@@ -20,7 +20,7 @@ if (dictPath.size())
{
dictIO = IOobject
(
dictPath,
dictPath.expand(),
runTime,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
......
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