BUG: localPointRegion: faces are duplicate only if sizes equal

This commit is contained in:
mattijs
2015-12-08 10:36:32 +00:00
parent 591c5b602c
commit 8997003857

View File

@ -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)