Commit e08c2b7a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Removed the (unused) sub-self and sub-pair gravity tasks

parent d578629b
......@@ -1895,10 +1895,6 @@ void *runner_main(void *data) {
#endif
else if (t->subtype == task_subtype_force)
runner_dosub_self2_force(r, ci, 1);
else if (t->subtype == task_subtype_grav)
runner_dosub_grav(r, ci, cj, 1);
else if (t->subtype == task_subtype_external_grav)
runner_do_grav_external(r, ci, 1);
else
error("Unknown/invalid task subtype (%d).", t->subtype);
break;
......@@ -1912,8 +1908,6 @@ void *runner_main(void *data) {
#endif
else if (t->subtype == task_subtype_force)
runner_dosub_pair2_force(r, ci, cj, t->flags, 1);
else if (t->subtype == task_subtype_grav)
runner_dosub_grav(r, ci, cj, 1);
else
error("Unknown/invalid task subtype (%d).", t->subtype);
break;
......
......@@ -1067,20 +1067,6 @@ void runner_doself_grav(struct runner *r, struct cell *c, int gettimer) {
if (gettimer) TIMER_TOC(timer_dosub_self_grav);
}
void runner_dosub_grav(struct runner *r, struct cell *ci, struct cell *cj,
int timer) {
/* Is this a single cell? */
if (cj == NULL) {
runner_doself_grav(r, ci, 1);
} else {
runner_dopair_grav(r, ci, cj, 1);
}
}
/**
* @brief Performs all M-M interactions between a given top-level cell and all
* the other top-levels that are far enough.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment