diff --git a/examples/main.c b/examples/main.c index d1a82bbdc38b865401ec7d71c0c85bd650abf9a2..234bd725473486da732dd14a18fee37795357202 100644 --- a/examples/main.c +++ b/examples/main.c @@ -915,11 +915,13 @@ int main(int argc, char *argv[]) { } /* Legend */ - if (myrank == 0) + if (myrank == 0) { printf("# %6s %14s %14s %10s %14s %9s %12s %12s %12s %16s [%s] %6s\n", "Step", "Time", "Scale-factor", "Redshift", "Time-step", "Time-bins", "Updates", "g-Updates", "s-Updates", "Wall-clock time", clocks_getunit(), "Props"); + fflush(stdout); + } /* File for the timers */ if (with_verbose_timers) timers_open_file(myrank); diff --git a/src/runner.c b/src/runner.c index 37c6030889b4aa5f65b524557b0936819eecd49a..fe8e7483e24406bf23bfec6a684814c664158a69 100644 --- a/src/runner.c +++ b/src/runner.c @@ -968,7 +968,7 @@ static void runner_do_unskip_gravity(struct cell *c, struct engine *e) { if (!cell_is_active_gravity(c, e)) return; /* Recurse */ - if (c->split) { + if (c->split && c->depth < space_subdepth_grav) { for (int k = 0; k < 8; k++) { if (c->progeny[k] != NULL) { struct cell *cp = c->progeny[k];