Commit adb83ad6 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

ENH: patchSet: wrong logic to compress points. See #1453.

parent 386cafd8
...@@ -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,
......
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment