| # | Line 52 | Line 52 | namespace OpenMD { | |
|---|---|---|
| 52 | RealType r = del.length(); | |
| 53 | Vector3d frc = -kDisp_ * del; | |
| 54 | RealType p = 0.5 * kDisp_ * del.lengthSquare(); | |
| 55 | + | |
| 56 | pot_ = p; | |
| 57 | force_ = frc * scaleFactor_; | |
| 58 | restInfo_[rtDisplacement] = std::make_pair(r,p); | |
| – | Removed lines | 
| + | Added lines | 
| < | Changed lines | 
| > | Changed lines |