From 364afb9727ca9eb4c00f1f07d5c7cf33c665de3a Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Fri, 1 Sep 2017 14:44:40 +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 dd0baefcfa..79df48a237 100644
--- a/src/runner_doiact_vec.c
+++ b/src/runner_doiact_vec.c
@@ -703,6 +703,8 @@ __attribute__((always_inline)) INLINE void runner_doself2_force_vec(
         cell_cache->rho[i] = 1.f;
         cell_cache->grad_h[i] = 1.f;
         cell_cache->pOrho2[i] = 1.f;
+        cell_cache->balsara[i] = 1.f;
+        cell_cache->soundspeed[i] = 1.f;
       }
     }
 
-- 
GitLab