Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: matchPoints: use 2* match tolerance as tolerance in magSqr compa…

…rison
  • Loading branch information...
commit c06a0fbc73ca2d23bde368010d1eba5bce744826 1 parent 6f09a1d
mattijs authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/OpenFOAM/meshes/meshTools/matchPoints.C
View
8 src/OpenFOAM/meshes/meshTools/matchPoints.C
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
- \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
+ \\ / A nd | Copyright (C) 1991-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@@ -66,7 +66,7 @@ bool Foam::matchPoints
scalar matchDist = matchDistances[face0I];
- label startI = findLower(pts1MagSqr, 0.99999*dist0 - matchDist);
+ label startI = findLower(pts1MagSqr, 0.99999*dist0 - 2*matchDist);
if (startI == -1)
{
@@ -83,7 +83,7 @@ bool Foam::matchPoints
label j = startI;
(
(j < pts1MagSqr.size())
- && (pts1MagSqr[j] < 1.00001*dist0 + matchDist)
+ && (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
);
j++
)
@@ -117,7 +117,7 @@ bool Foam::matchPoints
label j = startI;
(
(j < pts1MagSqr.size())
- && (pts1MagSqr[j] < 1.00001*dist0 + matchDist)
+ && (pts1MagSqr[j] < 1.00001*dist0 + 2*matchDist)
);
j++
)
Please sign in to comment.
Something went wrong with that request. Please try again.