|
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 <gsl/gsl_errno.h>#include "ccl.h"
Go to the source code of this file.
Macros | |
| #define | CCL_GAMMA1 2.6789385347077476336556 |
| #define | CCL_GAMMA2 1.3541179394264004169452 |
| #define | CCL_ROOTPI12 21.269446210866192327578 |
Functions | |
| double * | ccl_linear_spacing (double xmin, double xmax, int N) |
| double * | ccl_linlog_spacing (double xminlog, double xmin, double xmax, int Nlog, int Nlin) |
| double * | ccl_log_spacing (double xmin, double xmax, int N) |
| SplPar * | ccl_spline_init (int n, double *x, double *y, double y0, double yf) |
| double | ccl_spline_eval (double x, SplPar *spl) |
| double | ccl_j_bessel (int l, double x) |
| void | ccl_spline_free (SplPar *spl) |
| #define CCL_GAMMA1 2.6789385347077476336556 |
Definition at line 187 of file ccl_utils.c.
Referenced by ccl_j_bessel().
| #define CCL_GAMMA2 1.3541179394264004169452 |
Definition at line 188 of file ccl_utils.c.
Referenced by ccl_j_bessel().
| #define CCL_ROOTPI12 21.269446210866192327578 |
Definition at line 189 of file ccl_utils.c.
Referenced by ccl_j_bessel().
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().
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().