From 58e56ba1f944aee10cebb7be1873d39b0f56be68 Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Thu, 31 Aug 2017 12:12:12 +0100
Subject: [PATCH] To avoid type conversion.

---
 src/cache.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cache.h b/src/cache.h
index 1507a40455..5f2be08ddb 100644
--- a/src/cache.h
+++ b/src/cache.h
@@ -369,9 +369,9 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted(
   }
 
 #ifdef SWIFT_DEBUG_CHECKS
-  const double shift_threshold_x = 4. * ci->width[0] * (1. + 2.*space_maxreldx);
-  const double shift_threshold_y = 4. * ci->width[1] * (1. + 2.*space_maxreldx);
-  const double shift_threshold_z = 4. * ci->width[2] * (1. + 2.*space_maxreldx);
+  const float shift_threshold_x = 4. * ci->width[0] * (1. + 2.*space_maxreldx);
+  const float shift_threshold_y = 4. * ci->width[1] * (1. + 2.*space_maxreldx);
+  const float shift_threshold_z = 4. * ci->width[2] * (1. + 2.*space_maxreldx);
 
   /* Make sure that particle positions have been shifted correctly. */
   for (int i = 0; i < ci_cache_count; i++) {
-- 
GitLab