forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2627 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
381f4f97b9
commit
c3e5f44e39
|
@ -581,9 +581,11 @@ double PairHybrid::single(int i, int j, int itype, int jtype,
|
|||
double esum = 0.0;
|
||||
|
||||
for (int m = 0; m < nmap[itype][jtype]; m++) {
|
||||
esum += styles[map[itype][jtype][m]]->
|
||||
single(i,j,itype,jtype,rsq,factor_coul,factor_lj,fone);
|
||||
fforce += fone;
|
||||
if (rsq < styles[map[itype][jtype][m]]->cutsq[itype][jtype]) {
|
||||
esum += styles[map[itype][jtype][m]]->
|
||||
single(i,j,itype,jtype,rsq,factor_coul,factor_lj,fone);
|
||||
fforce += fone;
|
||||
}
|
||||
}
|
||||
|
||||
return esum;
|
||||
|
|
Loading…
Reference in New Issue