accelerInt  v0.1
exprb43_props.cu
Go to the documentation of this file.
1 
8 #include "exprb43_props.cuh"
9 
10 #ifdef GENERATE_DOCS
11 namespace exprb43cu {
12 #endif
13 
20 __host__
21 void check_error(int num_cond, int* codes)
22 {
23  for (int tid = 0; tid < num_cond; ++tid)
24  {
25  int code = codes[tid];
26  switch(code)
27  {
29  printf("During integration of ODE# %d, an error occured on too many consecutive integration steps,"
30  "exiting...\n", tid);
31  exit(code);
33  printf("During integration of ODE# %d, the allowed number of integration steps was exceeded,"
34  "exiting...\n", tid);
35  exit(code);
37  printf("During integration of ODE# %d, the stepsize 'h' was decreased such that h = t + h,"
38  "exiting...\n", tid);
39  exit(code);
40  }
41  }
42 }
43 
44 #ifdef GENERATE_DOCS
45 }
46 #endif
#define EC_consecutive_steps
Maximum number of consecutive internal timesteps with error reached.
__host__ void check_error(int num_cond, int *codes)
Various macros controlling behaviour of RB43 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.