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:
parent
7cad29f7c8
commit
36b32d242b
@ -89,6 +89,13 @@ Foam::argList::initValidTables::initValidTables()
|
|||||||
"do not execute functionObjects"
|
"do not execute functionObjects"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
argList::addOption
|
||||||
|
(
|
||||||
|
"fileHandler",
|
||||||
|
"handler",
|
||||||
|
"override the fileHandler"
|
||||||
|
);
|
||||||
|
|
||||||
Pstream::addValidParOptions(validParOptions);
|
Pstream::addValidParOptions(validParOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,22 +43,6 @@ namespace Foam
|
|||||||
defineTypeNameAndDebug(fileOperation, 0);
|
defineTypeNameAndDebug(fileOperation, 0);
|
||||||
defineRunTimeSelectionTable(fileOperation, word);
|
defineRunTimeSelectionTable(fileOperation, word);
|
||||||
|
|
||||||
class addArgsOptions
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
addArgsOptions()
|
|
||||||
{
|
|
||||||
argList::addOption
|
|
||||||
(
|
|
||||||
"fileHandler",
|
|
||||||
"handler",
|
|
||||||
"override the fileHandler"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
addArgsOptions intObj;
|
|
||||||
|
|
||||||
word fileOperation::defaultFileHandler
|
word fileOperation::defaultFileHandler
|
||||||
(
|
(
|
||||||
debug::optimisationSwitches().lookupOrAddDefault
|
debug::optimisationSwitches().lookupOrAddDefault
|
||||||
|
Loading…
Reference in New Issue
Block a user