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
add8e1c0
Commit
add8e1c0
authored
Dec 01, 2017
by
Matthieu Schaller
Browse files
Removed unused function adding recursive gravity tasks.
parent
da5b1073
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
add8e1c0
...
...
@@ -1055,28 +1055,6 @@ void engine_repartition_trigger(struct engine *e) {
#endif
}
/**
* @brief Add up/down gravity tasks to a cell hierarchy.
*
* @param e The #engine.
* @param c The #cell
* @param up The upward gravity #task.
* @param down The downward gravity #task.
*/
void
engine_addtasks_grav
(
struct
engine
*
e
,
struct
cell
*
c
,
struct
task
*
up
,
struct
task
*
down
)
{
/* Link the tasks to this cell. */
// c->grav_up = up;
c
->
grav_down
=
down
;
/* Recurse? */
if
(
c
->
split
)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
c
->
progeny
[
k
]
!=
NULL
)
engine_addtasks_grav
(
e
,
c
->
progeny
[
k
],
up
,
down
);
}
/**
* @brief Add send tasks to a hierarchy of cells.
*
...
...
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