diff --git a/src/cooling.c b/src/cooling.c index b2a711bcda0a8208c8de92fddb341f4288034c4d..563485e97e9f3689ba06013f146325443d0e30b9 100644 --- a/src/cooling.c +++ b/src/cooling.c @@ -51,7 +51,7 @@ void cooling_init(struct swift_params* parameter_file, "ERROR: Cannot run with cooling switched on and no minimal " "temperature."); - cooling_init_backend(parameter_file, us, phys_const, cooling); + cooling_init_backend(parameter_file, us, phys_const, hydro_props, cooling); } /** diff --git a/src/cooling/Compton/cooling.h b/src/cooling/Compton/cooling.h index 9e5a5ad34a9086152b98a1f1709e3755d875fb83..e04fc6f9adaef6bd238fe32d21526db1dc282aaa 100644 --- a/src/cooling/Compton/cooling.h +++ b/src/cooling/Compton/cooling.h @@ -314,11 +314,13 @@ __attribute__((always_inline)) INLINE static float cooling_get_radiated_energy( * @param parameter_file The parsed parameter file. * @param us The current internal system of units. * @param phys_const The physical constants in internal units. + * @param hydro_props The properties of the hydro scheme. * @param cooling The cooling properties to initialize */ static INLINE void cooling_init_backend(struct swift_params* parameter_file, const struct unit_system* us, const struct phys_const* phys_const, + const struct hydro_props* hydro_props, struct cooling_function_data* cooling) { /* Some useful conversion values */ diff --git a/src/cooling/EAGLE/cooling.c b/src/cooling/EAGLE/cooling.c index c5595ef514d5a145dd6e9c326c1ff1f2bc9da196..a228eb6ee74e301d2ec6ac461ab9b7420fe66250 100644 --- a/src/cooling/EAGLE/cooling.c +++ b/src/cooling/EAGLE/cooling.c @@ -683,11 +683,13 @@ void cooling_Hydrogen_reionization(const struct cooling_function_data *cooling, * @param parameter_file The parsed parameter file * @param us Internal system of units data structure * @param phys_const #phys_const data structure + * @param hydro_props The properties of the hydro scheme. * @param cooling #cooling_function_data struct to initialize */ void cooling_init_backend(struct swift_params *parameter_file, const struct unit_system *us, const struct phys_const *phys_const, + const struct hydro_props *hydro_props, struct cooling_function_data *cooling) { /* Read model parameters */ diff --git a/src/cooling/EAGLE/cooling.h b/src/cooling/EAGLE/cooling.h index eac3425d25f5f4c8fd0a5ed7656423379a3ad3f9..f154df3136558931a917aab2bcc27167d2a40508 100644 --- a/src/cooling/EAGLE/cooling.h +++ b/src/cooling/EAGLE/cooling.h @@ -78,6 +78,7 @@ void cooling_Hydrogen_reionization(const struct cooling_function_data *cooling, void cooling_init_backend(struct swift_params *parameter_file, const struct unit_system *us, const struct phys_const *phys_const, + const struct hydro_props *hydro_props, struct cooling_function_data *cooling); void cooling_print_backend(const struct cooling_function_data *cooling); diff --git a/src/cooling/const_du/cooling.h b/src/cooling/const_du/cooling.h index c57ef4a6874e0314bcea672cd514d1419b1acdd8..386ad3e0013a5884b12e589b3d1b1a09bfbb89dc 100644 --- a/src/cooling/const_du/cooling.h +++ b/src/cooling/const_du/cooling.h @@ -235,11 +235,13 @@ __attribute__((always_inline)) INLINE static float cooling_get_radiated_energy( * @param parameter_file The parsed parameter file. * @param us The current internal system of units. * @param phys_const The physical constants in internal units. + * @param hydro_props The properties of the hydro scheme. * @param cooling The cooling properties to initialize */ static INLINE void cooling_init_backend(struct swift_params* parameter_file, const struct unit_system* us, const struct phys_const* phys_const, + const struct hydro_props* hydro_props, struct cooling_function_data* cooling) { cooling->cooling_rate = diff --git a/src/cooling/const_lambda/cooling.h b/src/cooling/const_lambda/cooling.h index fddc9a62067d23e13b8c2229ad5d5e798600b4e0..3e3a44249d152e407bf9d3fdf294dd504cee2257 100644 --- a/src/cooling/const_lambda/cooling.h +++ b/src/cooling/const_lambda/cooling.h @@ -308,11 +308,13 @@ __attribute__((always_inline)) INLINE static float cooling_get_radiated_energy( * @param parameter_file The parsed parameter file. * @param us The current internal system of units. * @param phys_const The physical constants in internal units. + * @param hydro_props The properties of the hydro scheme. * @param cooling The cooling properties to initialize */ static INLINE void cooling_init_backend(struct swift_params* parameter_file, const struct unit_system* us, const struct phys_const* phys_const, + const struct hydro_props* hydro_props, struct cooling_function_data* cooling) { /* Read in the cooling parameters */ diff --git a/src/cooling/grackle/cooling.h b/src/cooling/grackle/cooling.h index 98d34dc630aa0c83198ddd60b6ee9e2775778d0f..dec0e80ffa834e7749c8c1815a8a7441befc251b 100644 --- a/src/cooling/grackle/cooling.h +++ b/src/cooling/grackle/cooling.h @@ -852,11 +852,12 @@ __attribute__((always_inline)) INLINE static void cooling_init_grackle( * @param parameter_file The parsed parameter file. * @param us The current internal system of units. * @param phys_const The physical constants in internal units. + * @param hydro_props The properties of the hydro scheme. * @param cooling The cooling properties to initialize */ __attribute__((always_inline)) INLINE static void cooling_init_backend( struct swift_params* parameter_file, const struct unit_system* us, - const struct phys_const* phys_const, + const struct phys_const* phys_const, const struct hydro_props* hydro_props, struct cooling_function_data* cooling) { if (GRACKLE_NPART != 1) diff --git a/src/cooling/none/cooling.h b/src/cooling/none/cooling.h index 20aef187d912db379bb1c51ad9e8a4f16e47778c..5630914dea5a3ce205c14ba1fb7a353d784df37f 100644 --- a/src/cooling/none/cooling.h +++ b/src/cooling/none/cooling.h @@ -184,11 +184,13 @@ __attribute__((always_inline)) INLINE static float cooling_get_radiated_energy( * @param parameter_file The parsed parameter file. * @param us The current internal system of units. * @param phys_const The physical constants in internal units. + * @param hydro_props The properties of the hydro scheme. * @param cooling The cooling properties to initialize */ static INLINE void cooling_init_backend(struct swift_params* parameter_file, const struct unit_system* us, const struct phys_const* phys_const, + const struct hydro_props* hydro_props, struct cooling_function_data* cooling) { }