CCL
ccl_error.h
Go to the documentation of this file.
1 
2 #ifdef __cplusplus
3 extern "C" {
4 #endif
5 
6 #pragma once
7 #include "ccl_core.h"
8 
9 // Whether to do bounds checks on interpolated quantities
10 #define CCL_BOUNDS_CHECK_INTERP
11 
12 #define CCL_ERROR_MEMORY 1025
13 #define CCL_ERROR_LINSPACE 1026
14 #define CCL_ERROR_INCONSISTENT 1027
15 #define CCL_ERROR_SPLINE 1028
16 #define CCL_ERROR_SPLINE_EV 1029
17 #define CCL_ERROR_INTEG 1030
18 #define CCL_ERROR_ROOT 1031
19 #define CCL_ERROR_CLASS 1032
20 #define CCL_ERROR_COMPUTECHI 1033
21 #define CCL_ERROR_MF 1034
22 #define CCL_ERROR_HMF_INTERP 1035
23 #define CCL_ERROR_PARAMETERS 1036
24 #define CCL_ERROR_NU_INT 1037
25 
26 typedef enum {
30 
35 void ccl_raise_exception(int err, char* msg);
36 
41 void ccl_set_error_policy(CCLErrorPolicy error_policy);
42 
48 void ccl_check_status(ccl_cosmology *cosmo, int* status);
49 
55 void ccl_check_status_nocosmo(int* status);
56 
57 #ifdef __cplusplus
58 }
59 #endif
void ccl_check_status(ccl_cosmology *cosmo, int *status)
Definition: ccl_error.c:27
CCLErrorPolicy
Definition: ccl_error.h:26
Definition: ccl_error.h:28
void ccl_raise_exception(int err, char *msg)
Definition: ccl_error.c:18
void ccl_check_status_nocosmo(int *status)
Definition: ccl_error.c:52
void ccl_set_error_policy(CCLErrorPolicy error_policy)
Definition: ccl_error.c:12
Definition: ccl_core.h:123
Definition: ccl_error.h:27