Add pair potential and tests
This commit is contained in:
parent
dfd6f43e9b
commit
6162b27a89
11 changed files with 330 additions and 14 deletions
15
src/precision.hpp
Normal file
15
src/precision.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef PRECISION_H
|
||||
#define PRECISION_H
|
||||
|
||||
#ifdef USE_FLOATS
|
||||
|
||||
/*
|
||||
* If macro USE_FLOATS is set then the default type will be floating point
|
||||
* precision. Otherwise we use double precision by default
|
||||
*/
|
||||
typedef float real;
|
||||
#else
|
||||
typedef double real;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue