ttypedefs.h - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
ttypedefs.h (905B)
---
1 #ifndef TYPEDEFS_H_
2 #define TYPEDEFS_H_
3
4 #include "vector_functions.h"
5
6 //////////////////////
7 // TYPE DEFINITIONS //
8 //////////////////////
9
10
11 // Uncomment all five lines below for single precision
12 /*
13 typedef Float Float;
14 typedef Float3 Float3;
15 typedef Float4 Float4;
16 #define MAKE_FLOAT2(x, y) make_float2(x, y)
17 #define MAKE_FLOAT3(x, y, z) make_float3(x, y, z)
18 #define MAKE_FLOAT4(x, y, z, w) make_float4(x, y, z, w)
19 */
20
21
22 /////// BEWARE: single precision is non-functional at the moment,
23 // due to the input algorithm.
24
25 // Uncomment all five lines below for double precision
26 ///*
27 typedef double Float;
28 typedef double2 Float2;
29 typedef double3 Float3;
30 typedef double4 Float4;
31 #define MAKE_FLOAT2(x, y) make_double2(x, y)
32 #define MAKE_FLOAT3(x, y, z) make_double3(x, y, z)
33 #define MAKE_FLOAT4(x, y, z, w) make_double4(x, y, z, w)
34 //*/
35
36 #endif
37 // vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4