From e0b68cd12de90a7027875a6fa16f2b823c58525c Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Wed, 19 Feb 2020 15:29:15 +0100 Subject: [PATCH] Logger: fix compilation --- src/engine_maketasks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine_maketasks.c b/src/engine_maketasks.c index 91054984e8..6b96ad9d8b 100644 --- a/src/engine_maketasks.c +++ b/src/engine_maketasks.c @@ -831,7 +831,9 @@ void engine_make_hierarchical_tasks_common(struct engine *e, struct cell *c) { const int with_timestep_limiter = (e->policy & engine_policy_timestep_limiter); const int with_timestep_sync = (e->policy & engine_policy_timestep_sync); +#ifdef WITH_LOGGER const int with_logger = e->policy & engine_policy_logger; +#endif /* Are we at the top-level? */ if (c->top == c && c->nodeID == e->nodeID) { @@ -1076,7 +1078,9 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c, const int with_cooling = (e->policy & engine_policy_cooling); const int with_star_formation = (e->policy & engine_policy_star_formation); const int with_black_holes = (e->policy & engine_policy_black_holes); +#ifdef WITH_LOGGER const int with_logger = (e->policy & engine_policy_logger); +#endif /* Are we are the level where we create the stars' resort tasks? * If the tree is shallow, we need to do this at the super-level if the -- GitLab