OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
RandomNumberGen.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  *
4  * The IPPL Framework
5  *
6  *
7  * Visit http://people.web.psi.ch/adelmann/ for more details
8  *
9  ***************************************************************************/
10 
11 #ifndef RANDOM_NUMBER_GEN_H
12 #define RANDOM_NUMBER_GEN_H
13 
14 /***********************************************************************
15  *
16  * class RandomNumberGen
17  *
18  * RandomNumberGen is actually just a typedef for one of the many
19  * RNGSequence classes available in IPPL. It is selected by examining the
20  * values of #define's. Other RNGSequence classes may be used in a program,
21  * but using RandomNumberGen give you the 'default' RNGSequence type as
22  * selected at compile time.
23  *
24  * When using Random or Distributed number sequences, include this file.
25  *
26  ***********************************************************************/
27 
28 // include files
29 #include "Utility/RNGRand.h"
30 #include "Utility/RNGSimple.h"
31 #include "Utility/RNGXDiv.h"
32 #include "Utility/RNGXCI.h"
33 
34 // typedef for the default RNG ... selected by #define
35 #if defined(IPPL_USE_XDIV_RNG)
37 #elif defined(IPPL_USE_RAND_RNG)
39 #elif defined(IPPL_USE_SIMPLE_RNG)
41 #elif defined(IPPL_USE_XCI_RNG)
43 #else
45 #endif
46 
47 
48 // a default RandomNumberGen object for use in the Framework. When
49 // running in parallel, the Ippl object will advance this by the
50 // node number so as to have different RNG sequences on each node. If the
51 // same RNG sequence is needed on each node, the user must instantiate their
52 // own RNG sequence object and use that.
54 
55 
56 #endif // RANDOM_NUMBER_GEN_H
57 
58 /***************************************************************************
59  * $RCSfile: RandomNumberGen.h,v $ $Author: adelmann $
60  * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $
61  * IPPL_VERSION_ID: $Id: RandomNumberGen.h,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $
62  ***************************************************************************/
RandomNumberGen IpplRandom
RNGSimpleSequence RandomNumberGen