|
Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
|
#include "common.h"
Go to the source code of this file.
Functions | |
| void * | dam_malloc (size_t size) |
| void * | dam_calloc (size_t nmemb, size_t size) |
| FILE * | dam_fopen (const char *path, const char *mode) |
| int | dam_linecount (FILE *f) |
| void | dam_report_error (int level, char *fmt,...) |
| SplPar * | spline_init (int n, double *x, double *y, double y0, double yf) |
| double | spline_eval (double x, SplPar *spl) |
| void | spline_free (SplPar *spl) |
| RunParams * | param_new (void) |
| void | param_free (RunParams *par) |
| void* dam_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
| FILE* dam_fopen | ( | const char * | path, |
| const char * | mode | ||
| ) |
Definition at line 20 of file common.c.
References dam_report_error().
Referenced by init_params(), read_parameter_file(), window_lensing(), write_cl_single(), and write_wt_single().
| int dam_linecount | ( | FILE * | f | ) |
Definition at line 29 of file common.c.
Referenced by init_params(), and read_parameter_file().
| void* dam_malloc | ( | size_t | size | ) |
Definition at line 3 of file common.c.
References dam_report_error().
Referenced by compute_w_theta(), init_params(), param_new(), and spline_init().
| void dam_report_error | ( | int | level, |
| char * | fmt, | ||
| ... | |||
| ) |
Definition at line 39 of file common.c.
References run_tests::args.
Referenced by dam_calloc(), dam_fopen(), dam_malloc(), init_params(), read_parameter_file(), and transfer_wrap().
| void param_free | ( | RunParams * | par | ) |
Definition at line 162 of file common.c.
References RunParams::aofchi, RunParams::bias, RunParams::cl_cc, RunParams::cl_ci, RunParams::cl_d1l2, RunParams::cl_d2l1, RunParams::cl_dc, RunParams::cl_dd, RunParams::cl_di, RunParams::cl_ii, RunParams::cl_lc, RunParams::cl_li, RunParams::cl_ll, RunParams::cpar, RunParams::do_cmblens, RunParams::do_isw, RunParams::do_nc, RunParams::do_shear, RunParams::do_w_theta, RunParams::fgofchi, RunParams::gfofchi, RunParams::has_bg, RunParams::has_dens, RunParams::has_lensing, RunParams::hofchi, RunParams::sbias, spline_free(), RunParams::wind_0, RunParams::wind_L, RunParams::wind_M, RunParams::wt_ci, RunParams::wt_d1l2, RunParams::wt_d2l1, RunParams::wt_dc, RunParams::wt_dd, RunParams::wt_di, RunParams::wt_lc, RunParams::wt_li, RunParams::wt_ll_mm, RunParams::wt_ll_pp, and RunParams::zofchi.
Referenced by main().
| RunParams* param_new | ( | void | ) |
Definition at line 88 of file common.c.
References RunParams::aofchi, RunParams::bias, RunParams::chi_horizon, RunParams::chi_LSS, RunParams::cl_cc, RunParams::cl_ci, RunParams::cl_d1l2, RunParams::cl_d2l1, RunParams::cl_dc, RunParams::cl_dd, RunParams::cl_di, RunParams::cl_ii, RunParams::cl_lc, RunParams::cl_li, RunParams::cl_ll, RunParams::cpar, dam_malloc(), RunParams::dchi, RunParams::do_cmblens, RunParams::do_isw, RunParams::do_nc, RunParams::do_shear, RunParams::do_w_theta, RunParams::fgofchi, RunParams::fname_bias, RunParams::fname_pk, RunParams::fname_sbias, RunParams::fname_window, RunParams::gfofchi, RunParams::has_bg, RunParams::has_dens, RunParams::has_lensing, RunParams::has_rsd, RunParams::hofchi, RunParams::lmax, RunParams::n_th, RunParams::n_th_logint, RunParams::ns, RunParams::ob, RunParams::ol, RunParams::om, RunParams::prefac_lensing, RunParams::prefix_out, RunParams::s8, RunParams::sbias, RunParams::th_max, RunParams::th_min, RunParams::w0, RunParams::wa, RunParams::wind_0, RunParams::wind_L, RunParams::wind_M, RunParams::wt_cc, RunParams::wt_ci, RunParams::wt_d1l2, RunParams::wt_d2l1, RunParams::wt_dc, RunParams::wt_dd, RunParams::wt_di, RunParams::wt_ii, RunParams::wt_lc, RunParams::wt_li, RunParams::wt_ll_mm, RunParams::wt_ll_pp, and RunParams::zofchi.
Referenced by init_params().
Definition at line 71 of file common.c.
References SplPar::intacc, SplPar::spline, SplPar::xf, SplPar::y0, and SplPar::yf.
Referenced by integrand_wl(), integrand_wm(), speval_bis(), transfer_cmblens(), transfer_dens(), transfer_isw(), transfer_lensing(), transfer_magnification(), transfer_rsd(), and window_lensing().
| void spline_free | ( | SplPar * | spl | ) |
Definition at line 81 of file common.c.
References SplPar::intacc, and SplPar::spline.
Referenced by compute_wt_single(), init_params(), and param_free().
Definition at line 57 of file common.c.
References dam_malloc(), SplPar::intacc, SplPar::spline, SplPar::x0, SplPar::xf, SplPar::y0, and SplPar::yf.
Referenced by compute_wt_single(), and init_params().