Commit 1dc137a4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Active the limiter_out task at the correct level.

parent c48f0e55
......@@ -2723,7 +2723,8 @@ void cell_activate_limiter(struct cell *c, struct scheduler *s) {
if (c->timestep_limiter == NULL)
error("Trying to activate un-existing c->timestep_limiter");
#endif
scheduler_activate(s, c->hydro.limiter_out);
if(c == c->hydro.super)
scheduler_activate(s, c->hydro.limiter_out);
scheduler_activate(s, c->timestep_limiter);
} else {
for (struct cell *parent = c->parent;
......@@ -2738,7 +2739,8 @@ void cell_activate_limiter(struct cell *c, struct scheduler *s) {
if (parent->timestep_limiter == NULL)
error("Trying to activate un-existing parent->timestep_limiter");
#endif
scheduler_activate(s, parent->hydro.limiter_out);
if(parent == parent->hydro.super)
scheduler_activate(s, parent->hydro.limiter_out);
scheduler_activate(s, parent->timestep_limiter);
break;
}
......
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