From 56c0d7ba50957d21606f6bba62a55062748bdd8e Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 11 Jan 2013 15:56:20 +0000 Subject: [PATCH] ENH: pointEdgePoint: check for equal --- src/meshTools/algorithms/PointEdgeWave/pointEdgePointI.H | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meshTools/algorithms/PointEdgeWave/pointEdgePointI.H b/src/meshTools/algorithms/PointEdgeWave/pointEdgePointI.H index f9fe6ca9e3..b466b26828 100644 --- a/src/meshTools/algorithms/PointEdgeWave/pointEdgePointI.H +++ b/src/meshTools/algorithms/PointEdgeWave/pointEdgePointI.H @@ -310,14 +310,14 @@ inline bool Foam::pointEdgePoint::equal // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // inline bool Foam::pointEdgePoint::operator==(const Foam::pointEdgePoint& rhs) - const +const { - return origin() == rhs.origin(); + return (origin() == rhs.origin()) && (distSqr() == rhs.distSqr()); } inline bool Foam::pointEdgePoint::operator!=(const Foam::pointEdgePoint& rhs) - const +const { return !(*this == rhs); }