Add pair potential and tests

This commit is contained in:
Alex Selimov 2025-04-16 14:01:40 -04:00
parent dfd6f43e9b
commit 6162b27a89
11 changed files with 330 additions and 14 deletions

15
src/precision.hpp Normal file
View 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