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
03fb8f04
Commit
03fb8f04
authored
1 year ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: cyclicAMI: restart search with large bounding box. Fixes #3175
parent
45ec64e6
No related branches found
No related tags found
1 merge request
!695
OpenFOAM v2406
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/meshTools/AMIInterpolation/AMIInterpolation/advancingFrontAMI/advancingFrontAMI.C
+8
-2
8 additions, 2 deletions
...on/AMIInterpolation/advancingFrontAMI/advancingFrontAMI.C
with
8 additions
and
2 deletions
src/meshTools/AMIInterpolation/AMIInterpolation/advancingFrontAMI/advancingFrontAMI.C
+
8
−
2
View file @
03fb8f04
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2013-2016 OpenFOAM Foundation
Copyright (C) 2015-2022 OpenCFD Ltd.
Copyright (C) 2015-2022
,2024
OpenCFD Ltd.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
This file is part of OpenFOAM.
This file is part of OpenFOAM.
...
@@ -335,9 +335,15 @@ Foam::label Foam::advancingFrontAMI::findTargetFace
...
@@ -335,9 +335,15 @@ Foam::label Foam::advancingFrontAMI::findTargetFace
const
point
srcPt
=
const
point
srcPt
=
srcFacePti
==
-
1
?
bb
.
centre
()
:
srcPts
[
srcFace
[
srcFacePti
]];
srcFacePti
==
-
1
?
bb
.
centre
()
:
srcPts
[
srcFace
[
srcFacePti
]];
const
pointIndexHit
sample
=
pointIndexHit
sample
=
treePtr_
->
findNearest
(
srcPt
,
0
.
25
*
bb
.
magSqr
(),
fnOp
);
treePtr_
->
findNearest
(
srcPt
,
0
.
25
*
bb
.
magSqr
(),
fnOp
);
if
(
!
sample
.
hit
())
{
// Fall-back for extreme cases. Should only occur sparsely
sample
=
treePtr_
->
findNearest
(
srcPt
,
Foam
::
sqr
(
GREAT
),
fnOp
);
}
if
(
sample
.
hit
()
&&
isCandidate
(
srcFacei
,
sample
.
index
()))
if
(
sample
.
hit
()
&&
isCandidate
(
srcFacei
,
sample
.
index
()))
{
{
targetFacei
=
sample
.
index
();
targetFacei
=
sample
.
index
();
...
...
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