cvode_impl.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. /*
  2. * -----------------------------------------------------------------
  3. * $Revision: 4378 $
  4. * $Date: 2015-02-19 10:55:14 -0800 (Thu, 19 Feb 2015) $
  5. * -----------------------------------------------------------------
  6. * Programmer(s): Scott D. Cohen, Alan C. Hindmarsh, Radu Serban
  7. * and Dan Shumaker @ LLNL
  8. * -----------------------------------------------------------------
  9. * LLNS Copyright Start
  10. * Copyright (c) 2014, Lawrence Livermore National Security
  11. * This work was performed under the auspices of the U.S. Department
  12. * of Energy by Lawrence Livermore National Laboratory in part under
  13. * Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344.
  14. * Produced at the Lawrence Livermore National Laboratory.
  15. * All rights reserved.
  16. * For details, see the LICENSE file.
  17. * LLNS Copyright End
  18. * -----------------------------------------------------------------
  19. * Implementation header file for the main CVODE integrator.
  20. * -----------------------------------------------------------------
  21. */
  22. #ifndef _CVODE_IMPL_H
  23. #define _CVODE_IMPL_H
  24. #include <stdarg.h>
  25. #include <cvode/cvode.h>
  26. #ifdef __cplusplus /* wrapper to enable C++ usage */
  27. extern "C" {
  28. #endif
  29. /*
  30. * =================================================================
  31. * M A I N I N T E G R A T O R M E M O R Y B L O C K
  32. * =================================================================
  33. */
  34. /* Basic CVODE constants */
  35. #define ADAMS_Q_MAX 12 /* max value of q for lmm == ADAMS */
  36. #define BDF_Q_MAX 5 /* max value of q for lmm == BDF */
  37. #define Q_MAX ADAMS_Q_MAX /* max value of q for either lmm */
  38. #define L_MAX (Q_MAX+1) /* max value of L for either lmm */
  39. #define NUM_TESTS 5 /* number of error test quantities */
  40. #define HMIN_DEFAULT RCONST(0.0) /* hmin default value */
  41. #define HMAX_INV_DEFAULT RCONST(0.0) /* hmax_inv default value */
  42. #define MXHNIL_DEFAULT 10 /* mxhnil default value */
  43. #define MXSTEP_DEFAULT 500 /* mxstep default value */
  44. /*
  45. * -----------------------------------------------------------------
  46. * Types : struct CVodeMemRec, CVodeMem
  47. * -----------------------------------------------------------------
  48. * The type CVodeMem is type pointer to struct CVodeMemRec.
  49. * This structure contains fields to keep track of problem state.
  50. * -----------------------------------------------------------------
  51. */
  52. typedef struct CVodeMemRec {
  53. realtype cv_uround; /* machine unit roundoff */
  54. /*--------------------------
  55. Problem Specification Data
  56. --------------------------*/
  57. CVRhsFn cv_f; /* y' = f(t,y(t)) */
  58. void *cv_user_data; /* user pointer passed to f */
  59. int cv_lmm; /* lmm = CV_ADAMS or CV_BDF */
  60. int cv_iter; /* iter = CV_FUNCTIONAL or CV_NEWTON */
  61. int cv_itol; /* itol = CV_SS, CV_SV, CV_WF, CV_NN */
  62. realtype cv_reltol; /* relative tolerance */
  63. realtype cv_Sabstol; /* scalar absolute tolerance */
  64. N_Vector cv_Vabstol; /* vector absolute tolerance */
  65. booleantype cv_user_efun; /* TRUE if user sets efun */
  66. CVEwtFn cv_efun; /* function to set ewt */
  67. void *cv_e_data; /* user pointer passed to efun */
  68. /*-----------------------
  69. Nordsieck History Array
  70. -----------------------*/
  71. N_Vector cv_zn[L_MAX]; /* Nordsieck array, of size N x (q+1).
  72. zn[j] is a vector of length N (j=0,...,q)
  73. zn[j] = [1/factorial(j)] * h^j * (jth
  74. derivative of the interpolating polynomial */
  75. /*--------------------------
  76. other vectors of length N
  77. -------------------------*/
  78. N_Vector cv_ewt; /* error weight vector */
  79. N_Vector cv_y; /* y is used as temporary storage by the solver
  80. The memory is provided by the user to CVode
  81. where the vector is named yout. */
  82. N_Vector cv_acor; /* In the context of the solution of the nonlinear
  83. equation, acor = y_n(m) - y_n(0). On return,
  84. this vector is scaled to give the est. local err. */
  85. N_Vector cv_tempv; /* temporary storage vector */
  86. N_Vector cv_ftemp; /* temporary storage vector */
  87. /*-----------------
  88. Tstop information
  89. -----------------*/
  90. booleantype cv_tstopset;
  91. realtype cv_tstop;
  92. /*---------
  93. Step Data
  94. ---------*/
  95. int cv_q; /* current order */
  96. int cv_qprime; /* order to be used on the next step
  97. = q-1, q, or q+1 */
  98. int cv_next_q; /* order to be used on the next step */
  99. int cv_qwait; /* number of internal steps to wait before
  100. considering a change in q */
  101. int cv_L; /* L = q + 1 */
  102. realtype cv_hin; /* initial step size */
  103. realtype cv_h; /* current step size */
  104. realtype cv_hprime; /* step size to be used on the next step */
  105. realtype cv_next_h; /* step size to be used on the next step */
  106. realtype cv_eta; /* eta = hprime / h */
  107. realtype cv_hscale; /* value of h used in zn */
  108. realtype cv_tn; /* current internal value of t */
  109. realtype cv_tretlast; /* value of tret last returned by CVode */
  110. realtype cv_tau[L_MAX+1]; /* array of previous q+1 successful step
  111. sizes indexed from 1 to q+1 */
  112. realtype cv_tq[NUM_TESTS+1]; /* array of test quantities indexed from
  113. 1 to NUM_TESTS(=5) */
  114. realtype cv_l[L_MAX]; /* coefficients of l(x) (degree q poly) */
  115. realtype cv_rl1; /* the scalar 1/l[1] */
  116. realtype cv_gamma; /* gamma = h * rl1 */
  117. realtype cv_gammap; /* gamma at the last setup call */
  118. realtype cv_gamrat; /* gamma / gammap */
  119. realtype cv_crate; /* estimated corrector convergence rate */
  120. realtype cv_acnrm; /* | acor | wrms */
  121. realtype cv_nlscoef; /* coeficient in nonlinear convergence test */
  122. int cv_mnewt; /* Newton iteration counter */
  123. /*------
  124. Limits
  125. ------*/
  126. int cv_qmax; /* q <= qmax */
  127. long int cv_mxstep; /* maximum number of internal steps for one user call */
  128. int cv_maxcor; /* maximum number of corrector iterations for the
  129. solution of the nonlinear equation */
  130. int cv_mxhnil; /* maximum number of warning messages issued to the
  131. user that t + h == t for the next internal step */
  132. int cv_maxnef; /* maximum number of error test failures */
  133. int cv_maxncf; /* maximum number of nonlinear convergence failures */
  134. realtype cv_hmin; /* |h| >= hmin */
  135. realtype cv_hmax_inv; /* |h| <= 1/hmax_inv */
  136. realtype cv_etamax; /* eta <= etamax */
  137. /*--------
  138. Counters
  139. --------*/
  140. long int cv_nst; /* number of internal steps taken */
  141. long int cv_nfe; /* number of f calls */
  142. long int cv_ncfn; /* number of corrector convergence failures */
  143. long int cv_netf; /* number of error test failures */
  144. long int cv_nni; /* number of Newton iterations performed */
  145. long int cv_nsetups; /* number of setup calls */
  146. int cv_nhnil; /* number of messages issued to the user that
  147. t + h == t for the next iternal step */
  148. realtype cv_etaqm1; /* ratio of new to old h for order q-1 */
  149. realtype cv_etaq; /* ratio of new to old h for order q */
  150. realtype cv_etaqp1; /* ratio of new to old h for order q+1 */
  151. /*----------------------------
  152. Space requirements for CVODE
  153. ----------------------------*/
  154. long int cv_lrw1; /* no. of realtype words in 1 N_Vector */
  155. long int cv_liw1; /* no. of integer words in 1 N_Vector */
  156. long int cv_lrw; /* no. of realtype words in CVODE work vectors */
  157. long int cv_liw; /* no. of integer words in CVODE work vectors */
  158. /*------------------
  159. Linear Solver Data
  160. ------------------*/
  161. /* Linear Solver functions to be called */
  162. int (*cv_linit)(struct CVodeMemRec *cv_mem);
  163. int (*cv_lsetup)(struct CVodeMemRec *cv_mem, int convfail, N_Vector ypred,
  164. N_Vector fpred, booleantype *jcurPtr, N_Vector vtemp1,
  165. N_Vector vtemp2, N_Vector vtemp3);
  166. int (*cv_lsolve)(struct CVodeMemRec *cv_mem, N_Vector b, N_Vector weight,
  167. N_Vector ycur, N_Vector fcur);
  168. void (*cv_lfree)(struct CVodeMemRec *cv_mem);
  169. /* Linear Solver specific memory */
  170. void *cv_lmem;
  171. /*------------
  172. Saved Values
  173. ------------*/
  174. int cv_qu; /* last successful q value used */
  175. long int cv_nstlp; /* step number of last setup call */
  176. realtype cv_h0u; /* actual initial stepsize */
  177. realtype cv_hu; /* last successful h value used */
  178. realtype cv_saved_tq5; /* saved value of tq[5] */
  179. booleantype cv_jcur; /* is Jacobian info. for lin. solver current? */
  180. realtype cv_tolsf; /* tolerance scale factor */
  181. int cv_qmax_alloc; /* value of qmax used when allocating memory */
  182. int cv_indx_acor; /* index of the zn vector with saved acor */
  183. booleantype cv_setupNonNull; /* does setup do anything? */
  184. booleantype cv_VabstolMallocDone;
  185. booleantype cv_MallocDone;
  186. /*-------------------------------------------
  187. Error handler function and error ouput file
  188. -------------------------------------------*/
  189. CVErrHandlerFn cv_ehfun; /* error messages are handled by ehfun */
  190. void *cv_eh_data; /* data pointer passed to ehfun */
  191. FILE *cv_errfp; /* CVODE error messages are sent to errfp */
  192. /*-------------------------
  193. Stability Limit Detection
  194. -------------------------*/
  195. booleantype cv_sldeton; /* is Stability Limit Detection on? */
  196. realtype cv_ssdat[6][4]; /* scaled data array for STALD */
  197. int cv_nscon; /* counter for STALD method */
  198. long int cv_nor; /* counter for number of order reductions */
  199. /*----------------
  200. Rootfinding Data
  201. ----------------*/
  202. CVRootFn cv_gfun; /* function g for roots sought */
  203. int cv_nrtfn; /* number of components of g */
  204. int *cv_iroots; /* array for root information */
  205. int *cv_rootdir; /* array specifying direction of zero-crossing */
  206. realtype cv_tlo; /* nearest endpoint of interval in root search */
  207. realtype cv_thi; /* farthest endpoint of interval in root search */
  208. realtype cv_trout; /* t value returned by rootfinding routine */
  209. realtype *cv_glo; /* saved array of g values at t = tlo */
  210. realtype *cv_ghi; /* saved array of g values at t = thi */
  211. realtype *cv_grout; /* array of g values at t = trout */
  212. realtype cv_toutc; /* copy of tout (if NORMAL mode) */
  213. realtype cv_ttol; /* tolerance on root location */
  214. int cv_taskc; /* copy of parameter itask */
  215. int cv_irfnd; /* flag showing whether last step had a root */
  216. long int cv_nge; /* counter for g evaluations */
  217. booleantype *cv_gactive; /* array with active/inactive event functions */
  218. int cv_mxgnull; /* number of warning messages about possible g==0 */
  219. CVStepRootFn cv_stepgfun;
  220. } *CVodeMem;
  221. /*
  222. * =================================================================
  223. * I N T E R F A C E T O L I N E A R S O L V E R S
  224. * =================================================================
  225. */
  226. /*
  227. * -----------------------------------------------------------------
  228. * Communication between CVODE and a CVODE Linear Solver
  229. * -----------------------------------------------------------------
  230. * convfail (input to cv_lsetup)
  231. *
  232. * CV_NO_FAILURES : Either this is the first cv_setup call for this
  233. * step, or the local error test failed on the
  234. * previous attempt at this step (but the Newton
  235. * iteration converged).
  236. *
  237. * CV_FAIL_BAD_J : This value is passed to cv_lsetup if
  238. *
  239. * (a) The previous Newton corrector iteration
  240. * did not converge and the linear solver's
  241. * setup routine indicated that its Jacobian-
  242. * related data is not current
  243. * or
  244. * (b) During the previous Newton corrector
  245. * iteration, the linear solver's solve routine
  246. * failed in a recoverable manner and the
  247. * linear solver's setup routine indicated that
  248. * its Jacobian-related data is not current.
  249. *
  250. * CV_FAIL_OTHER : During the current internal step try, the
  251. * previous Newton iteration failed to converge
  252. * even though the linear solver was using current
  253. * Jacobian-related data.
  254. * -----------------------------------------------------------------
  255. */
  256. /* Constants for convfail (input to cv_lsetup) */
  257. #define CV_NO_FAILURES 0
  258. #define CV_FAIL_BAD_J 1
  259. #define CV_FAIL_OTHER 2
  260. /*
  261. * -----------------------------------------------------------------
  262. * int (*cv_linit)(CVodeMem cv_mem);
  263. * -----------------------------------------------------------------
  264. * The purpose of cv_linit is to complete initializations for a
  265. * specific linear solver, such as counters and statistics.
  266. * An LInitFn should return 0 if it has successfully initialized the
  267. * CVODE linear solver and a negative value otherwise.
  268. * If an error does occur, an appropriate message should be sent to
  269. * the error handler function.
  270. * -----------------------------------------------------------------
  271. */
  272. /*
  273. * -----------------------------------------------------------------
  274. * int (*cv_lsetup)(CVodeMem cv_mem, int convfail, N_Vector ypred,
  275. * N_Vector fpred, booleantype *jcurPtr,
  276. * N_Vector vtemp1, N_Vector vtemp2,
  277. * N_Vector vtemp3);
  278. * -----------------------------------------------------------------
  279. * The job of cv_lsetup is to prepare the linear solver for
  280. * subsequent calls to cv_lsolve. It may recompute Jacobian-
  281. * related data is it deems necessary. Its parameters are as
  282. * follows:
  283. *
  284. * cv_mem - problem memory pointer of type CVodeMem. See the
  285. * typedef earlier in this file.
  286. *
  287. * convfail - a flag to indicate any problem that occurred during
  288. * the solution of the nonlinear equation on the
  289. * current time step for which the linear solver is
  290. * being used. This flag can be used to help decide
  291. * whether the Jacobian data kept by a CVODE linear
  292. * solver needs to be updated or not.
  293. * Its possible values have been documented above.
  294. *
  295. * ypred - the predicted y vector for the current CVODE internal
  296. * step.
  297. *
  298. * fpred - f(tn, ypred).
  299. *
  300. * jcurPtr - a pointer to a boolean to be filled in by cv_lsetup.
  301. * The function should set *jcurPtr=TRUE if its Jacobian
  302. * data is current after the call and should set
  303. * *jcurPtr=FALSE if its Jacobian data is not current.
  304. * Note: If cv_lsetup calls for re-evaluation of
  305. * Jacobian data (based on convfail and CVODE state
  306. * data), it should return *jcurPtr=TRUE always;
  307. * otherwise an infinite loop can result.
  308. *
  309. * vtemp1 - temporary N_Vector provided for use by cv_lsetup.
  310. *
  311. * vtemp3 - temporary N_Vector provided for use by cv_lsetup.
  312. *
  313. * vtemp3 - temporary N_Vector provided for use by cv_lsetup.
  314. *
  315. * The cv_lsetup routine should return 0 if successful, a positive
  316. * value for a recoverable error, and a negative value for an
  317. * unrecoverable error.
  318. * -----------------------------------------------------------------
  319. */
  320. /*
  321. * -----------------------------------------------------------------
  322. * int (*cv_lsolve)(CVodeMem cv_mem, N_Vector b, N_Vector weight,
  323. * N_Vector ycur, N_Vector fcur);
  324. * -----------------------------------------------------------------
  325. * cv_lsolve must solve the linear equation P x = b, where
  326. * P is some approximation to (I - gamma J), J = (df/dy)(tn,ycur)
  327. * and the RHS vector b is input. The N-vector ycur contains
  328. * the solver's current approximation to y(tn) and the vector
  329. * fcur contains the N_Vector f(tn,ycur). The solution is to be
  330. * returned in the vector b. cv_lsolve returns a positive value
  331. * for a recoverable error and a negative value for an
  332. * unrecoverable error. Success is indicated by a 0 return value.
  333. * -----------------------------------------------------------------
  334. */
  335. /*
  336. * -----------------------------------------------------------------
  337. * void (*cv_lfree)(CVodeMem cv_mem);
  338. * -----------------------------------------------------------------
  339. * cv_lfree should free up any memory allocated by the linear
  340. * solver. This routine is called once a problem has been
  341. * completed and the linear solver is no longer needed.
  342. * -----------------------------------------------------------------
  343. */
  344. /*
  345. * =================================================================
  346. * C V O D E I N T E R N A L F U N C T I O N S
  347. * =================================================================
  348. */
  349. /* Prototype of internal ewtSet function */
  350. SUNDIALS_EXPORT int cvEwtSet(N_Vector ycur, N_Vector weight, void *data);
  351. /* High level error handler */
  352. SUNDIALS_EXPORT void cvProcessError(CVodeMem cv_mem,
  353. int error_code, const char *module, const char *fname,
  354. const char *msgfmt, ...);
  355. /* Prototype of internal ErrHandler function */
  356. SUNDIALS_EXPORT void cvErrHandler(int error_code, const char *module, const char *function,
  357. char *msg, void *data);
  358. /*
  359. * =================================================================
  360. * C V O D E E R R O R M E S S A G E S
  361. * =================================================================
  362. */
  363. #if defined(SUNDIALS_EXTENDED_PRECISION)
  364. #define MSG_TIME "t = %Lg"
  365. #define MSG_TIME_H "t = %Lg and h = %Lg"
  366. #define MSG_TIME_INT "t = %Lg is not between tcur - hu = %Lg and tcur = %Lg."
  367. #define MSG_TIME_TOUT "tout = %Lg"
  368. #define MSG_TIME_TSTOP "tstop = %Lg"
  369. #elif defined(SUNDIALS_DOUBLE_PRECISION)
  370. #define MSG_TIME "t = %lg"
  371. #define MSG_TIME_H "t = %lg and h = %lg"
  372. #define MSG_TIME_INT "t = %lg is not between tcur - hu = %lg and tcur = %lg."
  373. #define MSG_TIME_TOUT "tout = %lg"
  374. #define MSG_TIME_TSTOP "tstop = %lg"
  375. #else
  376. #define MSG_TIME "t = %g"
  377. #define MSG_TIME_H "t = %g and h = %g"
  378. #define MSG_TIME_INT "t = %g is not between tcur - hu = %g and tcur = %g."
  379. #define MSG_TIME_TOUT "tout = %g"
  380. #define MSG_TIME_TSTOP "tstop = %g"
  381. #endif
  382. /* Initialization and I/O error messages */
  383. #define MSGCV_NO_MEM "cvode_mem = NULL illegal."
  384. #define MSGCV_CVMEM_FAIL "Allocation of cvode_mem failed."
  385. #define MSGCV_MEM_FAIL "A memory request failed."
  386. #define MSGCV_BAD_LMM "Illegal value for lmm. The legal values are CV_ADAMS and CV_BDF."
  387. #define MSGCV_BAD_ITER "Illegal value for iter. The legal values are CV_FUNCTIONAL and CV_NEWTON."
  388. #define MSGCV_NO_MALLOC "Attempt to call before CVodeInit."
  389. #define MSGCV_NEG_MAXORD "maxord <= 0 illegal."
  390. #define MSGCV_BAD_MAXORD "Illegal attempt to increase maximum method order."
  391. #define MSGCV_SET_SLDET "Attempt to use stability limit detection with the CV_ADAMS method illegal."
  392. #define MSGCV_NEG_HMIN "hmin < 0 illegal."
  393. #define MSGCV_NEG_HMAX "hmax < 0 illegal."
  394. #define MSGCV_BAD_HMIN_HMAX "Inconsistent step size limits: hmin > hmax."
  395. #define MSGCV_BAD_RELTOL "reltol < 0 illegal."
  396. #define MSGCV_BAD_ABSTOL "abstol has negative component(s) (illegal)."
  397. #define MSGCV_NULL_ABSTOL "abstol = NULL illegal."
  398. #define MSGCV_NULL_Y0 "y0 = NULL illegal."
  399. #define MSGCV_NULL_F "f = NULL illegal."
  400. #define MSGCV_NULL_G "g = NULL illegal."
  401. #define MSGCV_BAD_NVECTOR "A required vector operation is not implemented."
  402. #define MSGCV_BAD_K "Illegal value for k."
  403. #define MSGCV_NULL_DKY "dky = NULL illegal."
  404. #define MSGCV_BAD_T "Illegal value for t." MSG_TIME_INT
  405. #define MSGCV_NO_ROOT "Rootfinding was not initialized."
  406. /* CVode Error Messages */
  407. #define MSGCV_NO_TOLS "No integration tolerances have been specified."
  408. #define MSGCV_LSOLVE_NULL "The linear solver's solve routine is NULL."
  409. #define MSGCV_YOUT_NULL "yout = NULL illegal."
  410. #define MSGCV_TRET_NULL "tret = NULL illegal."
  411. #define MSGCV_BAD_EWT "Initial ewt has component(s) equal to zero (illegal)."
  412. #define MSGCV_EWT_NOW_BAD "At " MSG_TIME ", a component of ewt has become <= 0."
  413. #define MSGCV_BAD_ITASK "Illegal value for itask."
  414. #define MSGCV_BAD_H0 "h0 and tout - t0 inconsistent."
  415. #define MSGCV_BAD_TOUT "Trouble interpolating at " MSG_TIME_TOUT ". tout too far back in direction of integration"
  416. #define MSGCV_EWT_FAIL "The user-provide EwtSet function failed."
  417. #define MSGCV_EWT_NOW_FAIL "At " MSG_TIME ", the user-provide EwtSet function failed."
  418. #define MSGCV_LINIT_FAIL "The linear solver's init routine failed."
  419. #define MSGCV_HNIL_DONE "The above warning has been issued mxhnil times and will not be issued again for this problem."
  420. #define MSGCV_TOO_CLOSE "tout too close to t0 to start integration."
  421. #define MSGCV_MAX_STEPS "At " MSG_TIME ", mxstep steps taken before reaching tout."
  422. #define MSGCV_TOO_MUCH_ACC "At " MSG_TIME ", too much accuracy requested."
  423. #define MSGCV_HNIL "Internal " MSG_TIME_H " are such that t + h = t on the next step. The solver will continue anyway."
  424. #define MSGCV_ERR_FAILS "At " MSG_TIME_H ", the error test failed repeatedly or with |h| = hmin."
  425. #define MSGCV_CONV_FAILS "At " MSG_TIME_H ", the corrector convergence test failed repeatedly or with |h| = hmin."
  426. #define MSGCV_SETUP_FAILED "At " MSG_TIME ", the setup routine failed in an unrecoverable manner."
  427. #define MSGCV_SOLVE_FAILED "At " MSG_TIME ", the solve routine failed in an unrecoverable manner."
  428. #define MSGCV_RHSFUNC_FAILED "At " MSG_TIME ", the right-hand side routine failed in an unrecoverable manner."
  429. #define MSGCV_RHSFUNC_UNREC "At " MSG_TIME ", the right-hand side failed in a recoverable manner, but no recovery is possible."
  430. #define MSGCV_RHSFUNC_REPTD "At " MSG_TIME " repeated recoverable right-hand side function errors."
  431. #define MSGCV_RHSFUNC_FIRST "The right-hand side routine failed at the first call."
  432. #define MSGCV_RTFUNC_FAILED "At " MSG_TIME ", the rootfinding routine failed in an unrecoverable manner."
  433. #define MSGCV_CLOSE_ROOTS "Root found at and very near " MSG_TIME "."
  434. #define MSGCV_BAD_TSTOP "The value " MSG_TIME_TSTOP " is behind current " MSG_TIME " in the direction of integration."
  435. #define MSGCV_INACTIVE_ROOTS "At the end of the first step, there are still some root functions identically 0. This warning will not be issued again."
  436. #ifdef __cplusplus
  437. }
  438. #endif
  439. #endif