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