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

Comparing branches/development/src/nonbonded/Morse.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 224 | Line 224 | namespace OpenMD {
224        
225        RealType dudr = *(idat.sw) * *(idat.vdwMult) * (myDeriv - myDerivC);
226        
227 <      idat.pot[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp;
227 >      (*(idat.pot))[VANDERWAALS_FAMILY] += *(idat.sw) * pot_temp;
228        *(idat.f1) = *(idat.d) * dudr / *(idat.rij);
229      }
230      return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines