| 1 | 
< | 
 /* | 
| 1 | 
> | 
/* | 
| 2 | 
  | 
 * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. | 
| 3 | 
  | 
 * | 
| 4 | 
  | 
 * The University of Notre Dame grants you ("Licensee") a | 
| 52 | 
  | 
 | 
| 53 | 
  | 
 | 
| 54 | 
  | 
 | 
| 55 | 
< | 
/** | 
| 56 | 
< | 
 * @class ParallelRandNumGen a parallel random number generator | 
| 57 | 
< | 
 * @note use SeqRandNumGen if you want a non-parallel random number generator. | 
| 58 | 
< | 
 */ | 
| 59 | 
< | 
class ParallelRandNumGen : public RandNumGen{ | 
| 60 | 
< | 
    public: | 
| 61 | 
< | 
        typedef unsigned long uint32;  | 
| 55 | 
> | 
  /** | 
| 56 | 
> | 
   * @class ParallelRandNumGen a parallel random number generator | 
| 57 | 
> | 
   * @note use SeqRandNumGen if you want a non-parallel random number generator. | 
| 58 | 
> | 
   */ | 
| 59 | 
> | 
  class ParallelRandNumGen : public RandNumGen{ | 
| 60 | 
> | 
  public: | 
| 61 | 
> | 
    typedef unsigned long uint32;  | 
| 62 | 
  | 
         | 
| 63 | 
< | 
        ParallelRandNumGen( const uint32& oneSeed); | 
| 63 | 
> | 
    ParallelRandNumGen( const uint32& oneSeed); | 
| 64 | 
  | 
 | 
| 65 | 
< | 
        ParallelRandNumGen(); | 
| 65 | 
> | 
    ParallelRandNumGen(); | 
| 66 | 
  | 
         | 
| 67 | 
< | 
        virtual void seed( const uint32 oneSeed ); | 
| 67 | 
> | 
    virtual void seed( const uint32 oneSeed ); | 
| 68 | 
  | 
         | 
| 69 | 
< | 
        virtual void seed(); | 
| 69 | 
> | 
    virtual void seed(); | 
| 70 | 
  | 
 | 
| 71 | 
< | 
    private: | 
| 71 | 
> | 
  private: | 
| 72 | 
  | 
         | 
| 73 | 
< | 
         ParallelRandNumGen(const ParallelRandNumGen&); | 
| 74 | 
< | 
         ParallelRandNumGen& operator =(const ParallelRandNumGen&); | 
| 73 | 
> | 
    ParallelRandNumGen(const ParallelRandNumGen&); | 
| 74 | 
> | 
    ParallelRandNumGen& operator =(const ParallelRandNumGen&); | 
| 75 | 
  | 
 | 
| 76 | 
< | 
        static int nCreatedRNG_; /**< number of created random number of generator*/ | 
| 77 | 
< | 
        int myRank_; /**@todo Fixed Me */ | 
| 78 | 
< | 
}; | 
| 76 | 
> | 
    static int nCreatedRNG_; /**< number of created random number of generator*/ | 
| 77 | 
> | 
    int myRank_; /**@todo Fixed Me */ | 
| 78 | 
> | 
  }; | 
| 79 | 
  | 
 | 
| 80 | 
  | 
} | 
| 81 | 
  | 
#endif |