From 6a60dad2c3333312f6c8b428b5756b588549a348 Mon Sep 17 00:00:00 2001 From: Vishal Boddu Date: Fri, 29 Mar 2019 10:02:15 +0100 Subject: [PATCH] Set Coulomb summation cutoff radii in the case it is explicitly specified. --- src/pair_lj_cut_coul_wolf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pair_lj_cut_coul_wolf.cpp b/src/pair_lj_cut_coul_wolf.cpp index 2f796ded12..55aff0d7c5 100644 --- a/src/pair_lj_cut_coul_wolf.cpp +++ b/src/pair_lj_cut_coul_wolf.cpp @@ -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;