Update all code to use real type

This commit is contained in:
Alex Selimov 2025-04-27 14:33:46 -04:00
parent 4269333aa2
commit 62e52940bc
3 changed files with 19 additions and 16 deletions

View file

@ -1,19 +1,20 @@
#ifndef BOX_H
#define BOX_H
#include "precision.hpp"
/**
* Struct representing the simulation box.
* Currently the simulation box is always assumed to be perfectly rectangular.
* This code does not support shearing the box. This functionality may be added
* in later.
*/
template <typename T> struct Box {
T xlo;
T xhi;
T ylo;
T yhi;
T zlo;
T zhi;
struct Box {
real xlo;
real xhi;
real ylo;
real yhi;
real zlo;
real zhi;
bool x_is_periodic;
bool y_is_periodic;
bool z_is_periodic;