10 |
|
#include "fortranWrappers.hpp" |
11 |
|
#include "randomSPRNG.hpp" |
12 |
|
|
13 |
– |
#define BASE_SEED 123456789 |
14 |
– |
|
13 |
|
mpiSimulation* mpiSim; |
14 |
|
|
15 |
|
mpiSimulation::mpiSimulation(SimInfo* the_entryPlug) |
64 |
|
int nmol_global, natoms_global; |
65 |
|
int local_index, index; |
66 |
|
int smallDiff, bigDiff; |
67 |
< |
int baseSeed = BASE_SEED; |
67 |
> |
int baseSeed = entryPlug->getSeed(); |
68 |
|
|
69 |
|
int testSum; |
70 |
|
|
80 |
|
mpiPlug->nSRIGlobal = entryPlug->n_SRI; |
81 |
|
mpiPlug->nMolGlobal = entryPlug->n_mol; |
82 |
|
|
83 |
+ |
|
84 |
|
myRandom = new randomSPRNG( baseSeed ); |
85 |
|
|
86 |
|
a = 3.0 * (double)mpiPlug->nMolGlobal / (double)mpiPlug->nAtomsGlobal; |