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 @@
========= |
\\ / 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;
}
......
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