Commit a2e33096 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make Omega_r an optional parameter defaulting to 0.

parent 40f9ec0a
......@@ -40,7 +40,6 @@ InitialConditions:
Cosmology:
Omega_m: 0.307
Omega_r: 0.000
Omega_lambda: 0.693
Omega_b: 0.0455
h: 0.6777
......
......@@ -360,7 +360,7 @@ void cosmology_init(const struct swift_params *params,
/* Read in the cosmological parameters */
c->Omega_m = parser_get_param_double(params, "Cosmology:Omega_m");
c->Omega_r = parser_get_param_double(params, "Cosmology:Omega_r");
c->Omega_r = parser_get_opt_param_double(params, "Cosmology:Omega_r", 0.);
c->Omega_lambda = parser_get_param_double(params, "Cosmology:Omega_lambda");
c->Omega_b = parser_get_param_double(params, "Cosmology:Omega_b");
c->w_0 = parser_get_opt_param_double(params, "Cosmology:w_0", -1.);
......
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