Unverified Commit 67775373 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1395 from vishalkenchan/fix_unset_variable

Set Coulomb summation cutoff radii when it is explicitly specified
parents 30929d95 6a60dad2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -217,7 +217,8 @@ void PairLJCutCoulWolf::settings(int narg, char **arg)

  alf = force->numeric(FLERR,arg[0]);
  cut_lj_global = force->numeric(FLERR,arg[1]);
  if (narg == 2) cut_coul = cut_lj_global;
  if (narg == 3) cut_coul = force->numeric(FLERR,arg[2]);
  else           cut_coul = cut_lj_global;

  if (allocated) {
    int i,j;