Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
2fa6436b
Commit
2fa6436b
authored
Dec 03, 2016
by
Henry Weller
Browse files
setFields: Added '-dict' option
Resolves bug-report
http://bugs.openfoam.org/view.php?id=2366
parent
b5785926
Changes
1
Show whitespace changes
Inline
Side-by-side
applications/utilities/preProcessing/setFields/setFields.C
View file @
2fa6436b
...
...
@@ -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"
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment