SABER
|
Random numbers generator derived type. More...
Data Types | |
type | rng_type |
Functions/Subroutines | |
subroutine | rng_init (rng, mpl, nam) |
Initialize the random number generator. More... | |
subroutine | rng_reseed (rng, mpl) |
Re-seed the random number generator. More... | |
subroutine | rng_resync (rng, mpl) |
Resynchronize the random number generator between processors. More... | |
subroutine | rng_desync (rng, mpl) |
Desynchronize the random number generator between processors. More... | |
subroutine | rng_lcg (rng, x) |
Linear congruential generator. More... | |
subroutine | rng_rand_integer_0d (rng, binf, bsup, ir) |
Generate a random integer, 0d. More... | |
subroutine | rng_rand_integer_1d (rng, binf, bsup, ir) |
Generate a random integer, 1d. More... | |
subroutine | rng_rand_real_0d (rng, binf, bsup, rr) |
Generate a random real, 0d. More... | |
subroutine | rng_rand_real_1d (rng, binf, bsup, rr) |
Generate a random real, 1d. More... | |
subroutine | rng_rand_real_2d (rng, binf, bsup, rr) |
Generate a random real, 2d. More... | |
subroutine | rng_rand_real_3d (rng, binf, bsup, rr) |
Generate a random real, 3d. More... | |
subroutine | rng_rand_real_4d (rng, binf, bsup, rr) |
Generate a random real, 4d. More... | |
subroutine | rng_rand_real_5d (rng, binf, bsup, rr) |
Generate a random real, 5d. More... | |
subroutine | rng_rand_gau_1d (rng, rr) |
Generate random Gaussian deviates, 1d. More... | |
subroutine | rng_rand_gau_5d (rng, rr) |
Generate random Gaussian deviates, 5d. More... | |
Variables | |
integer, parameter | default_seed = 140587 |
integer(kind=int64), parameter | a = 1103515245_int64 |
integer(kind=int64), parameter | c = 12345_int64 |
integer(kind=int64), parameter | m = 2147483648_int64 |
Random numbers generator derived type.
|
private |
Desynchronize the random number generator between processors.
[in,out] | rng | Random number generator |
[in,out] | mpl | MPI data |
Definition at line 142 of file type_rng.F90.
|
private |
Initialize the random number generator.
[in,out] | rng | Random number generator |
[in,out] | mpl | MPI data |
[in] | nam | Namelist variables |
Definition at line 54 of file type_rng.F90.
|
private |
Linear congruential generator.
[in,out] | rng | Random number generator |
[out] | x | Random number between 0 and 1 |
Definition at line 162 of file type_rng.F90.
|
private |
Generate random Gaussian deviates, 1d.
[in,out] | rng | Random number generator |
[out] | rr | Random integer |
Definition at line 396 of file type_rng.F90.
|
private |
Generate random Gaussian deviates, 5d.
[in,out] | rng | Random number generator |
[out] | rr | Random integer |
Definition at line 437 of file type_rng.F90.
|
private |
Generate a random integer, 0d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | ir | Random integer |
Definition at line 182 of file type_rng.F90.
|
private |
Generate a random integer, 1d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | ir | Random integer |
Definition at line 210 of file type_rng.F90.
|
private |
Generate a random real, 0d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 233 of file type_rng.F90.
|
private |
Generate a random real, 1d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 261 of file type_rng.F90.
|
private |
Generate a random real, 2d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 284 of file type_rng.F90.
|
private |
Generate a random real, 3d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 309 of file type_rng.F90.
|
private |
Generate a random real, 4d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 336 of file type_rng.F90.
|
private |
Generate a random real, 5d.
[in,out] | rng | Random number generator |
[in] | binf | Lower bound |
[in] | bsup | Upper bound |
[out] | rr | Random integer |
Definition at line 365 of file type_rng.F90.
|
private |
Re-seed the random number generator.
[in,out] | rng | Random number generator |
[in,out] | mpl | MPI data |
Definition at line 96 of file type_rng.F90.
|
private |
Resynchronize the random number generator between processors.
[in,out] | rng | Random number generator |
[in,out] | mpl | MPI data |
Definition at line 122 of file type_rng.F90.
integer(kind=int64), parameter type_rng::a = 1103515245_int64 |
Definition at line 18 of file type_rng.F90.
integer(kind=int64), parameter type_rng::c = 12345_int64 |
Definition at line 19 of file type_rng.F90.
integer, parameter type_rng::default_seed = 140587 |
Definition at line 17 of file type_rng.F90.
integer(kind=int64), parameter type_rng::m = 2147483648_int64 |
Definition at line 20 of file type_rng.F90.