28 #define ELL_MAX_CL 20000 49 double z_arr_gc[
NZ], nz_arr_gc[
NZ], bz_arr[
NZ];
50 for(
int i=0; i <
NZ; i++) {
52 nz_arr_gc[i] = exp(-0.5*
pow((z_arr_gc[i] -
Z0_GC) /
SZ_GC, 2));
53 bz_arr[i] = 1. + z_arr_gc[i];
57 double l_logstep = 1.05;
58 double l_linstep = 5.;
62 NZ, z_arr_gc, nz_arr_gc,
66 double *clarr = malloc(
ELL_MAX_CL*
sizeof(
double));
68 double *larr = malloc(
ELL_MAX_CL*
sizeof(
double));
72 ccl_angular_cls(cosmo, w, ct_gc, ct_gc, ELL_MAX_CL, ilarr, clarr, &status);
77 double taper_cl_limits[4] = {1, 2, 10000, 15000};
79 double *clustering_corr, *theta;
82 clustering_corr = malloc(ntheta*
sizeof(
double));
86 ntheta, theta, clustering_corr,
91 for(
int it=0; it < ntheta; it++)
92 printf(
"%le %le\n", theta[it], clustering_corr[it]);
98 free(clustering_corr);
double * ccl_log_spacing(double xmin, double xmax, int N)
void ccl_cl_tracer_free(CCL_ClTracer *clt)
CCL_ClWorkspace * ccl_cl_workspace_new_limber(int lmax, double l_logstep, int l_linstep, int *status)
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)
int main(int argc, char **argv)
CCL_ClTracer * ccl_cl_tracer_number_counts_simple(ccl_cosmology *cosmo, int nz_n, double *z_n, double *n, int nz_b, double *z_b, double *b, int *status)
void ccl_cosmology_free(ccl_cosmology *cosmo)
CCL_BEGIN_DECLS void ccl_correlation(ccl_cosmology *cosmo, int n_ell, double *ell, double *cls, int n_theta, double *theta, double *wtheta, int corr_type, int do_taper_cl, double *taper_cl_limits, int flag_method, int *status)
const ccl_configuration default_config
float pow(float base, unsigned long int exp)
void ccl_cl_workspace_free(CCL_ClWorkspace *w)
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)
static double w[2][28][111]