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
SWIFT
SWIFTsim
Commits
2d9a2f22
Commit
2d9a2f22
authored
Nov 11, 2015
by
Pedro Gonnet
Browse files
logic is hard. this is what i get for not testing commits before pushing them, my bad :(
parent
a9cb4586
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
2d9a2f22
...
...
@@ -596,7 +596,7 @@ void space_do_parts_sort() {
if
(
jj
>
i
&&
pivot
>
min
)
{
qid
=
atomic_inc
(
&
space_sort_struct
.
last
)
%
space_sort_struct
.
stack_size
;
while
(
!
space_sort_struct
.
stack
[
qid
].
ready
);
while
(
space_sort_struct
.
stack
[
qid
].
ready
);
space_sort_struct
.
stack
[
qid
].
i
=
i
;
space_sort_struct
.
stack
[
qid
].
j
=
jj
;
space_sort_struct
.
stack
[
qid
].
min
=
min
;
...
...
@@ -620,7 +620,7 @@ void space_do_parts_sort() {
if
(
pivot
+
1
<
max
)
{
qid
=
atomic_inc
(
&
space_sort_struct
.
last
)
%
space_sort_struct
.
stack_size
;
while
(
!
space_sort_struct
.
stack
[
qid
].
ready
);
while
(
space_sort_struct
.
stack
[
qid
].
ready
);
space_sort_struct
.
stack
[
qid
].
i
=
jj
+
1
;
space_sort_struct
.
stack
[
qid
].
j
=
j
;
space_sort_struct
.
stack
[
qid
].
min
=
pivot
+
1
;
...
...
@@ -1177,4 +1177,4 @@ void space_init(struct space *s, double dim[3], struct part *parts, int N,
/* Build the cells and the tasks. */
space_regrid
(
s
,
h_max
,
verbose
);
}
\ No newline at end of file
}
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