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

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

# Line 219 | Line 219 | namespace OpenMD {
219        RealType Vang = ca1 * x2 / idat.r2 + cb1 * z / idat.rij + (0.8 - ca1 / 3.0);
220          
221        RealType pot_temp = idat.vdwMult * Vmorse * Vang;
222 <      idat.vpair[0] += pot_temp;
222 >      idat.vpair += pot_temp;
223        idat.pot[0] += idat.sw * pot_temp;
224            
225        Vector3d dVmorsedr = (myDeriv - myDerivC) * Vector3d(x, y, z) / idat.rij;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines