forked from lijiext/lammps
Fix airebo/morse
Introduced in b3d2fb91
, PCCf_2_0 does not get initialized in ::settings
in PairAIREBOMorse. Future proof by calling super-class.
This commit is contained in:
parent
49e83b4348
commit
f127e428cc
|
@ -27,14 +27,7 @@ PairAIREBOMorse::PairAIREBOMorse(LAMMPS *lmp) : PairAIREBO(lmp) {}
|
|||
|
||||
void PairAIREBOMorse::settings(int narg, char **arg)
|
||||
{
|
||||
if (narg != 1 && narg != 3) error->all(FLERR,"Illegal pair_style command");
|
||||
|
||||
cutlj = force->numeric(FLERR,arg[0]);
|
||||
|
||||
if (narg == 3) {
|
||||
ljflag = force->inumeric(FLERR,arg[1]);
|
||||
torflag = force->inumeric(FLERR,arg[2]);
|
||||
}
|
||||
PairAIREBOMorse::settings(narg, arg);
|
||||
|
||||
morseflag = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue