Minor chance in nu power check
@@ -137,23 +137,10 @@ static void compare_power_nu(int i_model,struct power_nu_data * data)
ccl_parameters params;
- if (i_model==1){
-
- params = ccl_parameters_create(data->Omega_c, data->Omega_b, data->Omega_k,
- data->Neff, data->mnu0, data-> mnu_type,
- data->w_0[i_model-1], data->w_a[i_model-1],
- data->h, data->A_s, data->n_s,-1,-1,-1,-1,NULL,NULL, &status);
- } else if (i_model==2){
- params = ccl_parameters_create(data->Omega_c, data->Omega_b, data->Omega_k,
- data->Neff, data->mnu1, data->mnu_type,
- data->w_0[i_model-1], data->w_a[i_model-1],
- data->h, data->A_s, data->n_s,-1,-1,-1,-1,NULL,NULL, &status);
- } else if (i_model==3){
- params = ccl_parameters_create(data->Omega_c, data->Omega_b, data->Omega_k,
- data->Neff, data->mnu2, data->mnu_type,
- data->w_0[i_model-1], data->w_a[i_model-1],
+ parameters_create(data->Omega_c, data->Omega_b, data->Omega_k,data->Neff,
+ i_model==1 ? data->mnu0 : i_model==2 ? data->mnu1 : data->mnu2,
+ data->mnu_type,data->w_0[i_model-1], data->w_a[i_model-1],
data->h, data->A_s, data->n_s,-1,-1,-1,-1,NULL,NULL, &status);
- }
ccl_cosmology * cosmo_linear = ccl_cosmology_create(params, config_linear);
ASSERT_NOT_NULL(cosmo_linear);
