Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
80b438f3
Commit
80b438f3
authored
Oct 12, 2019
by
Matthieu Schaller
Browse files
Updated the signature of cooling_init_backend() to match the needs of the COLIBRE fork.
parent
70a7f412
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/cooling.c
View file @
80b438f3
...
...
@@ -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
);
}
/**
...
...
src/cooling/Compton/cooling.h
View file @
80b438f3
...
...
@@ -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 */
...
...
src/cooling/EAGLE/cooling.c
View file @
80b438f3
...
...
@@ -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 */
...
...
src/cooling/EAGLE/cooling.h
View file @
80b438f3
...
...
@@ -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
);
...
...
src/cooling/const_du/cooling.h
View file @
80b438f3
...
...
@@ -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
=
...
...
src/cooling/const_lambda/cooling.h
View file @
80b438f3
...
...
@@ -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 */
...
...
src/cooling/grackle/cooling.h
View file @
80b438f3
...
...
@@ -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
)
...
...
src/cooling/none/cooling.h
View file @
80b438f3
...
...
@@ -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
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment