6 #include <gsl/gsl_errno.h> 41 vsnprintf(message, 250, msg, va);
46 fprintf(stderr,
"ERROR %d: %s\n", err, message);
51 fprintf(stderr,
"ERROR %d: %s\n", err, message);
62 vsnprintf(message, 250, msg, va);
70 fprintf(stderr,
"WARNING: %s\n", message);
81 vsnprintf(message, 250, msg, va);
84 ccl_raise_warning(gslstatus,
"%s GSL error: %s", message, gsl_strerror(gslstatus));
103 ccl_raise_exception(*status,
"Error, in ccl_neutrinos.c. ccl_calculate_nu_phasespace_spline(): Error in setting neutrino phasespace spline.");
105 ccl_raise_exception(*status,
"Error, in ccl_neutrinos.c. Omeganuh2_to_Mnu(): Root finding did not converge.");
130 "CCL_ERROR_COMPUTECHI: Comoving distance chi computation failed.");
134 "CCL_ERROR_HMF_INTERP: Halo mass function definition not supported.");
139 "CCL_ERROR_NU_INT: Error getting the neutrino phase-space integral spline.");
144 "CCL_ERROR_NU_SOLVE: Error converting Omeganuh2 -> Mnu.");
148 "CCL_ERROR_MNU_UNPHYSICAL: Sum of neutrinos masses for this Omeganu value is incompatible with the requested mass hierarchy.");
151 "CCL_ERROR_NOT_IMPLEMENTED: the type of m_nu specified is not supported.");
154 "Unrecognized error code (see gsl_errno.h for error codes 1-32).");
void ccl_raise_exception(int err, const char *msg,...)
void ccl_raise_gsl_warning(int gslstatus, const char *msg,...)
void ccl_check_status(ccl_cosmology *cosmo, int *status)
#define CCL_ERROR_NOT_IMPLEMENTED
#define CCL_ERROR_NU_SOLVE
void ccl_check_status_nocosmo(int *status)
#define CCL_ERROR_HMF_INTERP
void ccl_set_error_policy(CCLErrorPolicy error_policy)
static CCLErrorPolicy _ccl_error_policy
#define CCL_ERROR_LINSPACE
#define CCL_ERROR_MNU_UNPHYSICAL
#define CCL_ERROR_COMPUTECHI
void ccl_raise_warning(int err, const char *msg,...)
static CCLDebugModePolicy _ccl_debug_mode_policy
void ccl_set_debug_policy(CCLDebugModePolicy debug_policy)