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