accelerInt  v0.1
exp4_props.c
Go to the documentation of this file.
1 
10 #include "exp4_props.h"
11 
12 #ifdef GENERATE_DOCS
13 namespace exp4 {
14 #endif
15 
16 
23 void check_error(int tid, int code)
24 {
25  switch(code)
26  {
28  printf("During integration of ODE# %d, an error occured on too many consecutive integration steps,"
29  "exiting...\n", tid);
30  exit(code);
32  printf("During integration of ODE# %d, the allowed number of integration steps was exceeded,"
33  "exiting...\n", tid);
34  exit(code);
36  printf("During integration of ODE# %d, the stepsize 'h' was decreased such that h = t + h,"
37  "exiting...\n", tid);
38  exit(code);
39  }
40 }
41 
42 #ifdef GENERATE_DOCS
43 }
44 #endif
Definition: exp4.c:32
#define EC_consecutive_steps
Maximum number of consecutive internal timesteps with error reached.
Various macros controlling behaviour of EXP4 algorithm.
void check_error(int tid, int code)
Checks the return code of the given thread (IVP) for an error, and exits if found.
Definition: exp4_props.c:23
#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.