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 1571 by gezelter, Fri May 27 16:45:44 2011 UTC vs.
Revision 1582 by gezelter, Tue Jun 14 20:41:44 2011 UTC

# Line 343 | Line 343 | namespace OpenMD {
343          }
344          
345          *(idat.vpair) += 0.5*(v0*s*w + v0p*sp*wp);
346 <        idat.pot[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ;
346 >        (*(idat.pot))[HYDROGENBONDING_FAMILY] += 0.5*(v0*s*w + v0p*sp*wp)* *(idat.sw) ;
347          
348          // do the torques first since they are easy:
349          // remember that these are still in the body-fixed axes

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines