Commit f127e428 authored by Markus Hoehnerbach's avatar Markus Hoehnerbach
Browse files

Fix airebo/morse

Introduced in b3d2fb91, PCCf_2_0 does not get initialized in ::settings
in PairAIREBOMorse. Future proof by calling super-class.
parent 49e83b43
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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;
}