athena__random Module

Module containing functions to initialise the random number generator


Uses

    • coreutils

Variables

Type Visibility Attributes Name Initial
logical, public :: l_random_initialised = .false.

Subroutines

public subroutine random_setup(seed, num_seed, restart, already_initialised)

Initialise the random number generator no need to initialise if already initialised

Arguments

Type IntentOptional Attributes Name
integer, intent(in), optional, dimension(..) :: seed

Seed for the random number generator

integer, intent(out), optional :: num_seed

Number of seeds

logical, intent(in), optional :: restart

Restart the random number generator

logical, intent(out), optional :: already_initialised

Check if the random number generator is already initialised