mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
setFields: Added '-dict' option
Resolves bug-report http://bugs.openfoam.org/view.php?id=2366
This commit is contained in:
@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user