CCL
Macros | Enumerations | Functions
ccl_error.h File Reference
#include "ccl_core.h"

Go to the source code of this file.

Macros

#define CCL_BOUNDS_CHECK_INTERP
 
#define CCL_ERROR_MEMORY   1025
 
#define CCL_ERROR_LINSPACE   1026
 
#define CCL_ERROR_INCONSISTENT   1027
 
#define CCL_ERROR_SPLINE   1028
 
#define CCL_ERROR_SPLINE_EV   1029
 
#define CCL_ERROR_INTEG   1030
 
#define CCL_ERROR_ROOT   1031
 
#define CCL_ERROR_CLASS   1032
 
#define CCL_ERROR_COMPUTECHI   1033
 
#define CCL_ERROR_MF   1034
 
#define CCL_ERROR_HMF_INTERP   1035
 
#define CCL_ERROR_PARAMETERS   1036
 
#define CCL_ERROR_NU_INT   1037
 

Enumerations

enum  CCLErrorPolicy { CCL_ERROR_POLICY_EXIT = 0, CCL_ERROR_POLICY_CONTINUE = 1 }
 

Functions

void ccl_raise_exception (int err, char *msg)
 
void ccl_set_error_policy (CCLErrorPolicy error_policy)
 
void ccl_check_status (ccl_cosmology *cosmo, int *status)
 
void ccl_check_status_nocosmo (int *status)
 

Macro Definition Documentation

#define CCL_BOUNDS_CHECK_INTERP
#define CCL_ERROR_CLASS   1032
#define CCL_ERROR_COMPUTECHI   1033
#define CCL_ERROR_HMF_INTERP   1035
#define CCL_ERROR_INCONSISTENT   1027
#define CCL_ERROR_INTEG   1030
#define CCL_ERROR_LINSPACE   1026
#define CCL_ERROR_MEMORY   1025
#define CCL_ERROR_MF   1034
#define CCL_ERROR_NU_INT   1037
#define CCL_ERROR_PARAMETERS   1036
#define CCL_ERROR_ROOT   1031
#define CCL_ERROR_SPLINE   1028
#define CCL_ERROR_SPLINE_EV   1029

Enumeration Type Documentation

Enumerator
CCL_ERROR_POLICY_EXIT 
CCL_ERROR_POLICY_CONTINUE 

Function Documentation

void ccl_check_status ( ccl_cosmology cosmo,
int *  status 
)

Check the error status Given a status, check if any errors have occurred, based on the CCL_ERRORs defined so far.

Returns
void
void ccl_check_status_nocosmo ( int *  status)

Check the error status - no cosmology Given a status, check if any errors have occurred, based on the CCL_ERRORs defined so far.

Returns
void
void ccl_raise_exception ( int  err,
char *  msg 
)

Raise an exception Given a status, give an error message.

Returns
void
void ccl_set_error_policy ( CCLErrorPolicy  error_policy)

Set the error policy error_policy the error policy

Returns
void