ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/test/brains/RigidBody.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/test/brains/RigidBody.cpp (file contents):
Revision 1823 by tim, Mon Nov 1 19:57:07 2004 UTC vs.
Revision 1824 by tim, Thu Dec 2 03:12:25 2004 UTC

# Line 33 | Line 33 | void RigidBody::setPrevA(const RotMat3x3d& a) {
33  
34   void RigidBody::setPrevA(const RotMat3x3d& a) {
35      ((snapshotMan_->getPrevSnapshot())->*storage_).aMat[localIndex_] = a;
36 <    ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);
36 >    ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColumn(2);
37  
38      std::vector<Atom*>::iterator i;
39      for (i = atoms_.begin(); i != atoms_.end(); ++i) {
# Line 47 | Line 47 | void RigidBody::setA(const RotMat3x3d& a) {
47        
48   void RigidBody::setA(const RotMat3x3d& a) {
49      ((snapshotMan_->getCurrentSnapshot())->*storage_).aMat[localIndex_] = a;
50 <    ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);
50 >    ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColumn(2);
51  
52      std::vector<Atom*>::iterator i;
53      for (i = atoms_.begin(); i != atoms_.end(); ++i) {
# Line 59 | Line 59 | void RigidBody::setA(const RotMat3x3d& a, int snapshot
59      
60   void RigidBody::setA(const RotMat3x3d& a, int snapshotNo) {
61      ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).aMat[localIndex_] = a;
62 <    ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColum(2);    
62 >    ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_] = a.inverse() * sU_.getColumn(2);    
63  
64      std::vector<Atom*>::iterator i;
65      for (i = atoms_.begin(); i != atoms_.end(); ++i) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines