64 char fname[256],str[1024];
71 data->
w_0[i_model-1],data->
w_a[i_model-1],
72 data->
h,data->
A_s,data->
n_s,-1,-1,-1,-1,NULL,NULL, &status);
79 sprintf(fname,
"./tests/benchmark/model%d_pk_eh.txt",i_model);
82 fprintf(stderr,
"Error opening file %s\n",fname);
87 rtn = fgets(str, 1024, f);
91 stat=fscanf(f,
"%lf",&k_h);
93 fprintf(stderr,
"Error reading file %s, line %d\n",fname,i+2);
98 double pk_h,pk_bench,pk_ccl,err;
101 stat=fscanf(f,
"%lf",&pk_h);
103 fprintf(stderr,
"Error reading file %s, line %d\n",fname,i+2);
106 pk_bench=pk_h/
pow(data->
h,3);
109 err=fabs(pk_ccl/pk_bench-1);
static int linecount(FILE *f)
transfer_function_t transfer_function_method
ccl_cosmology * ccl_cosmology_create(ccl_parameters params, ccl_configuration config)
double ccl_linear_matter_power(ccl_cosmology *cosmo, double k, double a, int *status)
void ccl_cosmology_free(ccl_cosmology *cosmo)
#define ASSERT_DBL_NEAR_TOL(exp, real, tol)
const ccl_configuration default_config
float pow(float base, unsigned long int exp)
#define ASSERT_NOT_NULL(real)
ccl_mnu_convention mnu_type
ccl_parameters ccl_parameters_create(double Omega_c, double Omega_b, double Omega_k, double Neff, double *mnu, ccl_mnu_convention mnu_type, double w0, double wa, double h, double norm_pk, double n_s, double bcm_log10Mc, double bcm_etab, double bcm_ks, int nz_mgrowth, double *zarr_mgrowth, double *dfarr_mgrowth, int *status)