use constexpr instead of const

This commit is contained in:
Axel Kohlmeyer
2022-01-29 07:56:11 -05:00
parent 9427eb800f
commit 17960c8183

View File

@ -38,9 +38,9 @@ class FixNumDiffVirial : public Fix {
double memory_usage() override;
private:
static const int NDIR_VIRIAL = 6; // dimension of virial and strain vectors
double delta; // strain magnitude
int maxatom; // allocated size of atom arrays
static constexpr int NDIR_VIRIAL = 6; // dimension of virial and strain vectors
double delta; // strain magnitude
int maxatom; // allocated size of atom arrays
int ilevel_respa;
int pair_compute_flag; // 0 if pair->compute is skipped