From d7dacc67d0ea6cc0a70c6a2b71ce907bf359d347 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Thu, 29 Oct 2015 10:54:47 +0000 Subject: [PATCH] =?UTF-8?q?PrimitivePatchCheck::checkTopology:=20Correct?= =?UTF-8?q?=20non-manifold=20check=20logic=20Patch=20provided=20by=20Aron?= =?UTF-8?q?=20J=C3=B3hannesson=20Resolves=20bug-report=20http://www.openfo?= =?UTF-8?q?am.org/mantisbt/view.php=3Fid=3D1877?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PrimitivePatch/PrimitivePatchCheck.C | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C index a454823a566..fcd980c7580 100644 --- a/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C +++ b/src/OpenFOAM/meshes/primitiveMesh/PrimitivePatch/PrimitivePatchCheck.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,7 +30,6 @@ Description #include "Map.H" #include "ListOps.H" - // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // template @@ -192,7 +191,7 @@ checkTopology const labelListList& edgeFcs = edgeFaces(); - surfaceTopo surfaceType = MANIFOLD; + bool illegalTopo = false; forAll(edgeFcs, edgeI) { @@ -200,7 +199,7 @@ checkTopology if (nNbrs < 1 || nNbrs > 2) { - surfaceType = ILLEGAL; + illegalTopo = true; if (report) { @@ -217,10 +216,6 @@ checkTopology setPtr->insert(meshPoints()[e.end()]); } } - else if (nNbrs == 1) - { - surfaceType = OPEN; - } } if (debug) @@ -231,7 +226,7 @@ checkTopology << endl; } - return surfaceType == ILLEGAL; + return illegalTopo; } -- GitLab