34 &mnu, mnu_type,w_0, w_a, h, A_s,
35 n_s,-1,-1,-1,-1,NULL,NULL, &status);
43 double z_arr_gc[
NZ],nz_arr_gc[
NZ],bz_arr[
NZ];
53 bool has_magnification =
false;
54 CCL_ClTracer *ct_gc_A=
ccl_cl_tracer_number_counts(ccl_cosmo,has_rsd,has_magnification,NZ,z_arr_gc,nz_arr_gc,NZ,z_arr_gc,bz_arr,-1,NULL,NULL, &status);
55 CCL_ClTracer *ct_gc_B=
ccl_cl_tracer_number_counts(ccl_cosmo,has_rsd,has_magnification,NZ,z_arr_gc,nz_arr_gc,NZ,z_arr_gc,bz_arr,-1,NULL,NULL, &status);
57 int *ells=malloc(
NL*
sizeof(
int));
58 double *cells_gg_native=malloc(
NL*
sizeof(
double));
59 for(
int ii=0;ii<
NL;ii++)
65 double logstep = 1.15;
69 CCL_ClWorkspace *wnl=ccl_cl_workspace_default(NL+1,2*ells[NL-1],CCL_NONLIMBER_METHOD_NATIVE,logstep,linstep,dchi,dlk,zmin,&status);
72 ccl_angular_cls(ccl_cosmo,wnl,ct_gc_B,ct_gc_B,NL,ells,cells_gg_native,&status);
73 FILE *f=fopen(
"angpow_gg.txt",
"w");
74 for(
int ii=2;ii<
NL;ii++)
75 fprintf(f,
"%d %lE\n",ells[ii],cells_gg_native[ii]);
83 free(cells_gg_native);
matter_power_spectrum_t matter_power_spectrum_method
void ccl_cl_tracer_free(CCL_ClTracer *clt)
transfer_function_t transfer_function_method
void ccl_angular_cls(ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt1, CCL_ClTracer *clt2, int nl_out, int *l, double *cl, int *status)
ccl_cosmology * ccl_cosmology_create(ccl_parameters params, ccl_configuration config)
void ccl_cosmology_free(ccl_cosmology *cosmo)
CCL_ClTracer * ccl_cl_tracer_number_counts(ccl_cosmology *cosmo, int has_rsd, int has_magnification, int nz_n, double *z_n, double *n, int nz_b, double *z_b, double *b, int nz_s, double *z_s, double *s, int *status)
const ccl_configuration default_config
float pow(float base, unsigned long int exp)
void ccl_cl_workspace_free(CCL_ClWorkspace *w)
int main(int argc, char **argv)
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)