Skip to content
GitLab
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
04ad9a85
Commit
04ad9a85
authored
Nov 12, 2013
by
mattijs
Browse files
ENH: meshToMeshMethod: small optimisation in treeBoundBox calc
parent
b8fa6755
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/meshTools/tetOverlapVolume/tetOverlapVolume.C
View file @
04ad9a85
...
...
@@ -396,10 +396,7 @@ Foam::labelList Foam::tetOverlapVolume::overlappingCells
{
const
indexedOctree
<
treeDataCell
>&
treeA
=
fromMesh
.
cellTree
();
treeBoundBox
bbB
(
pointField
(
toMesh
.
points
(),
toMesh
.
cellPoints
()[
iTo
])
);
treeBoundBox
bbB
(
toMesh
.
points
(),
toMesh
.
cellPoints
()[
iTo
]);
return
treeA
.
findBox
(
bbB
);
}
...
...
src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/meshToMeshMethod/meshToMeshMethod.C
View file @
04ad9a85
...
...
@@ -84,14 +84,7 @@ bool Foam::meshToMeshMethod::intersect
tetOverlapVolume
overlapEngine
;
treeBoundBox
bbTgtCell
(
pointField
(
tgt_
.
points
(),
tgt_
.
cellPoints
()[
tgtCellI
]
)
);
treeBoundBox
bbTgtCell
(
tgt_
.
points
(),
tgt_
.
cellPoints
()[
tgtCellI
]);
return
overlapEngine
.
cellCellOverlapMinDecomp
(
...
...
@@ -113,14 +106,7 @@ Foam::scalar Foam::meshToMeshMethod::interVol
{
tetOverlapVolume
overlapEngine
;
treeBoundBox
bbTgtCell
(
pointField
(
tgt_
.
points
(),
tgt_
.
cellPoints
()[
tgtCellI
]
)
);
treeBoundBox
bbTgtCell
(
tgt_
.
points
(),
tgt_
.
cellPoints
()[
tgtCellI
]);
scalar
vol
=
overlapEngine
.
cellCellOverlapVolumeMinDecomp
(
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment