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
adb83ad6
Commit
adb83ad6
authored
Oct 03, 2019
by
mattijs
Committed by
Andrew Heather
Oct 03, 2019
Browse files
ENH: patchSet: wrong logic to compress points. See #1453.
parent
386cafd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sampling/sampledSet/patchEdge/patchEdgeSet.C
View file @
adb83ad6
...
@@ -138,8 +138,9 @@ void Foam::patchEdgeSet::genSamples()
...
@@ -138,8 +138,9 @@ void Foam::patchEdgeSet::genSamples()
origin_
origin_
);
);
if
(
nMerged
==
0
)
if
(
nMerged
==
samplingPts
.
size
()
)
{
{
// Nothing merged
setSamples
setSamples
(
(
samplingPts
,
samplingPts
,
...
...
src/sampling/sampledSet/patchEdge/patchEdgeSet.H
View file @
adb83ad6
...
@@ -94,8 +94,12 @@ Usage
...
@@ -94,8 +94,12 @@ Usage
\endtable
\endtable
Note
Note
The ordering of the points is according to the distance to the specified
-
The ordering of the points is according to the distance to the specified
origin.
origin.
- Collocated points get merged if closer than SMALL (1e-15 in double prec).
(hardcoded). Collocated points can occur if patch points are exactly
on the sampling plane. Note that (in parallel) any point merging gets
done locally before sending to the master.
SourceFiles
SourceFiles
patchEdgeSet.C
patchEdgeSet.C
...
...
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