accelerInt  v0.1
exprb43_props.c
Go to the documentation of this file.
1 
10 #include "exprb43_props.h"
11 
12 #ifdef GENERATE_DOCS
13 namespace exprb43 {
14 #endif
15 
22 void check_error(int tid, int code)
23 {
24  switch(code)
25  {
27  printf("During integration of ODE# %d, an error occured on too many consecutive integration steps,"
28  "exiting...\n", tid);
29  exit(code);
31  printf("During integration of ODE# %d, the allowed number of integration steps was exceeded,"
32  "exiting...\n", tid);
33  exit(code);
35  printf("During integration of ODE# %d, the stepsize 'h' was decreased such that h = t + h,"
36  "exiting...\n", tid);
37  exit(code);
38  }
39 }
40 
41 #ifdef GENERATE_DOCS
42 }
43 #endif
void check_error(int tid, int code)
Checks the return code of the given thread (IVP) for an error, and exits if found.
Definition: exprb43_props.c:22
#define EC_consecutive_steps
Maximum number of consecutive internal timesteps with error reached.
Various macros controlling behaviour of EXPRB43 algorithm.
#define EC_max_steps_exceeded
Maximum number of internal timesteps exceeded.
#define EC_h_plus_t_equals_h
Timescale reduced such that t + h == t in floating point math.