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:
Markus Hoehnerbach 2017-03-23 17:37:49 +01:00
parent 49e83b4348
commit f127e428cc
1 changed files with 1 additions and 8 deletions

View File

@ -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;
}