--- trunk/src/restraints/RestraintForceManager.cpp 2014/09/22 19:18:35 2020 +++ trunk/src/restraints/RestraintForceManager.cpp 2015/03/07 21:41:51 2071 @@ -329,9 +329,6 @@ namespace OpenMD { #endif currSnapshot_ = info_->getSnapshotManager()->getCurrentSnapshot(); - RealType pot = currSnapshot_->getLongRangePotential(); - pot += restPot; - currSnapshot_->setLongRangePotential(pot); currSnapshot_->setRestraintPotential(restPot); //write out forces and current positions of restrained molecules @@ -345,11 +342,11 @@ namespace OpenMD { std::vector::const_iterator rm; GenericData* data; Molecule::IntegrableObjectIterator ioi; - MolecularRestraint* mRest; + MolecularRestraint* mRest = NULL; StuntDouble* sd; std::vector::const_iterator ro; - ObjectRestraint* oRest; + ObjectRestraint* oRest = NULL; std::map restInfo;