From 48c6cbb397f1ea92f58be0a5e1baafce609c97cd Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Mon, 18 Jun 2018 17:33:27 +0200 Subject: [PATCH] Correctly ptorect the debugging code in the cache construction routine. --- src/gravity_cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gravity_cache.h b/src/gravity_cache.h index 5dc65dabaf..09ddb3ef88 100644 --- a/src/gravity_cache.h +++ b/src/gravity_cache.h @@ -346,7 +346,9 @@ gravity_cache_populate_all_mpole(const timebin_t max_active_bin, const float r_max2, const struct gravity_props *grav_props) { +#ifdef SWIFT_DEBUG_CHECKS const float theta_crit2 = grav_props->theta_crit2; +#endif /* Make the compiler understand we are in happy vectorization land */ swift_declare_aligned_ptr(float, x, c->x, SWIFT_CACHE_ALIGNMENT); -- GitLab