--- trunk/src/primitives/GhostTorsion.cpp 2005/01/25 17:45:23 273 +++ trunk/src/primitives/GhostTorsion.cpp 2005/04/15 22:04:00 507 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -43,11 +43,11 @@ namespace oopse { namespace oopse { -GhostTorsion::GhostTorsion(Atom *atom1, Atom *atom2, DirectionalAtom* ghostAtom, - TorsionType *tt) : Torsion(atom1, atom2, ghostAtom, ghostAtom, tt) {} + GhostTorsion::GhostTorsion(Atom *atom1, Atom *atom2, DirectionalAtom* ghostAtom, + TorsionType *tt) : Torsion(atom1, atom2, ghostAtom, ghostAtom, tt) {} -void GhostTorsion::calcForce() { - DirectionalAtom* ghostAtom = static_cast(atom2_); + void GhostTorsion::calcForce() { + DirectionalAtom* ghostAtom = static_cast(atom3_); Vector3d pos1 = atom1_->getPos(); Vector3d pos2 = atom2_->getPos(); @@ -92,7 +92,7 @@ void GhostTorsion::calcForce() { f3.negate(); ghostAtom->addTrq(cross(r43, f3)); -} + } }