mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: matchPoints: use 2* match tolerance as tolerance in magSqr comparison
This commit is contained in:
@ -66,7 +66,7 @@ bool Foam::matchPoints
|
|||||||
|
|
||||||
scalar matchDist = matchDistances[face0I];
|
scalar matchDist = matchDistances[face0I];
|
||||||
|
|
||||||
label startI = findLower(pts1MagSqr, 0.99999*dist0 - matchDist);
|
label startI = findLower(pts1MagSqr, 0.99999*dist0 - 2*matchDist);
|
||||||
|
|
||||||
if (startI == -1)
|
if (startI == -1)
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ bool Foam::matchPoints
|
|||||||
label j = startI;
|
label j = startI;
|
||||||
(
|
(
|
||||||
(j < pts1MagSqr.size())
|
(j < pts1MagSqr.size())
|
||||||
&& (pts1MagSqr[j] < 1.00001*dist0 + matchDist)
|
&& (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
|
||||||
);
|
);
|
||||||
j++
|
j++
|
||||||
)
|
)
|
||||||
@ -117,7 +117,7 @@ bool Foam::matchPoints
|
|||||||
label j = startI;
|
label j = startI;
|
||||||
(
|
(
|
||||||
(j < pts1MagSqr.size())
|
(j < pts1MagSqr.size())
|
||||||
&& (pts1MagSqr[j] < 1.00001*dist0 + matchDist)
|
&& (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
|
||||||
);
|
);
|
||||||
j++
|
j++
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user