Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -1135,6 +1135,14 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) { ...@@ -1135,6 +1135,14 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) {
TIMER_TIC; 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; 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; integertime_t ti_end_min = max_nr_timesteps, ti_end_max = 0, ti_beg_max = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment