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