Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1025e4dd
Commit
1025e4dd
authored
May 26, 2011
by
mattijs
Browse files
ENH: foamFormatConvert: implement -noConstant argument
parent
bf062453
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/miscellaneous/foamFormatConvert/foamFormatConvert.C
View file @
1025e4dd
...
...
@@ -143,7 +143,7 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
int
main
(
int
argc
,
char
*
argv
[])
{
timeSelector
::
addOptions
(
false
,
false
);
timeSelector
::
addOptions
();
argList
::
addBoolOption
(
"noConstant"
,
...
...
@@ -153,14 +153,15 @@ int main(int argc, char *argv[])
# include "addRegionOption.H"
# include "setRootCase.H"
//
Hack to
enable noConstant
// enable noConstant
by switching
if
(
!
args
.
optionFound
(
"noConstant"
))
{
const_cast
<
HashTable
<
string
>&>
(
args
.
options
()).
insert
(
"constant"
,
""
);
args
.
setOption
(
"constant"
,
""
);
}
else
{
args
.
unsetOption
(
"constant"
);
Info
<<
"Excluding the constant directory."
<<
nl
<<
endl
;
}
...
...
Write
Preview
Markdown
is supported
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