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 2320 by chuckv, Thu Sep 22 00:04:56 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 202 | Line 202 | namespace oopse {
202        
203        info_->getInertiaTensor(inertiaTensor,angularMomentum);
204        // We now need the inverse of the inertia tensor.
205 <      
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 >      */
211        
212 <      inertiaTensor.inverse();
212 >      inertiaTensor =inertiaTensor.inverse();
213 >       std::cerr << "Inertia Tensor after inverse is "
214 >                << inertiaTensor <<  std::endl;
215        
212      
216        omega = inertiaTensor*angularMomentum;
217        
218        SimInfo::MoleculeIterator i;
# Line 231 | Line 234 | namespace oopse {
234        }
235        
236        angularMomentum = info_->getAngularMomentum();
237 +      /*
238        std::cerr << "Angular Momentum after is "
239           << angularMomentum <<  std::endl;
240 <
240 >      */
241        
242     }
243    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines