Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
6c2745fb
Commit
6c2745fb
authored
Feb 17, 2015
by
BRAMAS Berenger
Browse files
apply patch 1 by remove [&] to []
parent
7c153db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/FGroupTree.hpp
View file @
6c2745fb
...
@@ -230,7 +230,7 @@ public:
...
@@ -230,7 +230,7 @@ public:
// Sort if needed
// Sort if needed
if
(
particlesAreSorted
==
false
){
if
(
particlesAreSorted
==
false
){
FQuickSort
<
ParticleSortingStruct
,
int
>::
QsOmp
(
particlesToSort
,
nbParticles
,
[
&
](
const
ParticleSortingStruct
&
v1
,
const
ParticleSortingStruct
&
v2
){
FQuickSort
<
ParticleSortingStruct
,
int
>::
QsOmp
(
particlesToSort
,
nbParticles
,
[](
const
ParticleSortingStruct
&
v1
,
const
ParticleSortingStruct
&
v2
){
return
v1
.
mindex
<=
v2
.
mindex
;
return
v1
.
mindex
<=
v2
.
mindex
;
});
});
}
}
...
@@ -407,7 +407,7 @@ public:
...
@@ -407,7 +407,7 @@ public:
// Sort if needed
// Sort if needed
if
(
particlesAreSorted
==
false
){
if
(
particlesAreSorted
==
false
){
FQuickSort
<
ParticleSortingStruct
,
int
>::
QsOmp
(
particlesToSort
,
nbParticles
,
[
&
](
const
ParticleSortingStruct
&
v1
,
const
ParticleSortingStruct
&
v2
){
FQuickSort
<
ParticleSortingStruct
,
int
>::
QsOmp
(
particlesToSort
,
nbParticles
,
[](
const
ParticleSortingStruct
&
v1
,
const
ParticleSortingStruct
&
v2
){
return
v1
.
mindex
<=
v2
.
mindex
;
return
v1
.
mindex
<=
v2
.
mindex
;
});
});
}
}
...
...
Src/Utils/FQuickSort.hpp
View file @
6c2745fb
...
@@ -141,7 +141,7 @@ public:
...
@@ -141,7 +141,7 @@ public:
}
}
static
void
QsSequential
(
SortType
array
[],
const
IndexType
size
){
static
void
QsSequential
(
SortType
array
[],
const
IndexType
size
){
QsSequential
(
array
,
size
,
[
&
](
const
SortType
&
v1
,
const
SortType
&
v2
){
QsSequential
(
array
,
size
,
[](
const
SortType
&
v1
,
const
SortType
&
v2
){
return
v1
<=
v2
;
return
v1
<=
v2
;
});
});
}
}
...
@@ -225,7 +225,7 @@ public:
...
@@ -225,7 +225,7 @@ public:
#endif
#endif
static
void
QsOmp
(
SortType
array
[],
const
IndexType
size
){
static
void
QsOmp
(
SortType
array
[],
const
IndexType
size
){
QsOmp
(
array
,
size
,
[
&
](
const
SortType
&
v1
,
const
SortType
&
v2
){
QsOmp
(
array
,
size
,
[](
const
SortType
&
v1
,
const
SortType
&
v2
){
return
v1
<=
v2
;
return
v1
<=
v2
;
});
});
}
}
...
...
Write
Preview
Supports
Markdown
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