1 |
|
#include <cmath> |
2 |
+ |
#include <iostream> |
3 |
+ |
using namespace std; |
4 |
|
|
5 |
|
#ifdef IS_MPI |
6 |
|
#include <mpi++.h> |
16 |
|
Thermo::Thermo( SimInfo* the_entry_plug ) { |
17 |
|
entry_plug = the_entry_plug; |
18 |
|
int baseSeed = BASE_SEED; |
19 |
+ |
|
20 |
+ |
cerr << "creating thermo stream\n"; |
21 |
|
gaussStream = new gaussianSPRNG( baseSeed ); |
22 |
+ |
cerr << "created thermo stream\n"; |
23 |
|
} |
24 |
|
|
25 |
|
Thermo::~Thermo(){ |
204 |
|
x = drand48(); |
205 |
|
y = drand48(); |
206 |
|
vz = vbar * sqrt( -2.0 * log(x)) * cos(2 * M_PI * y); |
207 |
+ |
|
208 |
|
#endif // use_spring |
209 |
|
|
210 |
|
#ifdef USE_SPRNG |