--- trunk/mdtools/md_code/Thermo.cpp 2003/01/27 21:28:19 249 +++ trunk/mdtools/md_code/Thermo.cpp 2003/01/30 15:20:21 253 @@ -1,4 +1,6 @@ #include +#include +using namespace std; #ifdef IS_MPI #include @@ -14,7 +16,10 @@ Thermo::Thermo( SimInfo* the_entry_plug ) { Thermo::Thermo( SimInfo* the_entry_plug ) { entry_plug = the_entry_plug; int baseSeed = BASE_SEED; + + cerr << "creating thermo stream\n"; gaussStream = new gaussianSPRNG( baseSeed ); + cerr << "created thermo stream\n"; } Thermo::~Thermo(){ @@ -199,6 +204,7 @@ void Thermo::velocitize() { x = drand48(); y = drand48(); vz = vbar * sqrt( -2.0 * log(x)) * cos(2 * M_PI * y); + #endif // use_spring #ifdef USE_SPRNG