Skip to content
Snippets Groups Projects
Commit 733f2de2 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not recurse below the level where there are tasks when unskiping

parent 004fd34d
No related branches found
No related tags found
1 merge request!576Gravity splittask (non-MPI)
...@@ -915,11 +915,13 @@ int main(int argc, char *argv[]) { ...@@ -915,11 +915,13 @@ int main(int argc, char *argv[]) {
} }
/* Legend */ /* Legend */
if (myrank == 0) if (myrank == 0) {
printf("# %6s %14s %14s %10s %14s %9s %12s %12s %12s %16s [%s] %6s\n", printf("# %6s %14s %14s %10s %14s %9s %12s %12s %12s %16s [%s] %6s\n",
"Step", "Time", "Scale-factor", "Redshift", "Time-step", "Time-bins", "Step", "Time", "Scale-factor", "Redshift", "Time-step", "Time-bins",
"Updates", "g-Updates", "s-Updates", "Wall-clock time", "Updates", "g-Updates", "s-Updates", "Wall-clock time",
clocks_getunit(), "Props"); clocks_getunit(), "Props");
fflush(stdout);
}
/* File for the timers */ /* File for the timers */
if (with_verbose_timers) timers_open_file(myrank); if (with_verbose_timers) timers_open_file(myrank);
......
...@@ -968,7 +968,7 @@ static void runner_do_unskip_gravity(struct cell *c, struct engine *e) { ...@@ -968,7 +968,7 @@ static void runner_do_unskip_gravity(struct cell *c, struct engine *e) {
if (!cell_is_active_gravity(c, e)) return; if (!cell_is_active_gravity(c, e)) return;
/* Recurse */ /* Recurse */
if (c->split) { if (c->split && c->depth < space_subdepth_grav) {
for (int k = 0; k < 8; k++) { for (int k = 0; k < 8; k++) {
if (c->progeny[k] != NULL) { if (c->progeny[k] != NULL) {
struct cell *cp = c->progeny[k]; struct cell *cp = c->progeny[k];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment