Skip to content
Snippets Groups Projects
Commit 1025e4dd authored by mattijs's avatar mattijs
Browse files

ENH: foamFormatConvert: implement -noConstant argument

parent bf062453
No related merge requests found
......@@ -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;
}
......
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