Skip to content
Snippets Groups Projects
Commit 4b7c74f8 authored by mattijs's avatar mattijs
Browse files

BUG: sampledPlane: fix parallel running on subset. Fixes #463.

parent c9df5f92
Branches
Tags
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -139,7 +139,7 @@ bool Foam::sampledPlane::update() ...@@ -139,7 +139,7 @@ bool Foam::sampledPlane::update()
labelList selectedCells = mesh().cellZones().findMatching(zoneKey_).used(); labelList selectedCells = mesh().cellZones().findMatching(zoneKey_).used();
if (selectedCells.empty()) if (returnReduce(selectedCells.empty(), andOp<bool>()))
{ {
reCut(mesh(), triangulate_); reCut(mesh(), triangulate_);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment