ENH: runTimeControl - deactivate for -postProcess operation

This commit is contained in:
Andrew Heather
2019-01-21 13:52:34 +00:00
parent 27e3b1f9e6
commit c604adc0d1

View File

@ -83,8 +83,18 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::read
const dictionary& dict
)
{
fvMeshFunctionObject::read(dict);
if (functionObject::postProcess)
{
Info<< "Deactivated " << name()
<< " function object for post-processing"
<< endl;
return false;
}
if (fvMeshFunctionObject::read(dict))
{
const dictionary& conditionsDict = dict.subDict("conditions");
const wordList conditionNames(conditionsDict.toc());
conditions_.setSize(conditionNames.size());
@ -155,6 +165,9 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::read
}
return true;
}
return false;
}