--- trunk/src/restraints/MolecularRestraint.cpp 2009/11/25 20:02:06 1390 +++ branches/development/src/restraints/MolecularRestraint.cpp 2010/07/09 23:08:25 1465 @@ -48,6 +48,7 @@ namespace OpenMD { namespace OpenMD { + void MolecularRestraint::calcForce(std::vector struc, Vector3d molCom){ @@ -141,16 +142,9 @@ namespace OpenMD { Quat4d quat = A.toQuaternion(); - quat.getTwistSwingAxisAngle(twistAngle, swingAngle, swingAxis); - RealType tw, sx, sy, ttw, swingX, swingY; - quat.toTwistSwing(tw, sx, sy); - quat.toSwingTwist(swingX, swingY, ttw); + quat.toSwingTwist(swingX, swingY, twistAngle); - // std::cerr << eularAngles << "\t[" << twistAngle << "," << swingAngle << - // "]\t[" << tw << "," << sx << "," << sy << "]\t[" << ttw << - // "," << ssx << "," << ssy << "]" << std::endl; - RealType dVdtwist, dVdswing, dVdswingX, dVdswingY; RealType dTwist, dSwing, dSwingX, dSwingY; RealType p;