From 6bee62068f5a273021759f035a2fdc745e5476d0 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Wed, 26 Jul 2017 09:44:38 +0100 Subject: [PATCH] Improvement to populating the max_d array with indices instead of distances. --- src/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.h b/src/cache.h index 1b6d89f03f..3313cb4186 100644 --- a/src/cache.h +++ b/src/cache.h @@ -64,7 +64,7 @@ struct cache { float *restrict vz __attribute__((aligned(CACHE_ALIGN))); /* Maximum distance of particles into neighbouring cell. */ - float *restrict max_d __attribute__((aligned(CACHE_ALIGN))); + int *restrict max_d __attribute__((aligned(CACHE_ALIGN))); /* Cache size. */ int count; -- GitLab