Skip to content
Snippets Groups Projects
Commit b6c7ea14 authored by Folkert Nobels's avatar Folkert Nobels
Browse files

Add hydro properties to initializing the star formation routine

parent 63b5626c
No related branches found
No related tags found
1 merge request!705Star formation following Schaye08
......@@ -890,7 +890,7 @@ int main(int argc, char *argv[]) {
/* Initialise the star formation law and its properties */
if (with_star_formation)
starformation_init(params, &prog_const, &us, &starform);
starformation_init(params, &prog_const, &us, &hydro_properties, &starform);
if (myrank == 0) starformation_print(&starform);
/* Initialise the chemistry */
......
......@@ -39,9 +39,10 @@
void starformation_init(struct swift_params* parameter_file,
const struct phys_const* phys_const,
const struct unit_system* us,
const struct hydro_props *hydro_props,
struct star_formation* starform) {
starformation_init_backend(parameter_file, phys_const, us, starform);
starformation_init_backend(parameter_file, phys_const, us, hydro_props, starform);
}
/**
......
......@@ -40,6 +40,7 @@
void starformation_init(struct swift_params* parameter_file,
const struct phys_const* phys_const,
const struct unit_system* us,
const struct hydro_props* hydro_props,
struct star_formation* starform);
void starformation_print(const struct star_formation* starform);
......
......@@ -85,7 +85,8 @@ INLINE static void star_formation_copy_properties(
*/
INLINE static void starformation_init_backend(
struct swift_params* parameter_file, const struct phys_const* phys_const,
const struct unit_system* us, const struct star_formation* starform) {}
const struct unit_system* us, const struct hydro_props* hydro_props,
const struct star_formation* starform) {}
/**
* @brief Prints the used parameters of the star formation law
......
......@@ -331,7 +331,8 @@ INLINE static void star_formation_copy_properties(
* */
INLINE static void starformation_init_backend(
struct swift_params* parameter_file, const struct phys_const* phys_const,
const struct unit_system* us, struct star_formation* starform) {
const struct unit_system* us, const struct hydro_props* hydro_props,
struct star_formation* starform) {
/* Get the appropriate constant to calculate the
* star formation constant */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment