From 59b197ae0a499fc048b49684caf81d6a642f200b Mon Sep 17 00:00:00 2001 From: James Willis Date: Thu, 31 Aug 2017 18:38:54 +0100 Subject: [PATCH] Pad properties with sensible values to prevent floating point exceptions. --- src/runner_doiact_vec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c index 6a667c4f5..fd585e331 100644 --- a/src/runner_doiact_vec.c +++ b/src/runner_doiact_vec.c @@ -700,6 +700,8 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec( cell_cache->y[i] = piy.f[0]; cell_cache->z[i] = piz.f[0]; cell_cache->h[i] = 1.f; + cell_cache->rho[i] = 1.f; + cell_cache->grad_h[i] = 1.f; } } -- GitLab