From 0fa621b161f368d7645148f076e3d26ccff38136 Mon Sep 17 00:00:00 2001
From: Josh Borrow <joshua.borrow@durham.ac.uk>
Date: Tue, 8 May 2018 13:30:20 +0100
Subject: [PATCH] Moved to using the smoothed pressure

---
 src/hydro/PressureEnergy/hydro.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/hydro/PressureEnergy/hydro.h b/src/hydro/PressureEnergy/hydro.h
index d1453b656f..a6ca8ba76d 100644
--- a/src/hydro/PressureEnergy/hydro.h
+++ b/src/hydro/PressureEnergy/hydro.h
@@ -88,7 +88,7 @@ hydro_get_physical_internal_energy(const struct part *restrict p,
 __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
     const struct part *restrict p) {
 
-  return gas_pressure_from_internal_energy(p->rho, p->u);
+  return p->pressure_bar;
 }
 
 /**
@@ -103,8 +103,7 @@ __attribute__((always_inline)) INLINE static float hydro_get_comoving_pressure(
 __attribute__((always_inline)) INLINE static float hydro_get_physical_pressure(
     const struct part *restrict p, const struct cosmology *cosmo) {
 
-  return cosmo->a_factor_pressure *
-         gas_pressure_from_internal_energy(p->rho, p->u);
+  return cosmo->a_factor_pressure * p->pressure_bar;
 }
 
 /**
-- 
GitLab