Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gregor.olenik
OGL
Commits
bcb867f6
Commit
bcb867f6
authored
Apr 15, 2021
by
Gregor Olenik
Browse files
Fix sorting bounds of sorting_idxs
parent
7f5b3f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
lduMatrix/GKOlduBase/GKOlduBase.H
View file @
bcb867f6
...
...
@@ -184,7 +184,7 @@ public:
// to avoid unnecessary index re-orderings
// when v contains elements of equal values
std
::
stable_sort
(
sorting_idxs_
->
data
(),
&
sorting_idxs_
->
data
()[
n
Cell
s
()],
&
sorting_idxs_
->
data
()[
n
Elem
s
()],
[
this
](
size_t
i1
,
size_t
i2
)
{
return
row_idxs_
[
i1
]
<
row_idxs_
[
i2
];
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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