mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: averageCondition - result now 'false' if no fields were processed
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
| Copyright (C) 2015 OpenFOAM Foundation
|
||||
@ -118,7 +118,7 @@ bool Foam::functionObjects::runTimeControls::averageCondition::apply()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool satisfied = iter_ > nIterStartUp_ ? true : false;
|
||||
bool satisfied = iter_ > nIterStartUp_;
|
||||
|
||||
++iter_;
|
||||
|
||||
@ -155,6 +155,11 @@ bool Foam::functionObjects::runTimeControls::averageCondition::apply()
|
||||
{
|
||||
Info<< " " << fieldNames_[fieldi] << nl;
|
||||
}
|
||||
|
||||
if (unprocessedFields.size() == fieldNames_.size())
|
||||
{
|
||||
satisfied = false;
|
||||
}
|
||||
}
|
||||
|
||||
Log << endl;
|
||||
|
||||
Reference in New Issue
Block a user