OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
RandomNumberGen.h
Go to the documentation of this file.
1// -*- C++ -*-
2/***************************************************************************
3 *
4 * The IPPL Framework
5 *
6 ***************************************************************************/
7
8#ifndef RANDOM_NUMBER_GEN_H
9#define RANDOM_NUMBER_GEN_H
10
11/***********************************************************************
12 *
13 * class RandomNumberGen
14 *
15 * RandomNumberGen is actually just a typedef for one of the many
16 * RNGSequence classes available in IPPL. It is selected by examining the
17 * values of #define's. Other RNGSequence classes may be used in a program,
18 * but using RandomNumberGen give you the 'default' RNGSequence type as
19 * selected at compile time.
20 *
21 * When using Random or Distributed number sequences, include this file.
22 *
23 ***********************************************************************/
24
25#include "Utility/RNGXDiv.h"
26
28
29// a default RandomNumberGen object for use in the Framework. When
30// running in parallel, the Ippl object will advance this by the
31// node number so as to have different RNG sequences on each node. If the
32// same RNG sequence is needed on each node, the user must instantiate their
33// own RNG sequence object and use that.
35
36#endif // RANDOM_NUMBER_GEN_H
RNGXDivSequence RandomNumberGen
RandomNumberGen IpplRandom