|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>#include <gsl/gsl_errno.h>#include <gsl/gsl_integration.h>#include "ccl.h"
Go to the source code of this file.
Classes | |
| struct | IntLensPar |
| struct | IntMagPar |
| struct | IntClPar |
Macros | |
| #define | CCL_FRAC_RELEVANT 5E-4 |
Functions | |
| static void | get_support_interval (int n, double *x, double *y, double frac, double *xmin_out, double *xmax_out) |
| static double | speval_bis (double x, void *params) |
| void | ccl_cl_workspace_free (CCL_ClWorkspace *w) |
| CCL_ClWorkspace * | ccl_cl_workspace_new (int lmax, int l_limber, double l_logstep, int l_linstep, int *status) |
| CCL_ClWorkspace * | ccl_cl_workspace_new_limber (int lmax, double l_logstep, int l_linstep, int *status) |
| static double | integrand_wl (double chip, void *params) |
| static int | window_lensing (double chi, ccl_cosmology *cosmo, SplPar *spl_pz, double chi_max, double *win) |
| static double | integrand_mag (double chip, void *params) |
| static int | window_magnification (double chi, ccl_cosmology *cosmo, SplPar *spl_pz, SplPar *spl_sz, double chi_max, double *win) |
| static void | clt_init_nz (CCL_ClTracer *clt, ccl_cosmology *cosmo, int nz_n, double *z_n, double *n, int *status) |
| static void | clt_init_bz (CCL_ClTracer *clt, ccl_cosmology *cosmo, int nz_b, double *z_b, double *b, int *status) |
| static void | clt_init_wM (CCL_ClTracer *clt, ccl_cosmology *cosmo, int nz_s, double *z_s, double *s, int *status) |
| static void | clt_nc_init (CCL_ClTracer *clt, 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) |
| static void | clt_init_wL (CCL_ClTracer *clt, ccl_cosmology *cosmo, int *status) |
| static void | clt_init_rf (CCL_ClTracer *clt, ccl_cosmology *cosmo, int nz_rf, double *z_rf, double *rf, int *status) |
| static void | clt_init_ba (CCL_ClTracer *clt, ccl_cosmology *cosmo, int nz_ba, double *z_ba, double *ba, int *status) |
| static void | clt_wl_init (CCL_ClTracer *clt, ccl_cosmology *cosmo, int has_intrinsic_alignment, int nz_n, double *z_n, double *n, int nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, int *status) |
| static CCL_ClTracer * | cl_tracer (ccl_cosmology *cosmo, int tracer_type, int has_rsd, int has_magnification, int has_intrinsic_alignment, 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 nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, double z_source, int *status) |
| CCL_ClTracer * | ccl_cl_tracer (ccl_cosmology *cosmo, int tracer_type, int has_rsd, int has_magnification, int has_intrinsic_alignment, 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 nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, double z_source, int *status) |
| void | ccl_cl_tracer_free (CCL_ClTracer *clt) |
| CCL_ClTracer * | ccl_cl_tracer_cmblens (ccl_cosmology *cosmo, double z_source, int *status) |
| 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) |
| 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) |
| CCL_ClTracer * | ccl_cl_tracer_lensing (ccl_cosmology *cosmo, int has_alignment, int nz_n, double *z_n, double *n, int nz_ba, double *z_ba, double *ba, int nz_rf, double *z_rf, double *rf, int *status) |
| CCL_ClTracer * | ccl_cl_tracer_lensing_simple (ccl_cosmology *cosmo, int nz_n, double *z_n, double *n, int *status) |
| static double | f_dens (double a, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | f_rsd (double a, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | f_mag (double a, double chi, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | transfer_nc (int l, double k, ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt, int *status) |
| static double | f_lensing (double a, double chi, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | f_IA_NLA (double a, double chi, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | transfer_wl (int l, double k, ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt, int *status) |
| static double | transfer_cmblens (int l, double k, ccl_cosmology *cosmo, CCL_ClTracer *clt, int *status) |
| static double | transfer_wrap (int il, double lk, ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt, int *status) |
| static double | cl_integrand (double lk, void *params) |
| static void | get_k_interval (ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt1, CCL_ClTracer *clt2, int l, double *lkmin, double *lkmax) |
| static double | ccl_angular_cl_native (ccl_cosmology *cosmo, CCL_ClWorkspace *cw, int il, CCL_ClTracer *clt1, CCL_ClTracer *clt2, int *status) |
| void | ccl_angular_cls (ccl_cosmology *cosmo, CCL_ClWorkspace *w, CCL_ClTracer *clt1, CCL_ClTracer *clt2, int nl_out, int *l_out, double *cl_out, int *status) |
| static int | check_clt_fa_inconsistency (CCL_ClTracer *clt, int func_code) |
| double | ccl_get_tracer_fa (ccl_cosmology *cosmo, CCL_ClTracer *clt, double a, int func_code, int *status) |
| int | ccl_get_tracer_fas (ccl_cosmology *cosmo, CCL_ClTracer *clt, int na, double *a, double *fa, int func_code, int *status) |
| #define CCL_FRAC_RELEVANT 5E-4 |
Definition at line 15 of file ccl_cls.c.
Referenced by clt_init_nz().
|
static |
Definition at line 889 of file ccl_cls.c.
References ccl_check_status(), ccl_cosmology_set_status_message(), CCL_ERROR_INTEG, ccl_gsl, ccl_raise_gsl_warning(), cl_integrand(), IntClPar::clt1, IntClPar::clt2, cl_cmbl_bm::cosmo, IntClPar::cosmo, get_k_interval(), IntClPar::il, ccl_gsl_params::INTEGRATION_LIMBER_EPSREL, ccl_gsl_params::INTEGRATION_LIMBER_GAUSS_KRONROD_POINTS, CCL_ClWorkspace::l_arr, ccl_gsl_params::N_ITERATION, IntClPar::status, w, and IntClPar::w.
Referenced by ccl_angular_cls().
| 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 | ||
| ) |
Computes limber or non-limber power spectrum for two different tracers
| cosmo | Cosmological parameters |
| w | a ClWorkspace |
| clt1 | a Cltracer |
| clt2 | a Cltracer |
| nl_out | the maximum to ell to compute C_ell |
| l | an array of ell values |
| cl | the C_ell output array |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 943 of file ccl_cls.c.
References ccl_angular_cl_native(), ccl_check_status(), ccl_cosmology_set_status_message(), CCL_ERROR_MEMORY, CCL_ERROR_SPLINE_EV, ccl_spline_eval(), ccl_spline_free(), ccl_spline_init(), ccl_weak_lensing_tracer, CCL_ClTracer::has_magnification, CCL_ClWorkspace::l_arr, CCL_ClWorkspace::l_limber, CCL_ClWorkspace::lmax, CCL_ClWorkspace::n_ls, and CCL_ClTracer::tracer_type.
Referenced by compare_cls(), compare_corr(), main(), and test_angpow_precision().
| CCL_ClTracer* ccl_cl_tracer | ( | ccl_cosmology * | cosmo, |
| int | tracer_type, | ||
| int | has_rsd, | ||
| int | has_magnification, | ||
| int | has_intrinsic_alignment, | ||
| 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 | nz_ba, | ||
| double * | z_ba, | ||
| double * | ba, | ||
| int | nz_rf, | ||
| double * | z_rf, | ||
| double * | rf, | ||
| double | z_source, | ||
| int * | status | ||
| ) |
Constructor for a ClTracer.
| Tracer_type | pass ccl_number_counts_tracer (number counts), ccl_weak_lensing_tracer (weak lensing) or ccl_cmb_lensing_tracer (CMB lensing) |
| has_rsd | Set to 1 if you want to compute the RSD contribution to number counts (0 otherwise) |
| has_magnification | Set to 1 if you want to compute the magnification contribution to number counts (0 otherwise) |
| has_intrinsic_alignment | Set to 1 if you want to compute the IA contribution to shear |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| nz_s | Number of bins in z_s and s |
| z_s | Redshifts for each redshift interval of s |
| s | Magnification bias in each redshift bin |
| nz_ba | Number of bins in z_ba and ba |
| z_ba | Redshifts for each redshift interval of ba |
| ba | Alignment bias in each redshift bin |
| nz_rf | Number of bins in z_f and f |
| z_rf | Redshifts for each redshift interval of rf |
| rf | Aligned red fraction in each redshift bin |
| z_source | Redshift of source plane for CMB lensing (z~1100 for CMB lensing). |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 575 of file ccl_cls.c.
References ccl_check_status(), and cl_tracer().
Referenced by ccl_cl_tracer_cmblens(), ccl_cl_tracer_lensing(), ccl_cl_tracer_lensing_simple(), ccl_cl_tracer_number_counts(), and ccl_cl_tracer_number_counts_simple().
| CCL_ClTracer* ccl_cl_tracer_cmblens | ( | ccl_cosmology * | cosmo, |
| double | z_source, | ||
| int * | status | ||
| ) |
Simplified constructor for a CMB lensing ClTracer.
| z_source | Redshift of source plane (z~1100 for CMB lensing). |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 614 of file ccl_cls.c.
References ccl_cl_tracer(), and ccl_cmb_lensing_tracer.
Referenced by compare_cls(), and main().
| void ccl_cl_tracer_free | ( | CCL_ClTracer * | clt | ) |
Destructor for a Cltracer
| clt | a Cltracer |
Definition at line 592 of file ccl_cls.c.
References ccl_number_counts_tracer, ccl_spline_free(), ccl_weak_lensing_tracer, CCL_ClTracer::has_intrinsic_alignment, CCL_ClTracer::has_magnification, CCL_ClTracer::spl_ba, CCL_ClTracer::spl_bz, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_rf, CCL_ClTracer::spl_sz, CCL_ClTracer::spl_wL, CCL_ClTracer::spl_wM, and CCL_ClTracer::tracer_type.
Referenced by compare_cls(), main(), and test_angpow_precision().
| CCL_ClTracer* ccl_cl_tracer_lensing | ( | ccl_cosmology * | cosmo, |
| int | has_alignment, | ||
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int | nz_ba, | ||
| double * | z_ba, | ||
| double * | ba, | ||
| int | nz_rf, | ||
| double * | z_rf, | ||
| double * | rf, | ||
| int * | status | ||
| ) |
Simplified constructor for a lensing ClTracer.
| has_intrinsic_alignment | Set to 1 if you want to compute the IA contribution to shear |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_ba | Number of bins in z_ba and ba |
| z_ba | Redshifts for each redshift interval of ba |
| ba | Alignment bias in each redshift bin |
| nz_rf | Number of bins in z_f and f |
| z_rf | Redshifts for each redshift interval of rf |
| rf | Aligned red fraction in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 642 of file ccl_cls.c.
References ccl_cl_tracer(), and ccl_weak_lensing_tracer.
Referenced by compare_cls(), and compare_corr().
| CCL_ClTracer* ccl_cl_tracer_lensing_simple | ( | ccl_cosmology * | cosmo, |
| int | nz_n, | ||
| double * | z_n, | ||
| double * | n, | ||
| int * | status | ||
| ) |
Simplified constructor for a lensing ClTracer without intrinsic alignment.
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 653 of file ccl_cls.c.
References ccl_cl_tracer(), and ccl_weak_lensing_tracer.
Referenced by compare_cls(), compare_corr(), and main().
| 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 | ||
| ) |
Simplified constructor for a clustering ClTracer.
| cosmo | Cosmological parameters |
| has_rsd | Set to 1 if you want to compute the RSD contribution to number counts (0 otherwise) |
| has_magnification | Set to 1 if you want to compute the magnification contribution to number counts (0 otherwise) |
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| nz_s | Number of bins in z_s and s |
| z_s | Redshifts for each redshift interval of s |
| s | Magnification bias in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 622 of file ccl_cls.c.
References ccl_cl_tracer(), and ccl_number_counts_tracer.
Referenced by main(), and test_angpow_precision().
| 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 | ||
| ) |
Simplified constructor for a ClTracer without magnification nor RSD.
| nz_n | Number of bins in z_n and n |
| z_n | Redshifts for each redshift interval of n |
| n | Number count of objects per redshift interval (Note: arbitrary normalization - renormalized inside) |
| nz_b | Number of bins in z_b and b |
| z_b | Redshifts for each redshift interval of b |
| b | Clustering bias in each redshift bin |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 633 of file ccl_cls.c.
References ccl_cl_tracer(), and ccl_number_counts_tracer.
Referenced by compare_cls(), compare_corr(), and main().
| void ccl_cl_workspace_free | ( | CCL_ClWorkspace * | w | ) |
Definition at line 59 of file ccl_cls.c.
References CCL_ClWorkspace::l_arr.
Referenced by compare_cls(), compare_corr(), main(), and test_angpow_precision().
| CCL_ClWorkspace* ccl_cl_workspace_new | ( | int | lmax, |
| int | l_limber, | ||
| double | l_logstep, | ||
| int | l_linstep, | ||
| int * | status | ||
| ) |
Definition at line 65 of file ccl_cls.c.
References CCL_ERROR_MEMORY, CCL_MAX, CCL_ClWorkspace::l_arr, CCL_ClWorkspace::l_limber, CCL_ClWorkspace::l_linstep, CCL_ClWorkspace::l_logstep, CCL_ClWorkspace::lmax, CCL_ClWorkspace::n_ls, and w.
Referenced by ccl_cl_workspace_new_limber(), and test_angpow_precision().
| CCL_ClWorkspace* ccl_cl_workspace_new_limber | ( | int | lmax, |
| double | l_logstep, | ||
| int | l_linstep, | ||
| int * | status | ||
| ) |
Definition at line 124 of file ccl_cls.c.
References ccl_cl_workspace_new().
Referenced by compare_cls(), compare_corr(), and main().
| double ccl_get_tracer_fa | ( | ccl_cosmology * | cosmo, |
| CCL_ClTracer * | clt, | ||
| double | a, | ||
| int | func_code, | ||
| int * | status | ||
| ) |
Method to return certain redshift or distance-dependent internal quantities for a given tracer.
| cosmo | Cosmological parameters |
| clt | ClTracer object |
| a | scale factor at which the function is to be evaluated |
| func_code | integer defining which internal function to evaluate. Choose between: ccl_trf_nz (redshift distribution), ccl_trf_bz (clustering bias), ccl_trf_sz (magnification bias), ccl_trf_rf (aligned fraction), ccl_trf_ba (alignment bias), ccl_trf_wL (weak lensing window function), ccl_trf_wM (magnification window function) |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 1048 of file ccl_cls.c.
References ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INCONSISTENT, ccl_spline_eval(), ccl_trf_ba, ccl_trf_bz, ccl_trf_nz, ccl_trf_rf, ccl_trf_sz, ccl_trf_wL, ccl_trf_wM, check_clt_fa_inconsistency(), CCL_ClTracer::spl_ba, CCL_ClTracer::spl_bz, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_rf, CCL_ClTracer::spl_sz, CCL_ClTracer::spl_wL, CCL_ClTracer::spl_wM, and x.
| int ccl_get_tracer_fas | ( | ccl_cosmology * | cosmo, |
| CCL_ClTracer * | clt, | ||
| int | na, | ||
| double * | a, | ||
| double * | fa, | ||
| int | func_code, | ||
| int * | status | ||
| ) |
Method to return certain redshift or distance-dependent internal quantities for a given tracer.
| cosmo | Cosmological parameters |
| clt | ClTracer object |
| na | number of points at which the function will be evaluated |
| a | na values of the scale factor at which the function is to be evaluated |
| fa | output array with na values that will store the interpolated function values |
| func_code | integer defining which internal function to evaluate. Choose between: ccl_trf_nz (redshift distribution), ccl_trf_bz (clustering bias), ccl_trf_sz (magnification bias), ccl_trf_rf (aligned fraction), ccl_trf_ba (alignment bias), ccl_trf_wL (weak lensing window function), ccl_trf_wM (magnification window function) |
| status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.c |
Definition at line 1091 of file ccl_cls.c.
References ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INCONSISTENT, ccl_spline_eval(), ccl_trf_ba, ccl_trf_bz, ccl_trf_nz, ccl_trf_rf, ccl_trf_sz, ccl_trf_wL, ccl_trf_wM, check_clt_fa_inconsistency(), CCL_ClTracer::spl_ba, CCL_ClTracer::spl_bz, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_rf, CCL_ClTracer::spl_sz, CCL_ClTracer::spl_wL, CCL_ClTracer::spl_wM, and x.
Referenced by main().
|
static |
Definition at line 1032 of file ccl_cls.c.
References ccl_cmb_lensing_tracer, ccl_number_counts_tracer, ccl_trf_ba, ccl_trf_bz, ccl_trf_nz, ccl_trf_rf, ccl_trf_sz, ccl_trf_wL, ccl_trf_wM, ccl_weak_lensing_tracer, CCL_ClTracer::has_intrinsic_alignment, CCL_ClTracer::has_magnification, and CCL_ClTracer::tracer_type.
Referenced by ccl_get_tracer_fa(), and ccl_get_tracer_fas().
Definition at line 823 of file ccl_cls.c.
References ccl_nonlin_matter_power(), ccl_scale_factor_of_chi(), IntClPar::clt1, IntClPar::clt2, IntClPar::cosmo, IntClPar::il, CCL_ClWorkspace::l_arr, p, pow(), IntClPar::status, transfer_wrap(), and IntClPar::w.
Referenced by ccl_angular_cl_native().
|
static |
Definition at line 515 of file ccl_cls.c.
References ccl_cmb_lensing_tracer, ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INCONSISTENT, CCL_ERROR_MEMORY, ccl_h_over_h0(), ccl_number_counts_tracer, ccl_weak_lensing_tracer, CCL_ClTracer::chi_source, CCL_ClTracer::chimax, CCL_ClTracer::chimin, CLIGHT_HMPC, clt_nc_init(), clt_wl_init(), ccl_parameters::h, ccl_parameters::Omega_m, ccl_cosmology::params, CCL_ClTracer::prefac_lensing, and CCL_ClTracer::tracer_type.
Referenced by ccl_cl_tracer().
|
static |
Definition at line 477 of file ccl_cls.c.
References ccl_cosmology_set_status_message(), CCL_ERROR_SPLINE, ccl_spline_init(), and CCL_ClTracer::spl_ba.
Referenced by clt_wl_init().
|
static |
Definition at line 320 of file ccl_cls.c.
References ccl_cosmology_set_status_message(), CCL_ERROR_SPLINE, ccl_spline_init(), and CCL_ClTracer::spl_bz.
Referenced by clt_nc_init().
|
static |
Definition at line 261 of file ccl_cls.c.
References ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INTEG, CCL_ERROR_MEMORY, CCL_ERROR_SPLINE, CCL_FRAC_RELEVANT, ccl_gsl, ccl_raise_gsl_warning(), ccl_spline_free(), ccl_spline_init(), CCL_ClTracer::chimax, CCL_ClTracer::chimin, get_support_interval(), ccl_gsl_params::INTEGRATION_EPSREL, ccl_gsl_params::INTEGRATION_GAUSS_KRONROD_POINTS, ccl_gsl_params::N_ITERATION, speval_bis(), CCL_ClTracer::spl_nz, w, CCL_ClTracer::zmax, and CCL_ClTracer::zmin.
Referenced by clt_nc_init(), and clt_wl_init().
|
static |
Definition at line 466 of file ccl_cls.c.
References ccl_cosmology_set_status_message(), CCL_ERROR_SPLINE, ccl_spline_init(), and CCL_ClTracer::spl_rf.
Referenced by clt_wl_init().
|
static |
Definition at line 414 of file ccl_cls.c.
References ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INTEG, CCL_ERROR_LINSPACE, CCL_ERROR_MEMORY, CCL_ERROR_SPLINE, ccl_linear_spacing(), ccl_spline_init(), CCL_ClTracer::chimin, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_wL, window_lensing(), x, SplPar::xf, and CCL_ClTracer::zmin.
Referenced by clt_wl_init().
|
static |
Definition at line 331 of file ccl_cls.c.
References ccl_comoving_radial_distance(), ccl_cosmology_set_status_message(), CCL_ERROR_INTEG, CCL_ERROR_LINSPACE, CCL_ERROR_MEMORY, CCL_ERROR_SPLINE, ccl_linear_spacing(), ccl_spline_init(), CCL_ClTracer::chimin, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_sz, CCL_ClTracer::spl_wM, window_magnification(), x, SplPar::xf, and CCL_ClTracer::zmin.
Referenced by clt_nc_init().
|
static |
Definition at line 393 of file ccl_cls.c.
References ccl_cosmology_set_status_message(), CCL_ERROR_NOT_IMPLEMENTED, clt_init_bz(), clt_init_nz(), clt_init_wM(), CCL_ClTracer::has_magnification, CCL_ClTracer::has_rsd, ccl_parameters::N_nu_mass, and ccl_cosmology::params.
Referenced by cl_tracer().
|
static |
Definition at line 488 of file ccl_cls.c.
References clt_init_ba(), clt_init_nz(), clt_init_rf(), clt_init_wL(), and CCL_ClTracer::has_intrinsic_alignment.
Referenced by cl_tracer().
|
static |
Definition at line 661 of file ccl_cls.c.
References ccl_h_over_h0(), ccl_spline_eval(), CLIGHT_HMPC, ccl_test_distances::h, ccl_parameters::h, ccl_cosmology::params, CCL_ClTracer::spl_bz, CCL_ClTracer::spl_nz, and z.
Referenced by transfer_nc().
|
static |
Definition at line 736 of file ccl_cls.c.
References ccl_h_over_h0(), ccl_scale_factor_of_chi(), ccl_spline_eval(), CLIGHT_HMPC, ccl_test_distances::h, ccl_parameters::h, ccl_cosmology::params, CCL_ClTracer::spl_ba, CCL_ClTracer::spl_nz, CCL_ClTracer::spl_rf, and z.
Referenced by transfer_wl().
|
static |
Definition at line 726 of file ccl_cls.c.
References ccl_spline_eval(), CCL_ClTracer::prefac_lensing, and CCL_ClTracer::spl_wL.
Referenced by transfer_wl().
|
static |
Definition at line 681 of file ccl_cls.c.
References ccl_spline_eval(), and CCL_ClTracer::spl_wM.
Referenced by transfer_nc().
|
static |
Definition at line 671 of file ccl_cls.c.
References ccl_growth_rate(), ccl_h_over_h0(), ccl_spline_eval(), CLIGHT_HMPC, ccl_test_distances::h, ccl_parameters::h, ccl_cosmology::params, CCL_ClTracer::spl_nz, and z.
Referenced by transfer_nc().
|
static |
Definition at line 847 of file ccl_cls.c.
References ccl_number_counts_tracer, ccl_splines, CCL_ClTracer::chimax, CCL_ClTracer::chimin, CCL_ClTracer::has_magnification, ccl_spline_params::K_MAX, ccl_spline_params::K_MIN, and CCL_ClTracer::tracer_type.
Referenced by ccl_angular_cl_native().
|
static |
Definition at line 202 of file ccl_cls.c.
References ccl_h_over_h0(), ccl_scale_factor_of_chi(), ccl_sinn(), ccl_spline_eval(), IntMagPar::chi, CLIGHT_HMPC, IntMagPar::cosmo, ccl_test_distances::h, ccl_parameters::h, p, ccl_cosmology::params, IntMagPar::spl_pz, IntMagPar::spl_sz, IntMagPar::status, mk_bins::sz, and z.
Referenced by window_magnification().
Definition at line 138 of file ccl_cls.c.
References ccl_h_over_h0(), ccl_scale_factor_of_chi(), ccl_sinn(), ccl_spline_eval(), IntLensPar::chi, CLIGHT_HMPC, IntLensPar::cosmo, ccl_test_distances::h, ccl_parameters::h, p, ccl_cosmology::params, IntLensPar::spl_pz, IntLensPar::status, and z.
Referenced by window_lensing().
Definition at line 53 of file ccl_cls.c.
References ccl_spline_eval().
Referenced by clt_init_nz().
|
static |
Definition at line 776 of file ccl_cls.c.
References ccl_scale_factor_of_chi(), CCL_ClTracer::chi_source, CCL_ClTracer::prefac_lensing, and w.
Referenced by transfer_wrap().
|
static |
Definition at line 697 of file ccl_cls.c.
References ccl_nonlin_matter_power(), ccl_scale_factor_of_chi(), f_dens(), f_mag(), f_rsd(), CCL_ClTracer::has_magnification, CCL_ClTracer::has_rsd, CCL_ClTracer::prefac_lensing, and sqrt().
Referenced by transfer_wrap().
|
static |
Definition at line 758 of file ccl_cls.c.
References ccl_scale_factor_of_chi(), f_IA_NLA(), f_lensing(), CCL_ClTracer::has_intrinsic_alignment, and sqrt().
Referenced by transfer_wrap().
|
static |
Definition at line 795 of file ccl_cls.c.
References ccl_cmb_lensing_tracer, ccl_number_counts_tracer, ccl_weak_lensing_tracer, CCL_ClWorkspace::l_arr, pow(), CCL_ClTracer::tracer_type, transfer_cmblens(), transfer_nc(), and transfer_wl().
Referenced by cl_integrand().
|
static |
Definition at line 159 of file ccl_cls.c.
References ccl_gsl, ccl_raise_gsl_warning(), IntLensPar::chi, cl_cmbl_bm::cosmo, IntLensPar::cosmo, integrand_wl(), ccl_gsl_params::INTEGRATION_EPSREL, ccl_gsl_params::INTEGRATION_GAUSS_KRONROD_POINTS, ccl_gsl_params::N_ITERATION, IntLensPar::spl_pz, IntLensPar::status, and w.
Referenced by clt_init_wL().
|
static |
Definition at line 225 of file ccl_cls.c.
References ccl_gsl, ccl_raise_gsl_warning(), IntMagPar::chi, cl_cmbl_bm::cosmo, IntMagPar::cosmo, integrand_mag(), ccl_gsl_params::INTEGRATION_EPSREL, ccl_gsl_params::INTEGRATION_GAUSS_KRONROD_POINTS, ccl_gsl_params::N_ITERATION, IntMagPar::spl_pz, IntMagPar::spl_sz, IntMagPar::status, and w.
Referenced by clt_init_wM().