ENH: functionObjects: force writing when used through execFlowFunctionObjects

This commit is contained in:
mattijs
2010-10-26 16:23:36 +01:00
parent 3a2822ece1
commit 797c4a7457
7 changed files with 18 additions and 12 deletions

View File

@ -144,7 +144,7 @@ bool Foam::functionObjectList::start()
}
bool Foam::functionObjectList::execute()
bool Foam::functionObjectList::execute(const bool forceWrite)
{
bool ok = true;
@ -157,7 +157,7 @@ bool Foam::functionObjectList::execute()
forAll(*this, objectI)
{
ok = operator[](objectI).execute() && ok;
ok = operator[](objectI).execute(forceWrite) && ok;
}
}

View File

@ -153,8 +153,10 @@ public:
//- Called at the start of the time-loop
virtual bool start();
//- Called at each ++ or += of the time-loop
virtual bool execute();
//- Called at each ++ or += of the time-loop. forceWrite overrides
// the usual outputControl behaviour and forces writing always
// (used in postprocessing mode)
virtual bool execute(const bool forceWrite = false);
//- Called when Time::run() determines that the time-loop exits
virtual bool end();