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

Initialise cache count to zero.

parent 19d92fc4
...@@ -3361,6 +3361,7 @@ void engine_init(struct engine *e, struct space *s, ...@@ -3361,6 +3361,7 @@ void engine_init(struct engine *e, struct space *s,
} }
/* Allocate particle cache. */ /* Allocate particle cache. */
e->runners[k].par_cache.count = 0;
cache_init(&e->runners[k].par_cache,cache_size); cache_init(&e->runners[k].par_cache,cache_size);
if (verbose) { if (verbose) {
......
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