|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
: various parameter classes definitions More...
#include <omp.h>#include "config.h"#include "params.hpp"#include "core_cmd.h"#include "core_out.h"#include "core_mesh.h"#include "core_power.h"#include <ccl_error.h>#include <json.hpp>#include <iomanip>
Go to the source code of this file.
Namespaces | |
| anonymous_namespace{params.cpp} | |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| template<typename T , typename U > | |
| T | anonymous_namespace{params.cpp}::find_value (const std::map< T, U > &map, const U &value) |
| size_t | anonymous_namespace{params.cpp}::get_seed () |
| void | to_json (json &j, const Cosmo_Param &cosmo) |
| < end of anonymous namespace (private definitions) More... | |
| void | from_json (const json &j, Cosmo_Param &cosmo) |
| void | to_json (json &j, const Box_Opt &box_opt) |
| void | from_json (const json &j, Box_Opt &box_opt) |
| void | to_json (json &j, const Integ_Opt &integ_opt) |
| void | from_json (const json &j, Integ_Opt &integ_opt) |
| void | to_json (json &j, const App_Opt &app_opt) |
| void | from_json (const json &j, App_Opt &app_op) |
| void | to_json (json &j, const Run_Opt &run_opt) |
| void | from_json (const json &j, Run_Opt &run_opt) |
| void | to_json (json &j, const Out_Opt &out_opt) |
| void | from_json (const json &j, Out_Opt &out_opt) |
| void | to_json (json &j, const Chi_Opt &chi_opt) |
| void | from_json (const json &j, Chi_Opt &chi_opt) |
| void | to_json (json &j, const Test_Opt &test_opt) |
| void | from_json (const json &j, Test_Opt &test_opt) |
| static ccl_cosmology * | ccl_cosmology_create_flat_lcdm (double Omega_c, double Omega_b, double h, double norm_pk, double n_s, ccl_configuration config, int *status) |
Variables | |
| const std::map< std::string, transfer_function_t > | anonymous_namespace{params.cpp}::transfer_function_method |
| const std::map< std::string, matter_power_spectrum_t > | anonymous_namespace{params.cpp}::matter_power_spectrum_method |
| const std::map< std::string, mass_function_t > | anonymous_namespace{params.cpp}::mass_function_method |
| const std::map< std::string, baryons_power_spectrum_t > | anonymous_namespace{params.cpp}::baryons_power_spectrum_method |
: various parameter classes definitions
Definition in file params.cpp.
| using json = nlohmann::json |
Definition at line 17 of file params.cpp.
|
static |
Definition at line 280 of file params.cpp.
References ccl_cosmology_create(), ccl_mnu_sum, ccl_parameters_create(), cl_cmbl_bm::cosmo, ccl_test_distances::mnu, ccl_test_distances::Neff, and halomod_bm::params.
Referenced by Cosmo_Param::init().
| void from_json | ( | const json & | j, |
| Cosmo_Param & | cosmo | ||
| ) |
Definition at line 109 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), anonymous_namespace{params.cpp}::baryons_power_spectrum_method, ccl_configuration::baryons_power_spectrum_method, ccl_boltzmann_class, ccl_halofit, ccl_nobaryons, ccl_tinker10, Cosmo_Param::config, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Cosmo_Param::h, Cosmo_Param::H0, Cosmo_Param::init(), Cosmo_Param::k2_G, anonymous_namespace{params.cpp}::mass_function_method, ccl_configuration::mass_function_method, anonymous_namespace{params.cpp}::matter_power_spectrum_method, ccl_configuration::matter_power_spectrum_method, Cosmo_Param::ns, Cosmo_Param::Omega_b, Cosmo_Param::Omega_m, Cosmo_Param::sigma8, anonymous_namespace{params.cpp}::transfer_function_method, and ccl_configuration::transfer_function_method.
Referenced by Sim_Param::Sim_Param().
Definition at line 159 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), Box_Opt::box_size, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Box_Opt::mesh_num, Box_Opt::mesh_num_pwr, and Box_Opt::par_num_1d.
Definition at line 176 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), Integ_Opt::db, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Integ_Opt::init(), Integ_Opt::z_in, and Integ_Opt::z_out.
Definition at line 193 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), App_Opt::nu, App_Opt::nu_dim, and App_Opt::rs.
Definition at line 210 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Run_Opt::init(), Run_Opt::nt, Run_Opt::phase, and Run_Opt::seed.
Definition at line 227 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), Out_Opt::bins_per_decade, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Out_Opt::out_dir, and Out_Opt::points_per_10_Mpc.
Definition at line 244 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), Chi_Opt::beta, nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Chi_Opt::linear, Chi_Opt::n, and Chi_Opt::phi.
Definition at line 266 of file params.cpp.
References nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::at(), nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer >::get(), Test_Opt::N_grid, Test_Opt::N_min, Test_Opt::R_sphere, Test_Opt::rho_b, and Test_Opt::rho_sphere.
| void to_json | ( | json & | j, |
| const Cosmo_Param & | cosmo | ||
| ) |
< end of anonymous namespace (private definitions)
PUBLIC FUNCTIONS DEFINITIONS *
Definition at line 91 of file params.cpp.
References anonymous_namespace{params.cpp}::baryons_power_spectrum_method, ccl_configuration::baryons_power_spectrum_method, Cosmo_Param::config, anonymous_namespace{params.cpp}::find_value(), Cosmo_Param::h, Cosmo_Param::k2_G, anonymous_namespace{params.cpp}::mass_function_method, ccl_configuration::mass_function_method, anonymous_namespace{params.cpp}::matter_power_spectrum_method, ccl_configuration::matter_power_spectrum_method, Cosmo_Param::ns, Cosmo_Param::Omega_b, Cosmo_Param::Omega_c(), Cosmo_Param::Omega_m, Cosmo_Param::sigma8, anonymous_namespace{params.cpp}::transfer_function_method, and ccl_configuration::transfer_function_method.
Definition at line 147 of file params.cpp.
References Box_Opt::box_size, Box_Opt::mass_p_log, Box_Opt::mesh_num, Box_Opt::mesh_num_pwr, Box_Opt::Ng, and Box_Opt::par_num_1d.
Definition at line 167 of file params.cpp.
References Integ_Opt::db, Integ_Opt::z_in, and Integ_Opt::z_out.
Definition at line 200 of file params.cpp.
References Run_Opt::nt, Run_Opt::phase, PROJECT_VERSION, and Run_Opt::seed.
Definition at line 218 of file params.cpp.
References Out_Opt::bins_per_decade, Out_Opt::out_dir, and Out_Opt::points_per_10_Mpc.
Definition at line 234 of file params.cpp.
References Chi_Opt::beta, Chi_Opt::linear, Chi_Opt::n, and Chi_Opt::phi.
Definition at line 255 of file params.cpp.
References Test_Opt::N_grid, Test_Opt::N_min, Test_Opt::R_sphere, Test_Opt::rho_b, and Test_Opt::rho_sphere.