Utilities patchAverage and patchIntegrate replaced by postProcess
e.g.
postProcess -func 'patchAverage(name=inlet,p)'
postProcess -func 'patchIntegrate(name=inlet,p)'
This commit is contained in:
@ -36,12 +36,15 @@ namespace Foam
|
||||
defineRunTimeSelectionTable(functionObject, dictionary);
|
||||
}
|
||||
|
||||
bool Foam::functionObject::postProcess(false);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::functionObject::functionObject(const word& name)
|
||||
:
|
||||
name_(name)
|
||||
name_(name),
|
||||
log(postProcess)
|
||||
{}
|
||||
|
||||
|
||||
@ -120,6 +123,17 @@ const Foam::word& Foam::functionObject::name() const
|
||||
}
|
||||
|
||||
|
||||
bool Foam::functionObject::read(const dictionary& dict)
|
||||
{
|
||||
if (!postProcess)
|
||||
{
|
||||
log = dict.lookupOrDefault<Switch>("log", true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Foam::functionObject::end()
|
||||
{
|
||||
return execute() && write();
|
||||
|
||||
Reference in New Issue
Block a user