|
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_matrix.h>#include <gsl/gsl_linalg.h>#include <gsl/gsl_spline.h>#include <gsl/gsl_errno.h>#include "ccl.h"#include "ccl_emu17_params.h"#include "ccl_emu17.h"
Go to the source code of this file.
Functions | |
| static void | emuInit () |
| void | ccl_pkemu (double *xstar, double **ystar, int *status, ccl_cosmology *cosmo) |
Variables | |
| static int | m [2] = {111, 36} |
| static int | neta =2808 |
| static int | peta [2] ={7, 28} |
| static int | rs =8 |
| static int | p =8 |
| static double | KrigBasis [2][28][111] |
| static double | beta [2][28][8] |
| static double | w [2][28][111] |
| static double | lamws [2][28] |
| static double | lamz [2][28] |
| void ccl_pkemu | ( | double * | xstarin, |
| double ** | Pkemu, | ||
| int * | status, | ||
| ccl_cosmology * | cosmo | ||
| ) |
Emulator power spectrum Obtain P(k,z) [Mpc^3] for a given set of input parameters.
| xstarin | vector of input parameters for the emulator, including redshift. |
| Pkemu | output P(k,z) power spectrum |
| status | Status flag. 0 if there are no errors, nonzero otherwise. |
| cosmo | Cosmology parameters and configurations (only relevant for storing status) |
Definition at line 141 of file ccl_emu17.c.
References beta, ccl_cosmology_set_status_message(), CCL_ERROR_EMULATOR_BOUND, ccl_raise_exception(), emuInit(), K, KrigBasis, lamz, m, M_PI, mean, mode, neta, NK_EMU, p, peta, pow(), rs, sd, ccl_cosmology::status_message, x, xmax, xmin, xrange, and z.
Referenced by ccl_cosmology_compute_power_emu().
|
static |
Definition at line 38 of file ccl_emu17.c.
References beta, beta1, beta2, KrigBasis, cl_cmbl_bm::l, lamws, lamws1, lamws2, lamz, lamz1, lamz2, m, p, peta, pow(), w, w1, w2, and x.
Referenced by ccl_pkemu().
|
static |
Definition at line 32 of file ccl_emu17.c.
Referenced by ccl_cosmology_compute_hmfparams(), ccl_create_Smail_dNdz_info(), ccl_j_bessel(), ccl_pkemu(), dNdz_smail(), emuInit(), main(), and user_pz_probability().
|
static |
Definition at line 29 of file ccl_emu17.c.
Referenced by ccl_pkemu(), and emuInit().
|
static |
Definition at line 34 of file ccl_emu17.c.
Referenced by emuInit().
|
static |
Definition at line 35 of file ccl_emu17.c.
Referenced by ccl_pkemu(), and emuInit().
|
static |
Definition at line 25 of file ccl_emu17.c.
Referenced by __ctest_spacing_tests_linear_spacing_simple_run(), __ctest_spacing_tests_linlog_spacing_simple_run(), __ctest_spacing_tests_log_spacing_simple_run(), ccl_cosmology_compute_sigma(), ccl_pkemu(), compare_sigmam(), compute_u_coefficients(), emuInit(), fht(), Extrap_Pk< T, N >::fit_lin(), Extrap_Pk< T, N >::fit_power_law(), anonymous_namespace{mod_frozen_potential.cpp}::force_short(), get_rho_from_par(), get_vel_from_par(), nlohmann::detail::dtoa_impl::grisu2_digit_gen(), MultiGridSolver< NDIM, T >::prolonge_up_array(), and nlohmann::detail::exception::what().
|
static |
Definition at line 25 of file ccl_emu17.c.
Referenced by ccl_pkemu().
|
static |
Definition at line 25 of file ccl_emu17.c.
Referenced by a_of_chi(), ccl_norm_integrand(), ccl_photoz(), ccl_pkemu(), cl_integrand(), compute_chi(), Catch::Detail::convertUnstreamable(), corr_bessel_integrand(), dfzero(), emuInit(), anonymous_namespace{mod_frozen_potential.cpp}::force_short(), nlohmann::detail::from_json(), gamma_fftlog(), integrand_mag(), integrand_wl(), integrand_wm(), main(), one_halo_integrand(), remove_all_files(), two_halo_integrand(), user_dNdz(), user_pz_probability(), and wt_integrand().
|
static |
Definition at line 25 of file ccl_emu17.c.
Referenced by ccl_pkemu(), and emuInit().
|
static |
Definition at line 25 of file ccl_emu17.c.
Referenced by ccl_pkemu(), App_Opt::init(), and u_nfw_c().
|
static |
Definition at line 33 of file ccl_emu17.c.
Referenced by assign_from(), assign_to(), ccl_angular_cl_native(), ccl_cl_workspace_new(), ccl_tracer_corr_bessel(), clt_init_nz(), compare_cls(), compute_wt_single(), nlohmann::detail::parse_error::create(), nlohmann::detail::invalid_iterator::create(), nlohmann::detail::type_error::create(), nlohmann::detail::out_of_range::create(), nlohmann::detail::other_error::create(), emuInit(), Extrap_Pk< T, N >::fit_lin(), Extrap_Pk< T, N >::fit_power_law(), nlohmann::detail::dtoa_impl::grisu2(), init_params(), anonymous_namespace{core_power.cpp}::Integr_obj::Integr_obj(), lngamma_4(), main(), one_halo_integral(), anonymous_namespace{core_power.cpp}::Integr_obj_qag::operator()(), anonymous_namespace{core_power.cpp}::Integr_obj_qagiu::operator()(), anonymous_namespace{core_power.cpp}::Integr_obj_qawo::operator()(), anonymous_namespace{core_power.cpp}::Integr_obj_qawf::operator()(), anonymous_namespace{core_power.cpp}::sigma_integrand_G(), sigmaR_integrand(), sigmaV_integrand(), spectra(), transfer_cmblens(), transfer_lensing(), transfer_magnification(), two_halo_integral(), w_tophat(), wgh_sch< 1 >(), wgh_sch< 2 >(), window_lensing(), window_magnification(), and anonymous_namespace{core_power.cpp}::Integr_obj::~Integr_obj().