--- trunk/src/primitives/Atom.cpp 2005/01/12 22:41:40 246 +++ trunk/src/primitives/Atom.cpp 2008/01/23 16:38:22 1211 @@ -1,4 +1,4 @@ - /* +/* * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. * * The University of Notre Dame grants you ("Licensee") a @@ -38,31 +38,31 @@ * University of Notre Dame has been advised of the possibility of * such damages. */ - + #include "primitives/Atom.hpp" namespace oopse { + + Atom::Atom(AtomType* at) : StuntDouble(otAtom, &Snapshot::atomData), + atomType_(at) { + mass_ = at->getMass(); + } -Atom::Atom(AtomType* at) : StuntDouble(otAtom, &Snapshot::atomData) ,atomType_(at) { - mass_ = at->getMass(); -} - -Mat3x3d Atom::getI() { + Mat3x3d Atom::getI() { return Mat3x3d::identity(); -} - -std::vector Atom::getGrad() { - std::vector grad(3); + } + + std::vector Atom::getGrad() { + std::vector grad(3); Vector3d force= getFrc(); - + grad[0] = -force[0]; grad[1] = -force[1]; grad[2] = -force[2]; return grad; -} - -void Atom::accept(BaseVisitor* v) { + } + + void Atom::accept(BaseVisitor* v) { v->visit(this); -} - + } }