Commit 58e56ba1 authored by James Willis's avatar James Willis
Browse files

To avoid type conversion.

parent 7105043d
......@@ -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++) {
......
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