Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: pointHitSort: define operator<

  • Loading branch information...
commit 89fc6e632d0c2ad967e836f4d315aad1f79ae1ad 1 parent 8963299
mattijs authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/meshTools/octree/pointHitSort.H
View
8 src/meshTools/octree/pointHitSort.H
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
- \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
+ \\ / A nd | Copyright (C) 1991-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@@ -65,7 +65,7 @@ public:
//- Construct null
pointHitSort()
:
- inter_(false, vector::zero, GREAT),
+ inter_(false, vector::zero, GREAT, false),
index_(-1)
{}
@@ -96,9 +96,9 @@ public:
return inter_.distance() == rhs.inter().distance();
}
- bool operator>(const pointHitSort& rhs) const
+ bool operator<(const pointHitSort& rhs) const
{
- return inter_.distance() > rhs.inter().distance();
+ return inter_.distance() < rhs.inter().distance();
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.