functionObjects::writeObjects: Changed the default executeAtStart to 'no'

This avoids attempting to write temporary fields before they have been created.
The executeAtStart can be set to 'yes' in the writeObjects dictionary or the

functions
{
    #includeFunc writeObjects(executeAtStart = yes, <field1>, <field2>...)
}
This commit is contained in:
Henry Weller
2020-10-22 12:36:47 +01:00
parent 89b9e2d24c
commit b7b000be3b
4 changed files with 18 additions and 10 deletions

View File

@ -130,7 +130,8 @@ bool Foam::functionObject::read(const dictionary& dict)
if (!postProcess)
{
executeAtStart_ = dict.lookupOrDefault<Switch>("executeAtStart", true);
executeAtStart_ =
dict.lookupOrDefault<Switch>("executeAtStart", executeAtStart_);
}
return true;