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

BUG: localPointRegion: faces are duplicate only if sizes equal

parent e07db57f
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / 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.
-------------------------------------------------------------------------------
License
......@@ -70,6 +70,11 @@ bool Foam::localPointRegion::isDuplicate
const bool forward
)
{
if (f0.size() != f1.size())
{
return false;
}
label fp1 = findIndex(f1, f0[0]);
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