From e0145b855554bfcf491c92da29bb918782ff4eb7 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 11 May 2020 16:17:32 +0200 Subject: [PATCH] BUG: Pair sort on construct did the opposite (fixes #1701) --- src/OpenFOAM/primitives/Pair/PairI.H | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OpenFOAM/primitives/Pair/PairI.H b/src/OpenFOAM/primitives/Pair/PairI.H index 2f489a0380..87e0d83f1c 100644 --- a/src/OpenFOAM/primitives/Pair/PairI.H +++ b/src/OpenFOAM/primitives/Pair/PairI.H @@ -68,7 +68,7 @@ inline Foam::Pair::Pair(const FixedList& lst) template inline Foam::Pair::Pair(const T& f, const T& s, const bool doSort) { - if (doSort && f < s) + if (doSort && s < f) { first() = s; second() = f; @@ -88,7 +88,6 @@ inline Foam::Pair::Pair(const FixedList& lst, const bool doSort) {} - template inline Foam::Pair::Pair(Istream& is) :