diff --git a/src/engine.h b/src/engine.h index e9ea3c35a4523b5780cb3d1b0c134950265aa85d..a253746b070f3af8f75ef38f9b64842ea30e69c6 100644 --- a/src/engine.h +++ b/src/engine.h @@ -314,7 +314,7 @@ struct engine { struct repartition *reparttype; /* Number of particle steps between dumping a chunk of data */ - int logger_max_steps; + short int logger_max_steps; /* File name of the dump file */ struct dump *logger_dump; diff --git a/src/runner.c b/src/runner.c index cd0d0bcd558378e85d82badcb11524d68834f15a..92a4be0be1bb54d7adb60c9fa6df7e65a72b8cad 100644 --- a/src/runner.c +++ b/src/runner.c @@ -2705,19 +2705,17 @@ void *runner_main(void *data) { void runner_do_logger(struct runner *r, struct cell *c, int timer) { #ifdef WITH_LOGGER + TIMER_TIC; + const struct engine *e = r->e; struct part *restrict parts = c->parts; struct xpart *restrict xparts = c->xparts; struct gpart *restrict gparts = c->gparts; const int count = c->count; const int gcount = c->gcount; - //const integertime_t ti_current = e->ti_current; - //const double timeBase = e->timeBase; - - TIMER_TIC; /* Anything to do here? */ - if (!cell_is_starting_hydro(c, e) || !cell_is_starting_gravity(c, e)) + if (!cell_is_starting_hydro(c, e) && !cell_is_starting_gravity(c, e)) return; /* Recurse? */