|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
#include "ccl.h"#include "ccl_halomod.h"#include "ctest.h"#include <stdio.h>#include <math.h>#include <string.h>
Go to the source code of this file.
Classes | |
| struct | halomod_data |
Macros | |
| #define | HALOMOD_TOLERANCE 1E-3 |
| #define | NUMK 256 |
Functions | |
| static void | read_halomod_test_file (double k[3][2][256], double Pk[3][2][256]) |
| void | __attribute__ ((weak)) |
| static void | compare_halomod (int model, struct halomod_data *data) |
| void | __ctest_halomod_model_1_run (struct halomod_data *data) |
| void | __ctest_halomod_model_2_run (struct halomod_data *data) |
| void | __ctest_halomod_model_3_run (struct halomod_data *data) |
Variables | |
| static struct halomod_data | __ctest_halomod_data |
| #define HALOMOD_TOLERANCE 1E-3 |
Definition at line 9 of file ccl_test_halomod.c.
Referenced by compare_halomod().
| #define NUMK 256 |
Definition at line 10 of file ccl_test_halomod.c.
Referenced by compare_halomod(), and read_halomod_test_file().
| void __attribute__ | ( | (weak) | ) |
Definition at line 80 of file ccl_test_halomod.c.
References ccl_mnu_sum, ccl_test_distances::h, ccl_test_distances::n_s, ccl_test_distances::Omega_b, ccl_test_distances::Omega_c, and read_halomod_test_file().
| void __ctest_halomod_model_1_run | ( | struct halomod_data * | data | ) |
Definition at line 169 of file ccl_test_halomod.c.
References compare_halomod().
| void __ctest_halomod_model_2_run | ( | struct halomod_data * | data | ) |
Definition at line 174 of file ccl_test_halomod.c.
References compare_halomod().
| void __ctest_halomod_model_3_run | ( | struct halomod_data * | data | ) |
Definition at line 179 of file ccl_test_halomod.c.
References compare_halomod().
|
static |
Definition at line 113 of file ccl_test_halomod.c.
References ASSERT_DBL_NEAR_TOL, ASSERT_NOT_NULL, ccl_cosmology_create(), ccl_duffy2008, ccl_eisenstein_hu, ccl_halomodel_matter_power(), ccl_parameters_create(), ccl_shethtormen, cl_cmbl_bm::cosmo, default_config, halomod_data::h, ccl_parameters::h, ccl_configuration::halo_concentration_method, HALOMOD_TOLERANCE, halomod_data::k, ccl_configuration::mass_function_method, halomod_data::mnu, halomod_data::mnu_type, halomod_data::n_s, halomod_data::Neff, NUMK, halomod_data::Omega_b, halomod_data::Omega_c, halomod_data::Omega_k, halomod_bm::params, halomod_data::Pk, pow(), halomod_data::sigma_8, ccl_configuration::transfer_function_method, halomod_data::w_0, and halomod_data::w_a.
Referenced by __ctest_halomod_model_1_run(), __ctest_halomod_model_2_run(), and __ctest_halomod_model_3_run().
Definition at line 35 of file ccl_test_halomod.c.
References ASSERT_EQUAL, ASSERT_NOT_NULL, Catch::Matchers::Vector::Detail::count(), and NUMK.
Referenced by __attribute__().
|
static |
Definition at line 169 of file ccl_test_halomod.c.