ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/no-template-branch/OOPSE/libmdtools/BondExtensions.cpp
(Generate patch)

Comparing:
trunk/OOPSE/libmdtools/BondExtensions.cpp (file contents), Revision 564 by mmeineke, Tue Jun 24 19:57:54 2003 UTC vs.
branches/no-template-branch/OOPSE/libmdtools/BondExtensions.cpp (file contents), Revision 831, Tue Oct 28 16:20:29 2003 UTC

# Line 29 | Line 29 | double HarmonicBond::bond_force( double r_ab ){
29    dr = r_ab - d0;
30    dr2 = dr * dr;
31  
32 <  c_potential_E = k0 * dr2;
33 <  force = -2.0 * k0 * dr;
32 >  c_potential_E = 0.5 * k0 * dr2;
33 >  force = - k0 * dr;
34    return force;
35  
36   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines