Merge pull request #1395 from vishalkenchan/fix_unset_variable

Set Coulomb summation cutoff radii when it is explicitly specified
This commit is contained in:
Axel Kohlmeyer 2019-03-29 10:37:29 -04:00 committed by GitHub
commit 677753731f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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