mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1156 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
4fe29877ef
commit
18456c04f9
|
@ -116,7 +116,7 @@ void ComputeEbondAtom::compute_peratom()
|
|||
domain->minimum_image(delx,dely,delz);
|
||||
|
||||
rsq = delx*delx + dely*dely + delz*delz;
|
||||
force->bond->single(type,rsq,i1,i2,0,fforce,eng);
|
||||
force->bond->single(type,rsq,i1,i2,1,fforce,eng);
|
||||
if (iflag) energy[i1] += eng;
|
||||
if (jflag && (newton_bond || i2 < nlocal)) energy[i2] += eng;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue