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[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#include "addDictOption.H"
|
||||||
#include "addRegionOption.H"
|
#include "addRegionOption.H"
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createNamedMesh.H"
|
#include "createNamedMesh.H"
|
||||||
|
|
||||||
Info<< "Reading setFieldsDict\n" << endl;
|
const word dictName("setFieldsDict");
|
||||||
|
#include "setSystemMeshDictionaryIO.H"
|
||||||
|
|
||||||
IOdictionary setFieldsDict
|
Info<< "Reading " << dictName << "\n" << endl;
|
||||||
(
|
|
||||||
IOobject
|
IOdictionary setFieldsDict(dictIO);
|
||||||
(
|
|
||||||
"setFieldsDict",
|
|
||||||
runTime.system(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (setFieldsDict.found("defaultFieldValues"))
|
if (setFieldsDict.found("defaultFieldValues"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user