diff --git a/src/cell.c b/src/cell.c index 4e05c645e5292f52261c35124ecb5c42b51b1b17..32a47e9451076ef18f70b737c68d074d2593026e 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 ca0cec5f59e97165ca7e48ccd43d3b7cdecd20a3..24d8777e1e84b8571d14d5b822ed4db1a79f884d 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 baac6ee0cd92d55b7543bc32b4e81c8d2598b519..606100615794e80029429c36daacc527802b4298 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; }