ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/primitives/Bond.hpp
(Generate patch)

Comparing trunk/src/primitives/Bond.hpp (file contents):
Revision 1211 by gezelter, Wed Jan 23 16:38:22 2008 UTC vs.
Revision 1309 by gezelter, Tue Oct 21 18:23:31 2008 UTC

# Line 72 | Line 72 | namespace oopse {
72        bondType_->calcForce(len,  potential_, dvdr);
73        
74        force = r12 * (-dvdr / len);
75 <      
75 >
76        atom1_->addFrc(-force);
77        atom2_->addFrc(force);
78 +    
79 +      atom1_->addParticlePot(potential_);
80 +      atom2_->addParticlePot(potential_);
81      }
82      
83      RealType getPotential() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines