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

Comparing branches/development/src/nonbonded/LJ.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 279 | Line 279 | namespace OpenMD {
279        }
280  
281        RealType pot_temp = idat.vdwMult * epsilon * (myPot - myPotC);
282 <      idat.vpair[0] += pot_temp;
282 >      idat.vpair += pot_temp;
283        
284        RealType dudr = idat.sw * idat.vdwMult * epsilon * (myDeriv -
285                                                            myDerivC)*sigmai;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines