Commit d7dacc67 authored by Henry Weller's avatar Henry Weller
Browse files

PrimitivePatchCheck::checkTopology: Correct non-manifold check logic

Patch provided by Aron Jóhannesson
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1877
parent 87b26d09
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -30,7 +30,6 @@ Description ...@@ -30,7 +30,6 @@ Description
#include "Map.H" #include "Map.H"
#include "ListOps.H" #include "ListOps.H"
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
template template
...@@ -192,7 +191,7 @@ checkTopology ...@@ -192,7 +191,7 @@ checkTopology
const labelListList& edgeFcs = edgeFaces(); const labelListList& edgeFcs = edgeFaces();
surfaceTopo surfaceType = MANIFOLD; bool illegalTopo = false;
forAll(edgeFcs, edgeI) forAll(edgeFcs, edgeI)
{ {
...@@ -200,7 +199,7 @@ checkTopology ...@@ -200,7 +199,7 @@ checkTopology
if (nNbrs < 1 || nNbrs > 2) if (nNbrs < 1 || nNbrs > 2)
{ {
surfaceType = ILLEGAL; illegalTopo = true;
if (report) if (report)
{ {
...@@ -217,10 +216,6 @@ checkTopology ...@@ -217,10 +216,6 @@ checkTopology
setPtr->insert(meshPoints()[e.end()]); setPtr->insert(meshPoints()[e.end()]);
} }
} }
else if (nNbrs == 1)
{
surfaceType = OPEN;
}
} }
if (debug) if (debug)
...@@ -231,7 +226,7 @@ checkTopology ...@@ -231,7 +226,7 @@ checkTopology
<< endl; << endl;
} }
return surfaceType == ILLEGAL; return illegalTopo;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment