Commit 2fa6436b authored by Henry Weller's avatar Henry Weller
Browse files

setFields: Added '-dict' option

Resolves bug-report http://bugs.openfoam.org/view.php?id=2366
parent b5785926
......@@ -378,24 +378,18 @@ public:
int main(int argc, char *argv[])
{
#include "addDictOption.H"
#include "addRegionOption.H"
#include "setRootCase.H"
#include "createTime.H"
#include "createNamedMesh.H"
Info<< "Reading setFieldsDict\n" << endl;
const word dictName("setFieldsDict");
#include "setSystemMeshDictionaryIO.H"
IOdictionary setFieldsDict
(
IOobject
(
"setFieldsDict",
runTime.system(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
);
Info<< "Reading " << dictName << "\n" << endl;
IOdictionary setFieldsDict(dictIO);
if (setFieldsDict.found("defaultFieldValues"))
{
......
Supports Markdown
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