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:
Henry Weller
2016-06-13 08:36:03 +01:00
parent 18b632e71d
commit ae1a6dd12d
102 changed files with 190 additions and 254 deletions

View File

@ -237,7 +237,7 @@ Foam::patchProbes::~patchProbes()
{}
bool Foam::patchProbes::write(const bool postProcess)
bool Foam::patchProbes::write()
{
if (this->size() && prepare())
{

View File

@ -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&);

View File

@ -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())
{

View File

@ -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&);

View File

@ -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())
{

View File

@ -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();

View File

@ -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())
{

View File

@ -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&);