functionObjects::partialWrite: Redundant and removed

the equivalent functionality is provided by the writeRegisteredObject
   functionObject in a MUCH simpler, easier and extensible manner.

functionObject: Removed the now redundant 'timeSet' function.
This commit is contained in:
Henry Weller
2016-05-18 12:23:29 +01:00
parent 38b99504c0
commit 982ebe6f59
19 changed files with 5 additions and 731 deletions

View File

@ -126,12 +126,6 @@ bool Foam::functionObject::end()
}
bool Foam::functionObject::timeSet()
{
return false;
}
bool Foam::functionObject::adjustTimeStep()
{
return false;

View File

@ -215,9 +215,6 @@ public:
// By default it simply calls execute().
virtual bool end();
//- Called when time was set at the end of the Time::operator++
virtual bool timeSet();
//- Called at the end of Time::adjustDeltaT() if adjustTime is true
virtual bool adjustTimeStep();

View File

@ -229,27 +229,6 @@ bool Foam::functionObjectList::end()
}
bool Foam::functionObjectList::timeSet()
{
bool ok = true;
if (execution_)
{
if (!updated_)
{
read();
}
forAll(*this, objectI)
{
ok = operator[](objectI).timeSet() && ok;
}
}
return ok;
}
bool Foam::functionObjectList::adjustTimeStep()
{
bool ok = true;

View File

@ -182,9 +182,6 @@ public:
//- Called when Time::run() determines that the time-loop exits
bool end();
//- Called when time was set at the end of the Time::operator++
bool timeSet();
//- Called at the end of Time::adjustDeltaT() if adjustTime is true
bool adjustTimeStep();

View File

@ -118,16 +118,6 @@ bool Foam::functionObjects::timeControl::end()
}
bool Foam::functionObjects::timeControl::timeSet()
{
if (active())
{
foPtr_->timeSet();
}
return true;
}
bool Foam::functionObjects::timeControl::adjustTimeStep()
{

View File

@ -161,9 +161,6 @@ public:
//- Called when Time::run() determines that the time-loop exits
virtual bool end();
//- Called when time was set at the end of the Time::operator++
virtual bool timeSet();
//- Called at the end of Time::adjustDeltaT() if adjustTime is true
virtual bool adjustTimeStep();