Commit 2d34a8e0 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not recurse in runner_do_timestep() if the cell is inactive. Just reset the counters to zero.

parent 6777c37c
......@@ -1135,6 +1135,14 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) {
TIMER_TIC;
/* Anything to do here? */
if (!cell_is_active(c, e)) {
c->updated = 0;
c->g_updated = 0;
c->s_updated = 0;
return;
}
int updated = 0, g_updated = 0, s_updated = 0;
integertime_t ti_end_min = max_nr_timesteps, ti_end_max = 0, ti_beg_max = 0;
......
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