From 9115ebed0bdd7ad7c4bf0a17cb92d30c96198f4e Mon Sep 17 00:00:00 2001 From: lhausamm <loic_hausammann@hotmail.com> Date: Wed, 14 Feb 2018 11:21:25 +0100 Subject: [PATCH] Fix small issues --- src/engine.h | 2 +- src/runner.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/engine.h b/src/engine.h index e9ea3c35a4..a253746b07 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 cd0d0bcd55..92a4be0be1 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? */ -- GitLab