argList: addition of fileHandler option moved to argList.C

Patch contributed by Timo Niemi, VTT.
Resolves bug-report https://bugs.openfoam.org/view.php?id=2645
This commit is contained in:
Henry Weller
2017-08-03 10:47:55 +01:00
parent 89ccd9169c
commit ef412e1b83
2 changed files with 7 additions and 16 deletions

View File

@ -72,6 +72,13 @@ Foam::argList::initValidTables::initValidTables()
"do not execute functionObjects"
);
argList::addOption
(
"fileHandler",
"handler",
"override the fileHandler"
);
Pstream::addValidParOptions(validParOptions);
}

View File

@ -43,22 +43,6 @@ namespace Foam
defineTypeNameAndDebug(fileOperation, 0);
defineRunTimeSelectionTable(fileOperation, word);
class addArgsOptions
{
public:
addArgsOptions()
{
argList::addOption
(
"fileHandler",
"handler",
"override the fileHandler"
);
}
};
addArgsOptions intObj;
word fileOperation::defaultFileHandler
(
debug::optimisationSwitches().lookupOrAddDefault