forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9038 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
dd022fc64f
commit
31c2a6f05f
|
@ -150,6 +150,7 @@ void PairBuckCoulLong::compute(int eflag, int vflag)
|
|||
} else forcecoul = 0.0;
|
||||
|
||||
if (rsq < cut_ljsq[itype][jtype]) {
|
||||
r = sqrt(rsq);
|
||||
r6inv = r2inv*r2inv*r2inv;
|
||||
rexp = exp(-r*rhoinv[itype][jtype]);
|
||||
forcebuck = buck1[itype][jtype]*r*rexp - buck2[itype][jtype]*r6inv;
|
||||
|
|
Loading…
Reference in New Issue