cudaCAC/src/box.hpp
Alex Selimov d957a90573
Some checks failed
Build and Test / build-and-test (push) Failing after 5m4s
Cleanup code slightly and implement tests for CellList
2025-09-19 23:46:21 -04:00

33 lines
956 B
C++

#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.
*/
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;
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)
: xlo(xlo), xhi(xhi), ylo(ylo), yhi(yhi), zlo(zlo), zhi(zhi),
x_is_periodic(x_is_periodic), y_is_periodic(y_is_periodic),
z_is_periodic(z_is_periodic) {}
Box(real xlo, real xhi, real ylo, real yhi, real zlo, real zhi)
: xlo(xlo), xhi(xhi), ylo(ylo), yhi(yhi), zlo(zlo), zhi(zhi),
x_is_periodic(true), y_is_periodic(true), z_is_periodic(true) {}
};
#endif