Commit 80b438f3 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Updated the signature of cooling_init_backend() to match the needs of the COLIBRE fork.

parent 70a7f412
......@@ -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);
}
/**
......
......@@ -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 */
......
......@@ -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 */
......
......@@ -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);
......
......@@ -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 =
......
......@@ -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 */
......
......@@ -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)
......
......@@ -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) {
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment