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
f89de2b6
Commit
f89de2b6
authored
Jan 13, 2021
by
Mark OLESEN
Browse files
BUG: incorrect returned size from surfaceWriter
parent
cd2787d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/surfMesh/writers/surfaceWriter.C
View file @
f89de2b6
...
...
@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019
-2021
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -416,11 +416,11 @@ bool Foam::surfaceWriter::empty() const
Foam
::
label
Foam
::
surfaceWriter
::
size
()
const
{
const
boo
l
value
=
const
labe
l
value
=
(
useComponents_
?
surfComp_
.
faces
().
empty
()
:
surf_
.
get
().
faces
().
empty
()
?
surfComp_
.
faces
().
size
()
:
surf_
.
get
().
faces
().
size
()
);
return
(
parallel_
?
returnReduce
(
value
,
sumOp
<
label
>
())
:
value
);
...
...
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