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

Comparing branches/development/src/restraints/RestraintForceManager.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1760 by gezelter, Thu Jun 21 19:26:46 2012 UTC

# Line 320 | Line 320 | namespace OpenMD {
320      restPot = restPot_local;
321   #endif
322      currSnapshot_ = info_->getSnapshotManager()->getCurrentSnapshot();
323 <    currSnapshot_->statData[Stats::LONG_RANGE_POTENTIAL] += restPot;
324 <    currSnapshot_->statData[Stats::VHARM] = restPot;
323 >    RealType pot = currSnapshot_->getLongRangePotential();
324 >    pot += restPot;
325 >    currSnapshot_->setLongRangePotential(pot);
326 >    currSnapshot_->setRestraintPotential(restPot);
327  
328      //write out forces and current positions of restrained molecules    
329      if (currSnapshot_->getTime() >= currRestTime_){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines