From 23178443100101bc70521742f519b76de3ab43cf Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Wed, 30 Nov 2016 14:16:25 +0000 Subject: [PATCH] Initialise cache count to zero. --- src/engine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine.c b/src/engine.c index 866ac9055d..9cdc85a0e8 100644 --- a/src/engine.c +++ b/src/engine.c @@ -3361,6 +3361,7 @@ void engine_init(struct engine *e, struct space *s, } /* Allocate particle cache. */ + e->runners[k].par_cache.count = 0; cache_init(&e->runners[k].par_cache,cache_size); if (verbose) { -- GitLab