accelerInt  v0.1
rkc_props.cuh
Go to the documentation of this file.
1 
8 #ifndef RKC_PROPS_CUH
9 #define RKC_PROPS_CUH
10 
11 #include "header.cuh"
12 #include <stdio.h>
13 
14 #ifdef GENERATE_DOCS
15 namespace rkc_cu {
16 #endif
17 
19 #define DOUBLE
20 
21 #ifdef DOUBLE
22  #define Real double
23 
24  #define ZERO 0.0
25  #define ONE 1.0
26  #define TWO 2.0
27  #define THREE 3.0
28  #define FOUR 4.0
29 
30  #define TEN 10.0
31  #define ONEP1 1.1
32  #define ONEP2 1.2
33  #define ONEP54 1.54
34  #define P8 0.8
35  #define P4 0.4
36  #define P1 0.1
37  #define P01 0.01
38  #define ONE3RD (1.0 / 3.0)
39  #define TWO3RD (2.0 / 3.0)
40  #define UROUND (2.22e-16)
41 #else
42  #define Real float
43 
44  #define ZERO 0.0f
45  #define ONE 1.0f
46  #define TWO 2.0f
47  #define THREE 3.0f
48  #define FOUR 4.0f
49 
50  #define TEN 10.0f
51  #define ONEP1 1.1f
52  #define ONEP2 1.2f
53  #define ONEP54 1.54f
54  #define P8 0.8f
55  #define P4 0.4f
56  #define P1 0.1f
57  #define P01 0.01f
58  #define ONE3RD (1.0f / 3.0f)
59  #define TWO3RD (2.0f / 3.0f)
60  #define UROUND (2.22e-16)
61 #endif
62 
65 {
81  int* result;
82 };
83 
93 #define EC_success (0)
95 
102 #ifdef GENERATE_DOCS
103 }
104 #endif
105 
106 #endif
Definition: rkc.cu:5
Real * temp_arr
The a work vector.
Definition: rkc_props.cuh:73
Real * y_n
Initial state vectors.
Definition: rkc_props.cuh:67
Real * y_jm2
The a work vector.
Definition: rkc_props.cuh:79
Real * y_jm1
The a work vector.
Definition: rkc_props.cuh:77
Real * work
The a work vector.
Definition: rkc_props.cuh:71
#define Real
Definition: rkc_props.cuh:22
Real * temp_arr2
The a work vector.
Definition: rkc_props.cuh:75
An example header file that defines system size, memory functions and other required methods for inte...
int * result
array of return codes
Definition: rkc_props.cuh:81
Real * F_n
The derivative vectors.
Definition: rkc_props.cuh:69
Memory required for Radau-IIa GPU solver.
Definition: rkc_props.cuh:64