ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/nonbonded/Sticky.cpp
(Generate patch)

Comparing branches/development/src/nonbonded/Sticky.cpp (file contents):
Revision 1545 by gezelter, Fri Apr 8 21:25:19 2011 UTC vs.
Revision 1549 by gezelter, Wed Apr 27 18:38:15 2011 UTC

# Line 342 | Line 342 | namespace OpenMD {
342            dspdr = 0.0;
343          }
344          
345 <        idat.vpair[2] += 0.5*(v0*s*w + v0p*sp*wp);
345 >        idat.vpair += 0.5*(v0*s*w + v0p*sp*wp);
346          idat.pot[2] += 0.5*(v0*s*w + v0p*sp*wp)*idat.sw;
347          
348          // do the torques first since they are easy:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines