Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
ccl_error.h
Go to the documentation of this file.
1 
2 #ifndef __CCL_ERROR_H_INCLUDED__
3 #define __CCL_ERROR_H_INCLUDED__
4 
6 
7 // Whether to do bounds checks on interpolated quantities
8 #define CCL_BOUNDS_CHECK_INTERP
9 
10 #define CCL_ERROR_MEMORY 1025
11 #define CCL_ERROR_LINSPACE 1026
12 #define CCL_ERROR_INCONSISTENT 1027
13 #define CCL_ERROR_SPLINE 1028
14 #define CCL_ERROR_SPLINE_EV 1029
15 #define CCL_ERROR_INTEG 1030
16 #define CCL_ERROR_ROOT 1031
17 #define CCL_ERROR_CLASS 1032
18 #define CCL_ERROR_COMPUTECHI 1033
19 #define CCL_ERROR_MF 1034
20 #define CCL_ERROR_HMF_INTERP 1035
21 #define CCL_ERROR_PARAMETERS 1036
22 #define CCL_ERROR_NU_INT 1037
23 #define CCL_ERROR_EMULATOR_BOUND 1038
24 #define CCL_ERROR_NU_SOLVE 1039
25 #define CCL_ERROR_NOT_IMPLEMENTED 1040
26 #define CCL_ERROR_MNU_UNPHYSICAL 1041
27 #define CCL_ERROR_ANGPOW 1042
28 #define CCL_ERROR_MISSING_CONFIG_FILE 1043
29 #define CCL_ERROR_HALOCONC 1044
30 #define CCL_ERROR_HALOWIN 1045
31 #define CCL_ERROR_HMF_DV 1046
32 #define CCL_ERROR_CONC_DV 1047
33 #define CCL_ERROR_ONE_HALO_INT 1048
34 #define CCL_ERROR_TWO_HALO_INT 1049
35 #define CCL_ERROR_FILE_WRITE 1050
36 #define CCL_ERROR_FILE_READ 1051
37 #define CCL_ERROR_LOGSPACE 1052
38 #define CCL_ERROR_LINLOGSPACE 1053
39 #define CCL_ERROR_CONFIG_FILE 1054
40 
41 typedef enum {
45 
46 typedef enum {
51 
56 void ccl_raise_exception(int err, const char* msg, ...);
57 
62 void ccl_raise_warning(int err, const char* msg, ...);
63 
68 void ccl_raise_gsl_warning(int gslstatus, const char* msg, ...);
69 
74 void ccl_set_error_policy(CCLErrorPolicy error_policy);
75 
80 void ccl_set_debug_policy(CCLDebugModePolicy debug_policy);
81 
87 void ccl_check_status(ccl_cosmology *cosmo, int* status);
88 
94 void ccl_check_status_nocosmo(int* status);
95 
97 
98 #endif
void ccl_set_debug_policy(CCLDebugModePolicy debug_policy)
Definition: ccl_error.c:29
void ccl_raise_gsl_warning(int gslstatus, const char *msg,...)
Definition: ccl_error.c:75
#define CCL_BEGIN_DECLS
Definition: ccl_defs.h:17
void ccl_check_status(ccl_cosmology *cosmo, int *status)
Definition: ccl_error.c:88
CCLErrorPolicy
Definition: ccl_error.h:41
void ccl_raise_warning(int err, const char *msg,...)
Definition: ccl_error.c:56
void ccl_check_status_nocosmo(int *status)
Definition: ccl_error.c:116
void ccl_set_error_policy(CCLErrorPolicy error_policy)
Definition: ccl_error.c:23
CCLDebugModePolicy
Definition: ccl_error.h:46
void ccl_raise_exception(int err, const char *msg,...)
Definition: ccl_error.c:35
#define CCL_END_DECLS
Definition: ccl_defs.h:18