From 19490f8e8d22b4eff49a879437f4f9a00a0ff4e8 Mon Sep 17 00:00:00 2001
From: loikki <loic.hausammann@protonmail.ch>
Date: Thu, 15 Aug 2019 08:43:51 +0200
Subject: [PATCH] GEAR: update pressure_floor/none API

---
 src/cell.c                               |  1 +
 src/pressure_floor/GEAR/pressure_floor.h |  1 +
 src/pressure_floor/none/pressure_floor.h | 14 ++++++--------
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/cell.c b/src/cell.c
index 4e05c645e5..32a47e9451 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -61,6 +61,7 @@
 #include "hydro_properties.h"
 #include "memswap.h"
 #include "minmax.h"
+#include "pressure_floor.h"
 #include "scheduler.h"
 #include "space.h"
 #include "space_getsid.h"
diff --git a/src/pressure_floor/GEAR/pressure_floor.h b/src/pressure_floor/GEAR/pressure_floor.h
index ca0cec5f59..24d8777e1e 100644
--- a/src/pressure_floor/GEAR/pressure_floor.h
+++ b/src/pressure_floor/GEAR/pressure_floor.h
@@ -84,6 +84,7 @@ __attribute__((always_inline)) static INLINE float pressure_floor_get_physical_p
  *
  * @param p The #part.
  * @param pressure_comoving The comoving pressure without any pressure floor.
+ * @param cosmo The #cosmology model.
  *
  * @return The physical or comoving pressure with the floor.
  */
diff --git a/src/pressure_floor/none/pressure_floor.h b/src/pressure_floor/none/pressure_floor.h
index baac6ee0cd..6061006157 100644
--- a/src/pressure_floor/none/pressure_floor.h
+++ b/src/pressure_floor/none/pressure_floor.h
@@ -44,13 +44,12 @@ struct pressure_floor_properties {};
  *
  * @param p The #part.
  * @param rho The physical or comoving density.
- * @param pressure The physical pressure without any pressure floor.
+ * @param cosmo The #cosmology model.
  *
  * @return The physical pressure with the floor.
  */
-static INLINE float pressure_floor_get_physical_pressure(const struct part* p,
-							 const float rho,
-							 const float pressure) {
+static INLINE float pressure_floor_get_physical_pressure(
+    const struct part* p, const float rho, const struct cosmology *cosmo) {
   return pressure;
 }
 
@@ -61,13 +60,12 @@ static INLINE float pressure_floor_get_physical_pressure(const struct part* p,
  *
  * @param p The #part.
  * @param rho The physical or comoving density.
- * @param pressure The comoving pressure without any pressure floor.
+ * @param cosmo The #cosmology model.
  *
  * @return The comoving pressure with the floor.
  */
-static INLINE float pressure_floor_get_comoving_pressure(const struct part* p,
-							 const float rho,
-							 const float pressure) {
+static INLINE float pressure_floor_get_comoving_pressure(
+    const struct part* p, const float rho, const struct cosmology *cosmo) {
   return pressure;
 }
 
-- 
GitLab