diff --git a/src/sampling/sampledSurface/sampledPlane/sampledPlane.C b/src/sampling/sampledSurface/sampledPlane/sampledPlane.C index 33ace2cd2c85f7bcbf6962363a852f3786639173..85ef3a9d4f7e828507c5ffdff7212a782492f255 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_); }