OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
RNGXDiv.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
2 /***************************************************************************
3  *
4  * The IPPL Framework
5  *
6  * This program was prepared by PSI.
7  * All rights in the program are reserved by PSI.
8  * Neither PSI nor the author(s)
9  * makes any warranty, express or implied, or assumes any liability or
10  * responsibility for the use of this software
11  *
12  * Visit www.amas.web.psi for more details
13  *
14  ***************************************************************************/
15 
16 // -*- C++ -*-
17 /***************************************************************************
18  *
19  * The IPPL Framework
20  *
21  *
22  * Visit http://people.web.psi.ch/adelmann/ for more details
23  *
24  ***************************************************************************/
25 
26 // include files
27 #include "Utility/RNGXDiv.h"
28 
29 // initialize static variables for RNGXDiv
30 const double RNGXDiv::SQR_RANMAX = 16777216.0; // 2^24
31 const double RNGXDiv::RANDOM_MAX = 16777216.0*16777216.0; // 2^48
33 const double RNGXDiv::INV_RANMAX = 1.0/RNGXDiv::RANDOM_MAX;
34 const double RNGXDiv::SeedMultUpper = 13008944.0;
35 const double RNGXDiv::SeedMultLower = 170125.0;
36 const double RNGXDiv::RandMultUpper = 1136868.0;
37 const double RNGXDiv::RandMultLower = 6328637.0;
38 const double RNGXDiv::FirstSeed = 1953125.0*9765625.0; // 5^19
39 
40 
41 /***************************************************************************
42  * $RCSfile: RNGXDiv.cpp,v $ $Author: adelmann $
43  * $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:33 $
44  * IPPL_VERSION_ID: $Id: RNGXDiv.cpp,v 1.1.1.1 2003/01/23 07:40:33 adelmann Exp $
45  ***************************************************************************/
static const double INV_SQR_RANMAX
Definition: RNGXDiv.h:115
static const double RandMultUpper
Definition: RNGXDiv.h:119
static const double INV_RANMAX
Definition: RNGXDiv.h:116
static const double FirstSeed
Definition: RNGXDiv.h:121
static const double SeedMultLower
Definition: RNGXDiv.h:118
static const double SeedMultUpper
Definition: RNGXDiv.h:117
static const double RandMultLower
Definition: RNGXDiv.h:120
static const double SQR_RANMAX
Definition: RNGXDiv.h:114
static const double RANDOM_MAX
Definition: RNGXDiv.h:113