Commit babb5691 authored by James Willis's avatar James Willis
Browse files

Initialise cj cache along with ci cache.

parent 2b50cf09
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment