mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
foamDictionary, adiabaticFlameT, equilibriumFlameT: remove unused case related options
This commit is contained in:
@ -238,9 +238,10 @@ void remove(dictionary& dict, const dictionary& removeDict)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#include "removeCaseOptions.H"
|
||||
|
||||
writeInfoHeader = false;
|
||||
|
||||
argList::removeOption("case");
|
||||
argList::addNote("manipulates dictionaries");
|
||||
argList::validArgs.append("dictionary file");
|
||||
argList::addBoolOption("keywords", "list keywords");
|
||||
|
||||
@ -31,11 +31,9 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
#include "dictionary.H"
|
||||
#include "IFstream.H"
|
||||
#include "OSspecific.H"
|
||||
#include "etcFiles.H"
|
||||
#include "dimensionedTypes.H"
|
||||
|
||||
#include "specie.H"
|
||||
#include "perfectGas.H"
|
||||
@ -52,6 +50,8 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#include "removeCaseOptions.H"
|
||||
|
||||
argList::validArgs.append("properties dictionary");
|
||||
argList args(argc, argv);
|
||||
|
||||
|
||||
@ -32,12 +32,11 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
#include "Time.H"
|
||||
#include "dictionary.H"
|
||||
#include "IFstream.H"
|
||||
#include "OSspecific.H"
|
||||
#include "etcFiles.H"
|
||||
#include "IOmanip.H"
|
||||
#include "dimensionedTypes.H"
|
||||
|
||||
#include "specie.H"
|
||||
#include "perfectGas.H"
|
||||
@ -54,6 +53,8 @@ typedef species::thermo<janafThermo<perfectGas<specie>>, absoluteEnthalpy>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#include "removeCaseOptions.H"
|
||||
|
||||
argList::validArgs.append("properties dictionary");
|
||||
argList args(argc, argv);
|
||||
|
||||
|
||||
@ -90,6 +90,17 @@ Foam::argList::initValidTables::initValidTables()
|
||||
}
|
||||
|
||||
|
||||
void Foam::argList::initValidTables::clear()
|
||||
{
|
||||
argList::removeOption("case");
|
||||
argList::removeOption("parallel");
|
||||
argList::removeOption("roots");
|
||||
argList::removeOption("hostRoots");
|
||||
argList::removeOption("noFunctionObjects");
|
||||
argList::removeOption("fileHandler");
|
||||
}
|
||||
|
||||
|
||||
Foam::argList::initValidTables dummyInitValidTables;
|
||||
|
||||
|
||||
|
||||
@ -174,14 +174,18 @@ public:
|
||||
//- Standard name for the post-processing option
|
||||
static word postProcessOptionName;
|
||||
|
||||
//! \cond internalClass
|
||||
// Class to initialize options table
|
||||
// with the standard case related options
|
||||
class initValidTables
|
||||
{
|
||||
public:
|
||||
|
||||
initValidTables();
|
||||
|
||||
//- Clear the options table
|
||||
// for utilities which do not operate on files rather than cases
|
||||
static void clear();
|
||||
};
|
||||
//! \endcond
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
Reference in New Issue
Block a user