accelerInt  v0.1
rkc_props.h
Go to the documentation of this file.
1 #ifndef RKC_PROPS_H
2 #define RKC_PROPS_H
3 
4 #include <stdio.h>
5 
7 #define DOUBLE
8 
9 #ifdef GENERATE_DOCS
10 namespace radau2a {
11 #endif
12 
13 #ifdef DOUBLE
14  #define Real double
15 
16  #define ZERO 0.0
17  #define ONE 1.0
18  #define TWO 2.0
19  #define THREE 3.0
20  #define FOUR 4.0
21 
22  #define TEN 10.0
23  #define ONEP1 1.1
24  #define ONEP2 1.2
25  #define ONEP54 1.54
26  #define P8 0.8
27  #define P4 0.4
28  #define P1 0.1
29  #define P01 0.01
30  #define ONE3RD (1.0 / 3.0)
31  #define TWO3RD (2.0 / 3.0)
32  #define UROUND (2.22e-16)
33 #else
34  #define Real float
35 
36  #define ZERO 0.0f
37  #define ONE 1.0f
38  #define TWO 2.0f
39  #define THREE 3.0f
40  #define FOUR 4.0f
41 
42  #define TEN 10.0f
43  #define ONEP1 1.1f
44  #define ONEP2 1.2f
45  #define ONEP54 1.54f
46  #define P8 0.8f
47  #define P4 0.4f
48  #define P1 0.1f
49  #define P01 0.01f
50  #define ONE3RD (1.0f / 3.0f)
51  #define TWO3RD (2.0f / 3.0f)
52  #define UROUND (2.22e-16)
53 #endif
54 
64 #define EC_success (0)
66 
74 #ifdef GENERATE_DOCS
75 }
76 #endif
77 
78 #endif