From babb569101630143d398c00e59b95e67b69cb032 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Wed, 14 Dec 2016 11:23:36 +0000 Subject: [PATCH] Initialise cj cache along with ci cache. --- tests/test27cells.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/test27cells.c b/tests/test27cells.c index eca38b239d..f1f10c13f8 100644 --- a/tests/test27cells.c +++ b/tests/test27cells.c @@ -443,6 +443,13 @@ int main(int argc, char *argv[]) { #if !(defined(MINIMAL_SPH) && defined(WITH_VECTORIZATION)) +#ifdef WITH_VECTORIZATION + runner.par_cache.count = 0; + cache_init(&runner.par_cache, 512); + cj_cache.count = 0; + cache_init(&cj_cache, 512); +#endif + /* Run all the pairs */ for (int j = 0; j < 27; ++j) { if (cells[j] != main_cell) { @@ -456,11 +463,6 @@ int main(int argc, char *argv[]) { } /* And now the self-interaction */ -#ifdef WITH_VECTORIZATION - runner.par_cache.count = 0; - cache_init(&runner.par_cache, 512); -#endif - const ticks self_tic = getticks(); DOSELF1(&runner, main_cell); -- GitLab