Commit 461934a7 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Follow the super_gravity pointer for external gravity tasks and not the super_hydro pointer.

parent 582e5bd0
......@@ -1435,7 +1435,7 @@ void scheduler_enqueue(struct scheduler *s, struct task *t) {
switch (t->type) {
case task_type_self:
case task_type_sub_self:
if (t->subtype == task_subtype_grav)
if (t->subtype == task_subtype_grav || t->subtype == task_subtype_external_grav)
qid = t->ci->super_gravity->owner;
qid = t->ci->super_hydro->owner;
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