|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
#include <gsl/gsl_spline.h>

Go to the source code of this file.
Classes | |
| struct | SplPar |
Macros | |
| #define | CCL_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | CCL_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
Functions | |
| CCL_BEGIN_DECLS double * | ccl_linear_spacing (double xmin, double xmax, int N) |
| double * | ccl_linlog_spacing (double xminlog, double xmin, double xmax, int Nlin, int Nlog) |
| double * | ccl_log_spacing (double xmin, double xmax, int N) |
| double | ccl_j_bessel (int l, double x) |
| SplPar * | ccl_spline_init (int n, double *x, double *y, double y0, double yf) |
| double | ccl_spline_eval (double x, SplPar *spl) |
| void | ccl_spline_free (SplPar *spl) |
| #define CCL_MAX | ( | a, | |
| b | |||
| ) | (((a) > (b)) ? (a) : (b)) |
Definition at line 8 of file ccl_utils.h.
Referenced by ccl_cl_workspace_new().
| #define CCL_MIN | ( | a, | |
| b | |||
| ) | (((a) < (b)) ? (a) : (b)) |
Definition at line 7 of file ccl_utils.h.
Definition at line 190 of file ccl_utils.c.
References beta, beta2, CCL_GAMMA1, CCL_GAMMA2, CCL_ROOTPI12, M_PI, pow(), sqrt(), and x.
Referenced by __ctest_spherical_bessel_tests_compare_gsl_run().
| CCL_BEGIN_DECLS double* ccl_linear_spacing | ( | double | xmin, |
| double | xmax, | ||
| int | N | ||
| ) |
Compute bin edges of N-1 linearly spaced bins on the interval [xmin,xmax]
| xmin | minimum value of spacing |
| xmax | maximum value of spacing |
| N | number of bins plus one (number of bin edges) |
Definition at line 14 of file ccl_utils.c.
References CCL_ERROR_MEMORY, ccl_raise_warning(), x, xmax, and xmin.
Referenced by __ctest_spacing_tests_linear_spacing_simple_run(), calculate_nu_phasespace_spline(), ccl_cosmology_compute_distances(), ccl_cosmology_compute_power_emu(), ccl_cosmology_compute_sigma(), clt_init_wL(), and clt_init_wM().
Compute bin edges of N-1 logarithmically and then linearly spaced bins on the interval [xmin,xmax]
| xminlog | minimum value of spacing |
| xmin | value when logarithmical ends and linear spacing begins |
| xmax | maximum value of spacing |
| Nlin | number of linear bins plus one (number of bin edges) |
| Nlog | number of logarithmic bins plus one (number of bin edges) |
Definition at line 43 of file ccl_utils.c.
References CCL_ERROR_LINLOGSPACE, CCL_ERROR_MEMORY, ccl_raise_warning(), x, xmax, and xmin.
Referenced by __ctest_spacing_tests_linlog_spacing_simple_run(), ccl_cosmology_compute_distances(), ccl_cosmology_compute_growth(), ccl_cosmology_compute_power_bbks(), ccl_cosmology_compute_power_class(), ccl_cosmology_compute_power_eh(), and ccl_cosmology_compute_power_emu().
Compute bin edges of N-1 logarithmically spaced bins on the interval [xmin,xmax]
| xmin | minimum value of spacing |
| xmax | maximum value of spacing |
| N | number of bins plus one (number of bin edges) |
Definition at line 102 of file ccl_utils.c.
References CCL_ERROR_LOGSPACE, CCL_ERROR_MEMORY, ccl_raise_warning(), x, xmax, and xmin.
Referenced by __ctest_spacing_tests_log_spacing_simple_run(), ccl_correlation_3d(), ccl_cosmology_compute_power_bbks(), ccl_cosmology_compute_power_class(), ccl_cosmology_compute_power_eh(), ccl_cosmology_compute_power_emu(), ccl_tracer_corr_fftlog(), and main().
Definition at line 170 of file ccl_utils.c.
References ccl_raise_gsl_warning(), SplPar::intacc, SplPar::spline, SplPar::xf, SplPar::y0, and SplPar::yf.
Referenced by ccl_angular_cls(), ccl_correlation_3d(), ccl_get_tracer_fa(), ccl_get_tracer_fas(), ccl_tracer_corr_fftlog(), ccl_tracer_corr_legendre(), corr_bessel_integrand(), f_dens(), f_IA_NLA(), f_lensing(), f_mag(), f_rsd(), integrand_mag(), integrand_wl(), and speval_bis().
| void ccl_spline_free | ( | SplPar * | spl | ) |
Definition at line 316 of file ccl_utils.c.
References SplPar::intacc, and SplPar::spline.
Referenced by ccl_angular_cls(), ccl_cl_tracer_free(), ccl_correlation_3d(), ccl_tracer_corr_bessel(), ccl_tracer_corr_fftlog(), ccl_tracer_corr_legendre(), and clt_init_nz().
Definition at line 146 of file ccl_utils.c.
References SplPar::intacc, SplPar::spline, SplPar::x0, SplPar::xf, SplPar::y0, and SplPar::yf.
Referenced by ccl_angular_cls(), ccl_correlation_3d(), ccl_tracer_corr_bessel(), ccl_tracer_corr_fftlog(), ccl_tracer_corr_legendre(), clt_init_ba(), clt_init_bz(), clt_init_nz(), clt_init_rf(), clt_init_wL(), and clt_init_wM().