Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
e0145b85
Commit
e0145b85
authored
5 years ago
by
Mark OLESEN
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Pair sort on construct did the opposite (fixes
#1701
)
parent
9abf648a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/primitives/Pair/PairI.H
+1
-2
1 addition, 2 deletions
src/OpenFOAM/primitives/Pair/PairI.H
with
1 addition
and
2 deletions
src/OpenFOAM/primitives/Pair/PairI.H
+
1
−
2
View file @
e0145b85
...
@@ -68,7 +68,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst)
...
@@ -68,7 +68,7 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst)
template
<
class
T
>
template
<
class
T
>
inline
Foam
::
Pair
<
T
>::
Pair
(
const
T
&
f
,
const
T
&
s
,
const
bool
doSort
)
inline
Foam
::
Pair
<
T
>::
Pair
(
const
T
&
f
,
const
T
&
s
,
const
bool
doSort
)
{
{
if
(
doSort
&&
f
<
s
)
if
(
doSort
&&
s
<
f
)
{
{
first
()
=
s
;
first
()
=
s
;
second
()
=
f
;
second
()
=
f
;
...
@@ -88,7 +88,6 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst, const bool doSort)
...
@@ -88,7 +88,6 @@ inline Foam::Pair<T>::Pair(const FixedList<T, 2>& lst, const bool doSort)
{}
{}
template
<
class
T
>
template
<
class
T
>
inline
Foam
::
Pair
<
T
>::
Pair
(
Istream
&
is
)
inline
Foam
::
Pair
<
T
>::
Pair
(
Istream
&
is
)
:
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment