Skip to content
Snippets Groups Projects
Commit babb5691 authored by James Willis's avatar James Willis
Browse files

Initialise cj cache along with ci cache.

parent 2b50cf09
No related branches found
No related tags found
1 merge request!320Dopair1 vectorisation merge
...@@ -443,6 +443,13 @@ int main(int argc, char *argv[]) { ...@@ -443,6 +443,13 @@ int main(int argc, char *argv[]) {
#if !(defined(MINIMAL_SPH) && defined(WITH_VECTORIZATION)) #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 */ /* Run all the pairs */
for (int j = 0; j < 27; ++j) { for (int j = 0; j < 27; ++j) {
if (cells[j] != main_cell) { if (cells[j] != main_cell) {
...@@ -456,11 +463,6 @@ int main(int argc, char *argv[]) { ...@@ -456,11 +463,6 @@ int main(int argc, char *argv[]) {
} }
/* And now the self-interaction */ /* 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(); const ticks self_tic = getticks();
DOSELF1(&runner, main_cell); DOSELF1(&runner, main_cell);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment