define EPSILON consistently as static constexp

This commit is contained in:
Axel Kohlmeyer
2024-07-29 11:57:46 -04:00
parent eeaa1eadeb
commit d84b12ea63
3 changed files with 3 additions and 3 deletions

View File

@ -314,7 +314,7 @@ TEST_F(GroupTest, Dynamic)
command("group ramp variable grow");); command("group ramp variable grow"););
} }
constexpr double EPSILON = 1.0e-13; static constexpr double EPSILON = 1.0e-13;
TEST_F(GroupTest, VariableFunctions) TEST_F(GroupTest, VariableFunctions)
{ {

View File

@ -88,7 +88,7 @@ static void create_molecule_files(const std::string &h2o_filename, const std::st
// whether to print verbose output (i.e. not capturing LAMMPS screen output). // whether to print verbose output (i.e. not capturing LAMMPS screen output).
bool verbose = false; bool verbose = false;
const double EPSILON = 5.0e-14; static const double EPSILON = 5.0e-14;
namespace LAMMPS_NS { namespace LAMMPS_NS {
using ::testing::Eq; using ::testing::Eq;

View File

@ -32,7 +32,7 @@ using testing::StrEq;
using utils::split_words; using utils::split_words;
const double EPSILON = 5.0e-14; static constexpr double EPSILON = 5.0e-14;
#define test_name test_info_->name() #define test_name test_info_->name()