mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
functionObjects: Simplified the handling of the post-processing mode
Replaced the 'postProcess' argument to the 'write' and 'execute' functions with the single static member 'postProcess' in the functionObject base-class.
This commit is contained in:
@ -121,7 +121,7 @@ bool ${typeName}FunctionObject::read(const dictionary& dict)
|
||||
}
|
||||
|
||||
|
||||
bool ${typeName}FunctionObject::execute(const bool postProcess)
|
||||
bool ${typeName}FunctionObject::execute()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
{
|
||||
@ -136,7 +136,7 @@ bool ${typeName}FunctionObject::execute(const bool postProcess)
|
||||
}
|
||||
|
||||
|
||||
bool ${typeName}FunctionObject::write(const bool postProcess)
|
||||
bool ${typeName}FunctionObject::write()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
{
|
||||
|
||||
@ -100,13 +100,13 @@ public:
|
||||
virtual bool read(const dictionary&);
|
||||
|
||||
//- Execute the "executeCalls" at each time-step
|
||||
virtual bool execute(const bool postProcess = false);
|
||||
virtual bool execute();
|
||||
|
||||
//- Execute the "endCalls" at the final time-loop
|
||||
virtual bool end();
|
||||
|
||||
//- Write, execute the "writeCalls"
|
||||
virtual bool write(const bool postProcess = false);
|
||||
virtual bool write();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user