Time, functionObjectList: Refactored to simplify construction and switching-off functionObjects
This commit is contained in:
@ -215,25 +215,6 @@ Foam::label Foam::functionObjectList::findObjectID(const word& name) const
|
||||
}
|
||||
|
||||
|
||||
void Foam::functionObjectList::on()
|
||||
{
|
||||
execution_ = true;
|
||||
}
|
||||
|
||||
|
||||
void Foam::functionObjectList::off()
|
||||
{
|
||||
// For safety, also force a read() when execution is turned back on
|
||||
updated_ = execution_ = false;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::functionObjectList::status() const
|
||||
{
|
||||
return execution_;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::functionObjectList::start()
|
||||
{
|
||||
bool ok = read();
|
||||
|
||||
Reference in New Issue
Block a user