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

Correctly ptorect the debugging code in the cache construction routine.

parent 60dc6582
No related branches found
No related tags found
2 merge requests!566Periodic gravity calculation,!565Mesh force task
...@@ -346,7 +346,9 @@ gravity_cache_populate_all_mpole(const timebin_t max_active_bin, ...@@ -346,7 +346,9 @@ gravity_cache_populate_all_mpole(const timebin_t max_active_bin,
const float r_max2, const float r_max2,
const struct gravity_props *grav_props) { const struct gravity_props *grav_props) {
#ifdef SWIFT_DEBUG_CHECKS
const float theta_crit2 = grav_props->theta_crit2; const float theta_crit2 = grav_props->theta_crit2;
#endif
/* Make the compiler understand we are in happy vectorization land */ /* Make the compiler understand we are in happy vectorization land */
swift_declare_aligned_ptr(float, x, c->x, SWIFT_CACHE_ALIGNMENT); swift_declare_aligned_ptr(float, x, c->x, SWIFT_CACHE_ALIGNMENT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment