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

Comparing branches/new_design/OOPSE-3.0/src/integrators/Velocitizer.cpp (file contents):
Revision 1774 by tim, Tue Nov 23 23:12:23 2004 UTC vs.
Revision 1819 by tim, Wed Dec 1 22:45:49 2004 UTC

# Line 24 | Line 24
24   */
25  
26   #include "integrators/Velocitizer.hpp"
27 + #include "math/SquareMatrix3.hpp"
28 + #include "primitives/Molecule.hpp"
29 + #include "primitives/StuntDouble.hpp"
30 + #include "math/randomSPRNG.hpp"
31  
32   namespace oopse {
33  
# Line 36 | Line 40 | void Velocitizer::velocitize(double temperature) {
40      int n;
41      Vector3d vdrift;
42      double vbar;
43 <    const double kb = 8.31451e - 7; // kb in amu, angstroms, fs, etc.
43 >    /**@todo refactory kb */
44 >    const double kb = 8.31451e-7; // kb in amu, angstroms, fs, etc.
45      double av2;
46      double kebar;
47  
48 <    std::vector<Molecule *>::iterator i;
49 <    std::vector<StuntDouble *>::iterator j;
48 >    SimInfo::MoleculeIterator i;
49 >    Molecule::IntegrableObjectIterator j;
50      Molecule * mol;
51      StuntDouble * integrableObject;
52      gaussianSPRNG gaussStream(info_->getSeed());
# Line 93 | Line 98 | void Velocitizer::velocitize(double temperature) {
98          }
99      }             //end for (mol = beginMolecule(i); ...)
100  
96    // Get the Center of Mass drift velocity.
97    vdrift = info_->getComVel();
101  
99    removeComDrift(vdrift);
102  
103 +    removeComDrift();
104 +
105   }
106  
107  
108  
109 < void Velocitizer::removeComDrift(const Vector3d& vdrift) {
110 <
111 <    std::vector<Molecule *>::iterator i;
112 <    std::vector<StuntDouble *>::iterator j;
109 > void Velocitizer::removeComDrift() {
110 >    // Get the Center of Mass drift velocity.
111 >    Vector3d vdrift = info_->getComVel();
112 >    
113 >    SimInfo::MoleculeIterator i;
114 >    Molecule::IntegrableObjectIterator j;
115      Molecule * mol;
116      StuntDouble * integrableObject;
117      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines