mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +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:
@ -237,7 +237,7 @@ Foam::patchProbes::~patchProbes()
|
||||
{}
|
||||
|
||||
|
||||
bool Foam::patchProbes::write(const bool postProcess)
|
||||
bool Foam::patchProbes::write()
|
||||
{
|
||||
if (this->size() && prepare())
|
||||
{
|
||||
|
||||
@ -154,7 +154,7 @@ public:
|
||||
//- Public members
|
||||
|
||||
//- Sample and write
|
||||
virtual bool write(const bool postProcess = false);
|
||||
virtual bool write();
|
||||
|
||||
//- Read
|
||||
virtual bool read(const dictionary&);
|
||||
|
||||
@ -357,13 +357,13 @@ bool Foam::probes::read(const dictionary& dict)
|
||||
}
|
||||
|
||||
|
||||
bool Foam::probes::execute(const bool postProcess)
|
||||
bool Foam::probes::execute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::probes::write(const bool postProcess)
|
||||
bool Foam::probes::write()
|
||||
{
|
||||
if (size() && prepare())
|
||||
{
|
||||
|
||||
@ -252,10 +252,10 @@ public:
|
||||
virtual bool read(const dictionary&);
|
||||
|
||||
//- Execute, currently does nothing
|
||||
virtual bool execute(const bool postProcess = false);
|
||||
virtual bool execute();
|
||||
|
||||
//- Sample and write
|
||||
virtual bool write(const bool postProcess = false);
|
||||
virtual bool write();
|
||||
|
||||
//- Update for changes of mesh
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
@ -228,13 +228,13 @@ void Foam::sampledSets::verbose(const bool verbosity)
|
||||
}
|
||||
|
||||
|
||||
bool Foam::sampledSets::execute(const bool postProcess)
|
||||
bool Foam::sampledSets::execute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::sampledSets::write(const bool postProcess)
|
||||
bool Foam::sampledSets::write()
|
||||
{
|
||||
if (size())
|
||||
{
|
||||
|
||||
@ -288,10 +288,10 @@ public:
|
||||
virtual bool read(const dictionary&);
|
||||
|
||||
//- Execute, currently does nothing
|
||||
virtual bool execute(const bool postProcess = false);
|
||||
virtual bool execute();
|
||||
|
||||
//- Sample and write
|
||||
virtual bool write(const bool postProcess = false);
|
||||
virtual bool write();
|
||||
|
||||
//- Correct for mesh changes
|
||||
void correct();
|
||||
|
||||
@ -177,13 +177,13 @@ void Foam::sampledSurfaces::verbose(const bool verbosity)
|
||||
}
|
||||
|
||||
|
||||
bool Foam::sampledSurfaces::execute(const bool postProcess)
|
||||
bool Foam::sampledSurfaces::execute()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::sampledSurfaces::write(const bool postProcess)
|
||||
bool Foam::sampledSurfaces::write()
|
||||
{
|
||||
if (size())
|
||||
{
|
||||
|
||||
@ -219,10 +219,10 @@ public:
|
||||
virtual bool read(const dictionary&);
|
||||
|
||||
//- Execute, currently does nothing
|
||||
virtual bool execute(const bool postProcess = false);
|
||||
virtual bool execute();
|
||||
|
||||
//- Sample and write
|
||||
virtual bool write(const bool postProcess = false);
|
||||
virtual bool write();
|
||||
|
||||
//- Update for changes of mesh - expires the surfaces
|
||||
virtual void updateMesh(const mapPolyMesh&);
|
||||
|
||||
Reference in New Issue
Block a user