Change default precision to float and use float4 for force and potential calculations
This commit is contained in:
parent
dd83fc6330
commit
130b613a7c
9 changed files with 151 additions and 362 deletions
|
@ -1,15 +1,15 @@
|
|||
#ifndef PRECISION_H
|
||||
#define PRECISION_H
|
||||
|
||||
#ifdef USE_FLOATS
|
||||
#ifdef USE_DOUBLE
|
||||
|
||||
/*
|
||||
* If macro USE_FLOATS is set then the default type will be floating point
|
||||
* precision. Otherwise we use double precision by default
|
||||
* If macro USE_DOUBLE is set then the default type will be double
|
||||
* precision. Otherwise we use floats by default
|
||||
*/
|
||||
typedef float real;
|
||||
#else
|
||||
typedef double real;
|
||||
#else
|
||||
typedef float real;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue