Skip to content
Snippets Groups Projects
Commit 89970038 authored by mattijs's avatar mattijs
Browse files

BUG: localPointRegion: faces are duplicate only if sizes equal

parent 591c5b60
Branches
Tags
No related merge requests found
...@@ -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-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -70,6 +70,11 @@ bool Foam::localPointRegion::isDuplicate ...@@ -70,6 +70,11 @@ bool Foam::localPointRegion::isDuplicate
const bool forward const bool forward
) )
{ {
if (f0.size() != f1.size())
{
return false;
}
label fp1 = findIndex(f1, f0[0]); label fp1 = findIndex(f1, f0[0]);
if (fp1 == -1) if (fp1 == -1)
......
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