roadrunner  2.6.0
Fast simulator for SBML models
KinsolErrHandler.h
1 //
2 // Created by Ciaran on 27/02/2021.
3 //
4 
5 #ifndef ROADRUNNER_KINSOLERRHANDLER_H
6 #define ROADRUNNER_KINSOLERRHANDLER_H
7 
8 #include "kinsol/kinsol.h"
9 #include <iostream>
10 #include <sstream>
11 
12 namespace rr {
13 
22  std::string decodeKinsolError(int cvodeError);
23 
24 
41  void kinsolErrHandler(int error_code, const char *module, const char *function, char *msg);
42 
46 //#define handleKinsolError(errCode) \
47 // std::string what = decodeKinsolError(errCode); \
48 // throw KinsolException(std::string(__FILE__) + ":" + std::to_string(__LINE__) + ":" + std::string(__FUNCTION__) + " " + what);
49 
50 }
51 
52 #endif //ROADRUNNER_KINSOLERRHANDLER_H