ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/mpiSimulation.cpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/mpiSimulation.cpp (file contents):
Revision 447 by mmeineke, Thu Apr 3 20:21:54 2003 UTC vs.
Revision 726 by tim, Tue Aug 26 20:37:30 2003 UTC

# Line 10 | Line 10
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)
# Line 66 | Line 64 | int* mpiSimulation::divideLabor( void ){
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  
# Line 82 | Line 80 | int* mpiSimulation::divideLabor( void ){
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines