functionObjects: Separated 'execute' and 'write' functions to simplify support for post-processing

This commit is contained in:
Henry Weller
2016-05-13 09:05:29 +01:00
parent 6164c2f262
commit ded5f35dd6
19 changed files with 599 additions and 64 deletions

View File

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