functionObjects: Added fields() function to provide list of required fields to postProcess
With this change each functionObject provides the list of fields required so that the postProcess utility can pre-load them before executing the list of functionObjects. This provides a more convenient interface than using the -field or -fields command-line options to postProcess which are now redundant.
This commit is contained in:
@ -121,6 +121,22 @@ bool ${typeName}FunctionObject::read(const dictionary& dict)
|
||||
}
|
||||
|
||||
|
||||
Foam::wordList ${typeName}FunctionObject::fields() const
|
||||
{
|
||||
if (${verbose:-false})
|
||||
{
|
||||
Info<<"fields ${typeName} sha1: ${SHA1sum}\n";
|
||||
}
|
||||
|
||||
wordList fields;
|
||||
//{{{ begin code
|
||||
${codeFields}
|
||||
//}}} end code
|
||||
|
||||
return fields;
|
||||
}
|
||||
|
||||
|
||||
bool ${typeName}FunctionObject::execute()
|
||||
{
|
||||
if (${verbose:-false})
|
||||
|
||||
Reference in New Issue
Block a user