diff --git a/src/Action_SetVelocity.cpp b/src/Action_SetVelocity.cpp index 82cc6cee9c..fad13de412 100644 --- a/src/Action_SetVelocity.cpp +++ b/src/Action_SetVelocity.cpp @@ -140,10 +140,7 @@ Action::RetType Action_SetVelocity::Setup(ActionSetup& setup) { // Action_SetVelocity::DoAction() Action::RetType Action_SetVelocity::DoAction(int frameNum, ActionFrame& frm) { - std::copy( frm.Frm().xAddress(), frm.Frm().xAddress() + frm.Frm().size(), newFrame_.xAddress() ); - if (frm.Frm().HasVelocity()) - std::copy( frm.Frm().vAddress(), frm.Frm().vAddress() + frm.Frm().size(), - newFrame_.vAddress() ); + newFrame_.SetFrame( frm.Frm() ); if (mode_ == ZERO) { for (AtomMask::const_iterator atom = Mask_.begin(); atom != Mask_.end(); ++atom) { diff --git a/src/Version.h b/src/Version.h index 8f08c1d2be..8a4e4929fa 100644 --- a/src/Version.h +++ b/src/Version.h @@ -12,7 +12,7 @@ * Whenever a number that precedes is incremented, all subsequent * numbers should be reset to 0. */ -#define CPPTRAJ_INTERNAL_VERSION "V7.8.0" +#define CPPTRAJ_INTERNAL_VERSION "V7.9.0" /// PYTRAJ relies on this #define CPPTRAJ_VERSION_STRING CPPTRAJ_INTERNAL_VERSION #endif