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_){ |