Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
dc6d2963
Commit
dc6d2963
authored
Jun 22, 2011
by
mattijs
Browse files
BUG: matchPoints: use 2* match tolerance as tolerance in magSqr comparison
parent
a38774d7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/meshTools/matchPoints.C
View file @
dc6d2963
...
...
@@ -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
++
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment