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

Initialise particle cache for vectorisation.

parent 78243006
No related branches found
No related tags found
1 merge request!348Fix pair vec
......@@ -623,6 +623,14 @@ int main(int argc, char *argv[]) {
/* Do the density calculation */
#if !(defined(MINIMAL_SPH) && defined(WITH_VECTORIZATION))
/* Initialise the particle cache. */
#ifdef WITH_VECTORIZATION
runner.ci_cache.count = 0;
cache_init(&runner.ci_cache, 512);
runner.cj_cache.count = 0;
cache_init(&runner.cj_cache, 512);
#endif
/* Run all the pairs (only once !)*/
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment