Skip to content
GitLab
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
8395d69c
Commit
8395d69c
authored
May 11, 2020
by
Mark OLESEN
Browse files
BUG: Pair sort on construct did the opposite (fixes
#1701
)
parent
d0846edf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/Pair/PairI.H
View file @
8395d69c
...
...
@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2017-20
19
OpenCFD Ltd.
Copyright (C) 2017-20
20
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -89,7 +89,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& list)
template
<
class
T
>
inline
Foam
::
Pair
<
T
>::
Pair
(
const
T
&
f
,
const
T
&
s
,
const
bool
doSort
)
{
if
(
doSort
&&
f
<
s
)
if
(
doSort
&&
s
<
f
)
{
first
()
=
s
;
second
()
=
f
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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