Skip to content
GitLab
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
ca250f50
Commit
ca250f50
authored
Jul 06, 2017
by
Pedro Gonnet
Browse files
don't re-sort existing dimensions if no cleanup required.
parent
7e7f9fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
ca250f50
...
...
@@ -335,6 +335,11 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
/* We need to do the local sorts plus whatever was requested further up. */
flags
|=
c
->
do_sort
;
if
(
cleanup
)
{
c
->
sorted
=
0
;
}
else
{
flags
&=
~
c
->
sorted
;
}
if
(
flags
==
0
&&
!
c
->
do_sub_sort
)
return
;
/* Check that the particles have been moved to the current time */
...
...
@@ -466,7 +471,8 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int cleanup,
xparts
[
k
].
x_diff_sort
[
2
]
=
0
.
0
f
;
}
}
c
->
dx_max_sort_old
=
c
->
dx_max_sort
=
0
.
f
;
c
->
dx_max_sort_old
=
0
.
f
;
c
->
dx_max_sort
=
0
.
f
;
}
/* Fill the sort array. */
...
...
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