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 220 by chuckv, Mon Dec 30 16:20:42 2002 UTC vs.
Revision 249 by chuckv, Mon Jan 27 21:28:19 2003 UTC

# Line 1 | Line 1
1 < #idndef __randomSPRNG_H
1 > #ifndef __randomSPRNG_H
2   #define __randomSPRNG_H
3  
4   /* Define the random number generator used by SPRNG
# Line 9 | Line 9
9   #define USE_MPI
10   #endif
11  
12 < class ranStreamSPRNG{
12 > class randomSPRNG{
13   public:
14 <  ranStreamSPRNG();
15 <  ~ranStreamSPRNG();
14 >  randomSPRNG(int myseed);
15 >  ~randomSPRNG();
16  
17 <  double getRanStreamSPRNG();
18 <  friend class gaussianSPRNG;
19 < private:
17 >  double getRandom();
18 >
19 > protected:
20    int *thisStream;
21    int myStreamNumber;
22 <  static int nSPRNGStreams;
22 >  int nSPRNGStreams;
23 >  static int nStreamsInitialized;
24  
25 < }
25 > };
26  
27  
28 < class gaussianSPRNG{
28 > class gaussianSPRNG : protected randomSPRNG{
29 >
30   public:
31 +  gaussianSPRNG(int iseed):randomSPRNG(iseed){}
32 +  ~gaussianSPRNG(){}
33  
34 <  gaussianSPRNG();
31 <  ~gaussianSPRNG();
34 >  double getGaussian();
35  
36 <  double getGaussianSPRNG();
36 > protected:
37  
38 < private:
36 <  int
37 < }
38 > };
39  
40  
41  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines