Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
aa7cce91
Commit
aa7cce91
authored
Nov 01, 2018
by
Mark Olesen
Browse files
STYLE: eliminate unnecessary DIY version of cellPoints(label)
parent
3366a16b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sampling/surface/cutting/cuttingSurfaceCuts.C
View file @
aa7cce91
...
...
@@ -91,30 +91,11 @@ void Foam::cuttingSurface::calcCellCuts
boundBox
cellBb
;
labelHashSet
cpts
;
for
(
const
label
celli
:
cellCuts
)
{
cellBb
.
clear
();
if
(
fvm
.
hasCellPoints
())
{
cellBb
.
add
(
pts
,
fvm
.
cellPoints
(
celli
));
}
else
{
// DIY version of cellPoints
cpts
.
clear
();
const
cell
&
cFaces
=
cells
[
celli
];
for
(
const
label
facei
:
cFaces
)
{
cpts
.
insert
(
faces
[
facei
]);
}
cellBb
.
add
(
pts
,
cpts
);
}
cellBb
.
add
(
pts
,
fvm
.
cellPoints
(
celli
));
if
(
!
cellBb
.
contains
(
nearest
[
celli
].
hitPoint
()))
{
...
...
src/sampling/surface/distanceSurface/distanceSurface.C
View file @
aa7cce91
...
...
@@ -202,8 +202,6 @@ void Foam::distanceSurface::createGeometry()
:
Foam
::
sign
(
diff
&
norms
[
i
])
*
Foam
::
mag
(
diff
)
);
// Since cellPoints() is used in isoSurfaceCell too,
// no additional overhead caused here
if
(
filterCells
)
{
cellBb
.
clear
();
...
...
Write
Preview
Markdown
is supported
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