Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
eb33b795
Commit
eb33b795
authored
4 years ago
by
Sergio Ferraris
Committed by
Andrew Heather
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Correction to tgtPointFace srcPointFace member functions
parent
5bc84655
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!406
ENH: MPPIC dynamic mesh
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
+9
-7
9 additions, 7 deletions
...ools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
with
9 additions
and
7 deletions
src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C
+
9
−
7
View file @
eb33b795
...
@@ -1073,7 +1073,7 @@ const
...
@@ -1073,7 +1073,7 @@ const
if
(
ray
.
hit
())
if
(
ray
.
hit
())
{
{
//
tgtPoint = ray.rawPoint();
tgtPoint
=
ray
.
rawPoint
();
return
srcFacei
;
return
srcFacei
;
}
}
else
if
(
ray
.
distance
()
<
nearest
.
distance
())
else
if
(
ray
.
distance
()
<
nearest
.
distance
())
...
@@ -1085,7 +1085,7 @@ const
...
@@ -1085,7 +1085,7 @@ const
if
(
nearest
.
hit
()
||
nearest
.
eligibleMiss
())
if
(
nearest
.
hit
()
||
nearest
.
eligibleMiss
())
{
{
//
tgtPoint = nearest.rawPoint();
tgtPoint
=
nearest
.
rawPoint
();
return
nearestFacei
;
return
nearestFacei
;
}
}
...
@@ -1118,21 +1118,23 @@ const
...
@@ -1118,21 +1118,23 @@ const
pointHit
ray
=
f
.
ray
(
srcPoint
,
n
,
tgtPoints
);
pointHit
ray
=
f
.
ray
(
srcPoint
,
n
,
tgtPoints
);
if
(
ray
.
hit
()
||
ray
.
eligibleMiss
()
)
if
(
ray
.
hit
())
{
{
//
srcPoint = ray.rawPoint();
srcPoint
=
ray
.
rawPoint
();
return
tgtFacei
;
return
tgtFacei
;
}
}
else
if
(
ray
.
distance
()
<
nearest
.
distance
())
const
pointHit
near
=
f
.
nearestPoint
(
srcPoint
,
tgtPoints
);
if
(
near
.
distance
()
<
nearest
.
distance
())
{
{
nearest
=
ray
;
nearest
=
near
;
nearestFacei
=
tgtFacei
;
nearestFacei
=
tgtFacei
;
}
}
}
}
if
(
nearest
.
hit
()
||
nearest
.
eligibleMiss
())
if
(
nearest
.
hit
()
||
nearest
.
eligibleMiss
())
{
{
//
srcPoint = nearest.rawPoint();
srcPoint
=
nearest
.
rawPoint
();
return
nearestFacei
;
return
nearestFacei
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment