mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamFormatConvert: implement -noConstant argument
This commit is contained in:
@ -143,7 +143,7 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
timeSelector::addOptions(false, false);
|
timeSelector::addOptions();
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
"noConstant",
|
"noConstant",
|
||||||
@ -153,14 +153,15 @@ int main(int argc, char *argv[])
|
|||||||
# include "addRegionOption.H"
|
# include "addRegionOption.H"
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
|
|
||||||
// Hack to enable noConstant
|
// enable noConstant by switching
|
||||||
if (!args.optionFound("noConstant"))
|
if (!args.optionFound("noConstant"))
|
||||||
{
|
{
|
||||||
const_cast<HashTable<string>&>(args.options()).insert
|
args.setOption("constant", "");
|
||||||
(
|
}
|
||||||
"constant",
|
else
|
||||||
""
|
{
|
||||||
);
|
args.unsetOption("constant");
|
||||||
|
Info<< "Excluding the constant directory." << nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user