Commit f89de2b6 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: incorrect returned size from surfaceWriter

parent cd2787d4
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019-2021 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -416,11 +416,11 @@ bool Foam::surfaceWriter::empty() const ...@@ -416,11 +416,11 @@ bool Foam::surfaceWriter::empty() const
Foam::label Foam::surfaceWriter::size() const Foam::label Foam::surfaceWriter::size() const
{ {
const bool value = const label value =
( (
useComponents_ useComponents_
? surfComp_.faces().empty() ? surfComp_.faces().size()
: surf_.get().faces().empty() : surf_.get().faces().size()
); );
return (parallel_ ? returnReduce(value, sumOp<label>()) : value); return (parallel_ ? returnReduce(value, sumOp<label>()) : value);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment