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
145b4377
Commit
145b4377
authored
Jul 28, 2017
by
Pedro Gonnet
Browse files
get rid of engine_check_sort_tasks, which is not needed in the new sorting scheme.
parent
d9c69983
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
145b4377
...
...
@@ -2402,21 +2402,6 @@ void engine_make_gravityrecursive_tasks(struct engine *e) {
/* } */
}
void
engine_check_sort_tasks
(
struct
engine
*
e
,
struct
cell
*
c
)
{
/* Find the parent sort task, if any, and copy its flags. */
if
(
c
->
sorts
!=
NULL
)
{
struct
cell
*
parent
=
c
->
parent
;
while
(
parent
!=
NULL
&&
parent
->
sorts
==
NULL
)
parent
=
parent
->
parent
;
if
(
parent
!=
NULL
)
c
->
sorts
->
flags
|=
parent
->
sorts
->
flags
;
}
/* Recurse? */
if
(
c
->
split
)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
)
engine_check_sort_tasks
(
e
,
c
->
progeny
[
k
]);
}
/**
* @brief Fill the #space's task list.
*
...
...
@@ -2495,9 +2480,6 @@ void engine_maketasks(struct engine *e) {
for
(
int
k
=
0
;
k
<
nr_cells
;
k
++
)
engine_make_hierarchical_tasks
(
e
,
&
cells
[
k
]);
/* Append hierarchical tasks to each cell. */
for
(
int
k
=
0
;
k
<
nr_cells
;
k
++
)
engine_check_sort_tasks
(
e
,
&
cells
[
k
]);
/* Run through the tasks and make force tasks for each density task.
Each force task depends on the cell ghosts and unlocks the kick task
of its super-cell. */
...
...
Pedro Gonnet
@nnrw56
mentioned in issue
#338 (closed)
·
Jul 28, 2017
mentioned in issue
#338 (closed)
mentioned in issue #338
Toggle commit list
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