ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/integrators/Velocitizer.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/integrators/Velocitizer.cpp (file contents):
Revision 2252 by chuckv, Mon May 30 14:01:52 2005 UTC vs.
Revision 2256 by chuckv, Tue May 31 22:31:54 2005 UTC

# Line 157 | Line 157 | namespace oopse {
157      
158      removeComDrift();
159      // Remove angular drift if we are not using periodic boundary conditions.
160 <    if(simParams->getPBC()) removeAngularDrift();
160 >    if(!simParams->getPBC()) removeAngularDrift();
161      
162    }
163    
# Line 204 | Line 204 | namespace oopse {
204        // We now need the inverse of the inertia tensor.
205        
206        std::cerr << "Angular Momentum before is "
207 <         << angularMomentum <<  std::endl;
208 <
207 >                << angularMomentum <<  std::endl;
208 >      std::cerr << "Inertia Tensor before is "
209 >                << inertiaTensor <<  std::endl;
210        
210      inertiaTensor.inverse();
211        
212 +      inertiaTensor =inertiaTensor.inverse();
213 +       std::cerr << "Inertia Tensor after inverse is "
214 +                << inertiaTensor <<  std::endl;
215        
216        omega = inertiaTensor*angularMomentum;
217        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines