ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/randomSPRNG.hpp
(Generate patch)

Comparing trunk/mdtools/headers/randomSPRNG.hpp (file contents):
Revision 218 by chuckv, Sun Dec 29 19:11:05 2002 UTC vs.
Revision 220 by chuckv, Mon Dec 30 16:20:42 2002 UTC

# Line 1 | Line 1
1   #idndef __randomSPRNG_H
2   #define __randomSPRNG_H
3  
4 + /* Define the random number generator used by SPRNG
5 +   to be type 3 = Combined Multiple Recursive Generator.
6 + */
7 + #define GTYPE 3
8 + #ifdef IS_MPI
9 + #define USE_MPI
10 + #endif
11  
12 + class ranStreamSPRNG{
13 + public:
14 +  ranStreamSPRNG();
15 +  ~ranStreamSPRNG();
16 +
17 +  double getRanStreamSPRNG();
18 +  friend class gaussianSPRNG;
19 + private:
20 +  int *thisStream;
21 +  int myStreamNumber;
22 +  static int nSPRNGStreams;
23 +
24 + }
25 +
26 +
27   class gaussianSPRNG{
28   public:
29  
# Line 9 | Line 31 | class gaussianSPRNG{ (public)
31    ~gaussianSPRNG();
32  
33    double getGaussianSPRNG();
12 }
34  
35 < class ranStreamSPRNG{
36 < public:
16 <  ranStreamSPRNG();
17 <  ~ranStreamSPRNG();
18 <
19 <  double getRanStreamSPRNG();
35 > private:
36 >  int
37   }
38  
39  
40 +
41   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines