From 6f764c8d0243e41c4aba4bfb5d107f06e0160f55 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 22 Sep 2022 09:24:01 +0100 Subject: [PATCH] ENH: checkMesh: check patches across processors --- .../manipulation/checkMesh/checkTopology.C | 162 ++++++++++++++---- .../manipulation/checkMesh/checkTopology.H | 5 +- 2 files changed, 128 insertions(+), 39 deletions(-) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C index d1b8240b5e..4bdb0cf1b1 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTopology.C @@ -40,6 +40,7 @@ License #include "vtkSurfaceWriter.H" #include "checkTools.H" #include "treeBoundBox.H" +#include "syncTools.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -48,25 +49,113 @@ void Foam::checkPatch ( const bool allGeometry, const word& name, + const polyMesh& mesh, const PatchType& pp, + const labelList& meshFaces, + const labelList& meshEdges, pointSet& points ) { + typedef typename PatchType::surfaceTopo TopoType; + + const label globalSize = returnReduce(pp.size(), sumOp