Changeset 543ce4 for molecuilder/src/atom_trajectoryparticle.cpp
- Timestamp:
- Nov 4, 2009, 7:56:04 PM (16 years ago)
- Children:
- 4ef101, aa8542
- Parents:
- ec70ec
- File:
-
- 1 edited
-
molecuilder/src/atom_trajectoryparticle.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/atom_trajectoryparticle.cpp
rec70ec r543ce4 10 10 #include "config.hpp" 11 11 #include "element.hpp" 12 #include "log.hpp" 12 13 #include "parser.hpp" 13 14 #include "verbose.hpp" … … 71 72 { 72 73 if (Trajectory.R.size() <= (unsigned int)(MaxSteps)) { 73 // cout<< "Increasing size for trajectory array of " << keyword << " to " << (MaxSteps+1) << "." << endl;74 //Log() << Verbose(0) << "Increasing size for trajectory array of " << keyword << " to " << (MaxSteps+1) << "." << endl; 74 75 Trajectory.R.resize(MaxSteps+1); 75 76 Trajectory.U.resize(MaxSteps+1); … … 120 121 // out << ")\t("; 121 122 // for (int d=0;d<NDIM;d++) 122 // cout<< Trajectory.U.at(NextStep).x[d] << " "; // next step123 // Log() << Verbose(0) << Trajectory.U.at(NextStep).x[d] << " "; // next step 123 124 // out << ")" << endl; 124 125 }; … … 197 198 // throw a dice to determine whether it gets hit by a heat bath particle 198 199 if (((((rand()/(double)RAND_MAX))*configuration->TempFrequency) < 1.)) { 199 cout<< Verbose(3) << "Particle " << *this << " was hit (sigma " << sigma << "): " << sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << " -> ";200 Log() << Verbose(3) << "Particle " << *this << " was hit (sigma " << sigma << "): " << sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << " -> "; 200 201 // pick three random numbers from a Boltzmann distribution around the desired temperature T for each momenta axis 201 202 for (int d=0; d<NDIM; d++) { 202 203 U[d] = gsl_ran_gaussian (r, sigma); 203 204 } 204 cout<< sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << endl;205 Log() << Verbose(0) << sqrt(U[0]*U[0]+U[1]*U[1]+U[2]*U[2]) << endl; 205 206 } 206 207 for (int d=0; d<NDIM; d++)
Note:
See TracChangeset
for help on using the changeset viewer.
