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 2256 by chuckv, Tue May 31 22:31:54 2005 UTC vs.
Revision 2364 by tim, Thu Oct 13 22:26:47 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->getUsePeriodicBoundaryConditions()) 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        std::cerr << "Inertia Tensor before is "
209                  << inertiaTensor <<  std::endl;
210 +      */
211        
211      
212        inertiaTensor =inertiaTensor.inverse();
213 +      /*
214         std::cerr << "Inertia Tensor after inverse is "
215                  << inertiaTensor <<  std::endl;
216 <      
216 >      */
217        omega = inertiaTensor*angularMomentum;
218        
219        SimInfo::MoleculeIterator i;
# Line 234 | Line 235 | namespace oopse {
235        }
236        
237        angularMomentum = info_->getAngularMomentum();
238 +      /*
239        std::cerr << "Angular Momentum after is "
240           << angularMomentum <<  std::endl;
241 <
241 >      */
242        
243     }
244    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines