From 081e4ff810a301913935dfbeb5f3cf21aa98360b Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 6 Apr 2011 10:24:13 +0100 Subject: [PATCH 01/20] ENH: cellClassification: work in parallel --- .../cellClassification/cellClassification.C | 19 +++++++++++-------- .../cellSources/surfaceToCell/surfaceToCell.C | 5 +++-- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/meshTools/cellClassification/cellClassification.C b/src/meshTools/cellClassification/cellClassification.C index f93cc75809..9fedce9ed5 100644 --- a/src/meshTools/cellClassification/cellClassification.C +++ b/src/meshTools/cellClassification/cellClassification.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -281,7 +281,7 @@ void Foam::cellClassification::markCells // Use linear search for points. label cellI = queryMesh.findCell(outsidePts[outsidePtI], -1, false); - if (cellI == -1) + if (returnReduce(cellI, maxOp