Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5215aab7
Commit
5215aab7
authored
Jun 20, 2019
by
Andrew Heather
Browse files
ENH: averageCondition - result now 'false' if no fields were processed
parent
8e3df100
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/utilities/runTimeControl/runTimeCondition/averageCondition/averageCondition.C
View file @
5215aab7
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-201
6
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2015-201
9
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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment