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
722ce91a
Commit
722ce91a
authored
Jan 23, 2019
by
Mark OLESEN
Browse files
STYLE: combine if (log) ... Log statements
parent
c5fd858c
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/stabilityBlendingFactor/stabilityBlendingFactor.C
View file @
722ce91a
...
...
@@ -123,11 +123,8 @@ bool Foam::functionObjects::stabilityBlendingFactor::init(bool first)
{
scalar
meanRes
=
gAverage
(
mag
(
*
residualPtr
))
+
VSMALL
;
if
(
log
)
{
Log
<<
nl
<<
name
()
<<
" : "
<<
nl
;
Log
<<
" Average(mag(residuals)) : "
<<
meanRes
<<
endl
;
}
Log
<<
nl
<<
name
()
<<
" : "
<<
nl
<<
" Average(mag(residuals)) : "
<<
meanRes
<<
endl
;
oldError_
=
error_
;
oldErrorIntegral_
=
errorIntegral_
;
...
...
src/functionObjects/lagrangian/dataCloud/dataCloud.C
View file @
722ce91a
...
...
@@ -89,7 +89,7 @@ bool Foam::functionObjects::dataCloud::writeCloud
// Total number of parcels on all processes
const
label
nTotParcels
=
returnReduce
(
nParcels
,
sumOp
<
label
>
());
if
(
applyFilter_
&&
log
)
if
(
applyFilter_
)
{
// Report filtered/unfiltered count
Log
<<
"After filtering using "
<<
nTotParcels
<<
'/'
...
...
src/functionObjects/lagrangian/dsmcFields/dsmcFields.C
View file @
722ce91a
...
...
@@ -203,28 +203,26 @@ bool Foam::functionObjects::dsmcFields::write()
}
}
if
(
log
)
{
Log
<<
" mag(UMean) max/min : "
<<
max
(
mag
(
UMean
)).
value
()
<<
" "
<<
min
(
mag
(
UMean
)).
value
()
<<
endl
;
Log
<<
"
translationalT
max/min : "
<<
max
(
translationalT
).
value
()
<<
" "
<<
min
(
translationalT
).
value
()
<<
endl
;
Log
<<
"
mag(UMean)
max/min : "
<<
max
(
mag
(
UMean
)
).
value
()
<<
" "
<<
min
(
mag
(
UMean
)
).
value
()
<<
nl
Log
<<
"
inter
nalT max/min : "
<<
max
(
inter
nalT
).
value
()
<<
" "
<<
min
(
inter
nalT
).
value
()
<<
endl
;
<<
"
translatio
nalT max/min : "
<<
max
(
translatio
nalT
).
value
()
<<
" "
<<
min
(
translatio
nalT
).
value
()
<<
nl
Log
<<
"
overal
lT max/min : "
<<
max
(
overal
lT
).
value
()
<<
" "
<<
min
(
overal
lT
).
value
()
<<
endl
;
<<
"
interna
lT max/min : "
<<
max
(
interna
lT
).
value
()
<<
" "
<<
min
(
interna
lT
).
value
()
<<
nl
Log
<<
" p max/min : "
<<
max
(
p
).
value
()
<<
" "
<<
min
(
p
).
value
()
<<
endl
;
}
<<
" overallT max/min : "
<<
max
(
overallT
).
value
()
<<
" "
<<
min
(
overallT
).
value
()
<<
nl
<<
" p max/min : "
<<
max
(
p
).
value
()
<<
" "
<<
min
(
p
).
value
()
<<
endl
;
UMean
.
write
();
...
...
src/functionObjects/lagrangian/vtkCloud/vtkCloud.C
View file @
722ce91a
...
...
@@ -142,7 +142,7 @@ bool Foam::functionObjects::vtkCloud::writeCloud
// Total number of parcels on all processes
const
label
nTotParcels
=
returnReduce
(
nParcels
,
sumOp
<
label
>
());
if
(
applyFilter_
&&
log
)
if
(
applyFilter_
)
{
// Report filtered/unfiltered count
Log
<<
"After filtering using "
<<
nTotParcels
<<
'/'
...
...
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