CCL
ccl_constants.h
Go to the documentation of this file.
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4 
5 #pragma once
6 
7 #include "gsl/gsl_const_mksa.h"
8 
9 //Spline types
10 #define A_SPLINE_TYPE gsl_interp_akima
11 #define K_SPLINE_TYPE gsl_interp_akima
12 #define L_SPLINE_TYPE gsl_interp_akima
13 #define M_SPLINE_TYPE gsl_interp_akima
14 #define D_SPLINE_TYPE gsl_interp_akima
15 #define PNL_SPLINE_TYPE gsl_interp2d_bicubic
16 #define PLIN_SPLINE_TYPE gsl_interp2d_bicubic
17 #define CORR_SPLINE_TYPE gsl_interp_akima
18 
21 #ifndef M_PI
22 
25 #define M_PI 3.14159265358979323846
26 #endif
27 
31 #define K_PIVOT 0.05
32 
36 #define CLIGHT_HMPC 2997.92458 //H0^-1 in Mpc/h
37 
41 //#define GNEWT 6.6738e-11 //(from PDG 2013) in m^3/Kg/s^2
42 #define GNEWT 6.67428e-11 // CLASS VALUE
43 
47 #define SOLAR_MASS GSL_CONST_MKSA_SOLAR_MASS
48 
52 #define MPC_TO_METER 3.08567758149e22
53 
57 #define PC_TO_METER 3.08567758149e16
58 
62 #define RHO_CRITICAL ((3*100*100)/(8*M_PI*GNEWT)) * (1000*1000*MPC_TO_METER/SOLAR_MASS)
63 
67 #define KBOLTZ GSL_CONST_MKSA_BOLTZMANN
68 
72 #define STBOLTZ GSL_CONST_MKSA_STEFAN_BOLTZMANN_CONSTANT
73 
77 #define HPLANCK GSL_CONST_MKSA_PLANCKS_CONSTANT_H
78 
82 #define CLIGHT GSL_CONST_MKSA_SPEED_OF_LIGHT
83 
87 #define EV_IN_J GSL_CONST_MKSA_ELECTRON_VOLT
88 
92 #define TNCDM 0.71611
93 
94 //Precision parameters
98 #define EPSREL_DIST 1E-6
99 
103 #define EPSREL_GROWTH 1E-6
104 
108 #define EPSREL_DNDZ 1E-6
109 
113 #define EPS_SCALEFAC_GROWTH 1E-6
114 
115 //Correlation function related parameters
116 #define EPSREL_CORR_FUNC 1E-3
117 #define GSL_INTEGRATION_LIMIT 1000
118 
119 //LSST specific numbers
120 #define Z_MIN_SOURCES 0.1
121 #define Z_MAX_SOURCES 3.0
122 
123 #ifdef __cplusplus
124 }
125 #endif