Blame view

dataTypes.h 733 Bytes
3f56f1f9   dmayerich   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #ifndef DATATYPES_H
  #define DATATYPES_H
  
  #include <math.h>
  
  #define PRECISION_SINGLE
  
  #ifdef PRECISION_SINGLE
  typedef float ptype;
  #elif defined PRECISION_DOUBLE
  typedef double ptype;
  #endif
  
  #define BLOCK	256
  #define SQRT_BLOCK 16
  
  #define PI	3.14159
  
  //a very small number
  #define EPSILON		0.00001
  
  //CUDA hybrid code - complex class should run on both the CPU and GPU
  
  
  typedef ptype fieldPoint;
  
51b6469a   dmayerich   added look-up tables
27
28
  extern bool verbose;
  
3f56f1f9   dmayerich   initial commit
29
  //hybrid GPU/CPU complex data typ
d6f53e68   dmayerich   rts organization
30
31
32
33
  #include "rts/math/complex.h"
  #include "rts/math/vector.h"
  #include "rts/math/point.h"
  #include "rts/math/quad.h"
3f56f1f9   dmayerich   initial commit
34
  
3f36b18e   David Mayerich   Adding planewave ...
35
36
37
38
  typedef rts::complex<ptype> bsComplex;
  typedef rts::vector<ptype, 3> bsVector;
  typedef rts::point<ptype, 3> bsPoint;
  typedef rts::quad<ptype, 3> bsRect;
3f56f1f9   dmayerich   initial commit
39
40
41
  
  
  #endif