refactor constant vs define in edip pair styles
This commit is contained in:
@ -46,7 +46,7 @@ using namespace LAMMPS_NS;
|
||||
|
||||
// max number of interaction per atom for f(Z) environment potential
|
||||
|
||||
#define leadDimInteractionList 64
|
||||
static constexpr int leadDimInteractionList = 64;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
|
||||
@ -32,13 +32,11 @@
|
||||
#include "error.h"
|
||||
#include "citeme.h"
|
||||
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
#define MAXLINE 1024
|
||||
#define DELTA 4
|
||||
|
||||
|
||||
static const char cite_pair_edip[] =
|
||||
"@article{cjiang2012\n"
|
||||
" author = {Jian, Chao and Morgan, Dane, and Szlufarska, Izabella},\n"
|
||||
@ -56,7 +54,9 @@ static const char cite_pair_edip[] =
|
||||
" year = {2010},\n"
|
||||
"}\n\n";
|
||||
|
||||
// max number of interaction per atom for f(Z) environment potential
|
||||
|
||||
static constexpr int leadDimInteractionList = 64;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@ -94,7 +94,6 @@ PairEDIPMulti::~PairEDIPMulti()
|
||||
memory->destroy(cutsq);
|
||||
delete [] map;
|
||||
|
||||
//XXX deallocateGrids();
|
||||
deallocatePreLoops();
|
||||
}
|
||||
}
|
||||
|
||||
@ -62,10 +62,6 @@ class PairEDIPMulti : public Pair {
|
||||
int maxparam; // max # of parameter sets
|
||||
Param *params; // parameter set for an I-J-K interaction
|
||||
|
||||
// max number of interaction per atom for f(Z) environment potential
|
||||
|
||||
static const int leadDimInteractionList = 64;
|
||||
|
||||
void allocate();
|
||||
void allocatePreLoops(void);
|
||||
void deallocatePreLoops(void);
|
||||
|
||||
@ -28,7 +28,7 @@ using namespace LAMMPS_NS;
|
||||
|
||||
// max number of interaction per atom for f(Z) environment potential
|
||||
|
||||
#define leadDimInteractionList 64
|
||||
static constexpr int leadDimInteractionList = 64;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user