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
262feb6b
Commit
262feb6b
authored
Dec 12, 2012
by
laurence
Browse files
ENH: cvMesh: Code cleanup
parent
b56d84db
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/DelaunayMesh/DistributedDelaunayMesh.C
View file @
262feb6b
...
...
@@ -791,19 +791,21 @@ Foam::DistributedDelaunayMesh<Triangulation>::rangeInsertReferredWithInfo
label
count
=
0
;
for
(
PointIterator
it
=
begin
;
it
!=
end
;
++
it
)
{
const
pointFromPoint
samplePoint
=
topoint
(
it
->
point
());
const
Foam
::
point
samplePoint
(
topoint
(
it
->
point
()));
scalar
distFromBbSqr
=
0
;
if
(
!
bb
.
contains
(
samplePoint
))
{
const
Foam
::
point
nearestPoint
=
bb
.
nearest
(
samplePoint
);
const
scalar
distFromBbSqr
=
magSqr
(
nearestPoint
-
samplePoint
);
pointsBbDistSqr
.
append
(
std
::
make_pair
(
distFromBbSqr
,
count
++
)
);
distFromBbSqr
=
magSqr
(
nearestPoint
-
samplePoint
);
}
pointsBbDistSqr
.
append
(
std
::
make_pair
(
distFromBbSqr
,
count
++
)
);
}
std
::
random_shuffle
(
pointsBbDistSqr
.
begin
(),
pointsBbDistSqr
.
end
());
...
...
applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.C
View file @
262feb6b
...
...
@@ -572,7 +572,9 @@ void Foam::cellShapeControl::initialMeshPopulation
);
}
Info
<<
" Inserted "
<<
(
pts
.
size
()
-
nRejected
)
<<
"/"
<<
pts
.
size
()
Info
<<
" Inserted "
<<
returnReduce
(
pts
.
size
()
-
nRejected
,
sumOp
<
label
>
())
<<
"/"
<<
pts
.
size
()
<<
endl
;
}
}
...
...
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