From 52414edb4f7cbd35b54c1ae7e95aa6887d570686 Mon Sep 17 00:00:00 2001
From: Josh Borrow <joshua.borrow@durham.ac.uk>
Date: Fri, 4 May 2018 15:24:46 +0100
Subject: [PATCH] Changed to using hydro_dimension isntead of 3

---
 src/hydro/PressureEnergy/hydro.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hydro/PressureEnergy/hydro.h b/src/hydro/PressureEnergy/hydro.h
index dc2d406e50..d1453b656f 100644
--- a/src/hydro/PressureEnergy/hydro.h
+++ b/src/hydro/PressureEnergy/hydro.h
@@ -395,7 +395,7 @@ __attribute__((always_inline)) INLINE static void hydro_prepare_force(
   const float soundspeed = gas_soundspeed_from_pressure(p->rho, pressure);
 
   /* Compute the "grad h" term */
-  const float common_factor = p->h / (3 * p->density.wcount);
+  const float common_factor = p->h / (hydro_dimension * p->density.wcount);
   const float grad_h_term =
       (p->density.pressure_bar_dh * common_factor / hydro_gamma_minus_one) / 
       (1 + common_factor * p->density.wcount_dh);
-- 
GitLab