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
ec3de712
Commit
ec3de712
authored
Feb 12, 2020
by
Mark OLESEN
Browse files
STYLE: adjust logic names for point-values in foamToVTK
parent
f90de021
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/postProcessing/dataConversion/foamToVTK/convertVolumeFields.H
View file @
ec3de712
...
...
@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018
-2020
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -50,9 +50,9 @@ Description
const
label
nPointFields
=
(
n
oPointValues
?
0
:
objects
.
count
(
stringListOps
::
foundOp
<
word
>
(
fieldTypes
::
point
))
d
oPointValues
?
objects
.
count
(
stringListOps
::
foundOp
<
word
>
(
fieldTypes
::
point
))
:
0
);
...
...
@@ -82,7 +82,7 @@ Description
if
(
doInternal
)
{
if
(
!
n
oPointValues
)
if
(
d
oPointValues
)
{
pInterp
.
reset
(
new
volPointInterpolation
(
mesh
));
}
...
...
@@ -180,7 +180,7 @@ Description
else
if
(
patchIds
.
size
())
{
patchWriters
.
resize
(
patchIds
.
size
());
if
(
!
n
oPointValues
)
if
(
d
oPointValues
)
{
patchInterps
.
resize
(
patchIds
.
size
());
}
...
...
@@ -320,7 +320,7 @@ Description
// PointData
// - only construct pointMesh on request since it constructs
// edge addressing
if
(
!
n
oPointValues
)
if
(
d
oPointValues
)
{
// Begin PointData
if
(
internalWriter
.
valid
())
...
...
applications/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C
View file @
ec3de712
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-20
19
OpenCFD Ltd.
Copyright (C) 2016-20
20
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -510,8 +510,8 @@ int main(int argc, char *argv[])
<<
nl
<<
endl
;
}
const
bool
n
oPointValues
=
args
.
found
(
"no-point-data"
);
if
(
n
oPointValues
)
const
bool
d
oPointValues
=
!
args
.
found
(
"no-point-data"
);
if
(
!
d
oPointValues
)
{
Info
<<
"Point fields and interpolated point data"
<<
" disabled with the '-no-point-data' option"
...
...
@@ -523,7 +523,7 @@ int main(int argc, char *argv[])
{
Info
<<
"Write point ids requested"
;
if
(
n
oPointValues
)
if
(
!
d
oPointValues
)
{
Info
<<
", but ignored due to the '-no-point-data' option"
;
}
...
...
@@ -801,9 +801,9 @@ int main(int argc, char *argv[])
// Prune restart fields
objects
.
prune_0
();
if
(
n
oPointValues
)
if
(
!
d
oPointValues
)
{
// Prune point fields
unless specifically request
ed
// Prune point fields
if disabl
ed
objects
.
filterClasses
(
[](
const
word
&
clsName
)
...
...
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