From 4b7c74f8ebacb6773fc0ee1e0596e23cb164a56b Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 4 May 2017 17:50:07 +0100 Subject: [PATCH] BUG: sampledPlane: fix parallel running on subset. Fixes #463. --- src/sampling/sampledSurface/sampledPlane/sampledPlane.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sampling/sampledSurface/sampledPlane/sampledPlane.C b/src/sampling/sampledSurface/sampledPlane/sampledPlane.C index 33ace2cd2c8..85ef3a9d4f7 100644 --- a/src/sampling/sampledSurface/sampledPlane/sampledPlane.C +++ b/src/sampling/sampledSurface/sampledPlane/sampledPlane.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2017 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -139,7 +139,7 @@ bool Foam::sampledPlane::update() labelList selectedCells = mesh().cellZones().findMatching(zoneKey_).used(); - if (selectedCells.empty()) + if (returnReduce(selectedCells.empty(), andOp<bool>())) { reCut(mesh(), triangulate_); } -- GitLab