accelerInt  v0.1
rkc_props.cu
Go to the documentation of this file.
1 
6 #include "rkc_props.cuh"
7 
14 __host__
15 void check_error(int num_cond, int* codes)
16 {
17  for (int tid = 0; tid < num_cond; ++tid)
18  {
19  int code = codes[tid];
20  if (code != EC_success)
21  {
22  printf("During integration of ODE# %d, an unknown error occurred,"
23  "exiting...\n", tid);
24  exit(code);
25  }
26  }
27 }
Various macros controlling behaviour of RKC algorithm.
#define EC_success
Successful time step.
__host__ void check_error(int num_cond, int *codes)
Definition: rkc_props.cu:15