ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/md_code/Thermo.cpp
(Generate patch)

Comparing trunk/mdtools/md_code/Thermo.cpp (file contents):
Revision 249 by chuckv, Mon Jan 27 21:28:19 2003 UTC vs.
Revision 252 by chuckv, Tue Jan 28 22:16:55 2003 UTC

# Line 1 | Line 1
1   #include <cmath>
2 + #include <iostream>
3 +
4  
5   #ifdef IS_MPI
6   #include <mpi++.h>
# Line 162 | Line 164 | void Thermo::velocitize() {
164    ndf = ndfRaw - n_constraints - 3;
165    kebar = kb * temperature * (double)ndf / ( 2.0 * (double)ndfRaw );
166    
167 +  printf("Entered Velocitize\n");
168    for(vr = 0; vr < n_atoms; vr++){
169      
170      // uses equipartition theory to solve for vbar in angstrom/fs
# Line 199 | Line 202 | void Thermo::velocitize() {
202      x = drand48();
203      y = drand48();
204      vz = vbar * sqrt( -2.0 * log(x)) * cos(2 * M_PI * y);
205 +    printf("Setting new velocities vx: %f\n",vx);
206   #endif // use_spring
207  
208   #ifdef USE_SPRNG

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines