mod_rng Module


Uses

  • module~~mod_rng~~UsesGraph module~mod_rng mod_rng module~cosp_kinds cosp_kinds module~mod_rng->module~cosp_kinds

Contents


Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: ki9 = selected_int_kind(R=9)
integer, public :: testInt

Interfaces

public interface init_rng

  • public subroutine init_rng_1(s, seed_in)

    Arguments

    Type IntentOptional Attributes Name
    type(rng_state), intent(inout) :: s
    integer, intent(in) :: seed_in
  • public subroutine init_rng_n(s, seed_in)

    Arguments

    Type IntentOptional Attributes Name
    type(rng_state), intent(inout), DIMENSION(:) :: s
    integer, intent(in), DIMENSION(:) :: seed_in

public interface get_rng

  • public function get_rng_1(s)

    Arguments

    Type IntentOptional Attributes Name
    type(rng_state), intent(inout) :: s

    Return Value real(kind=WP)

  • public function get_rng_n(s, n) result(r)

    Arguments

    Type IntentOptional Attributes Name
    type(rng_state), intent(inout) :: s
    integer, intent(inout) :: n

    Return Value real(kind=WP), DIMENSION (n)

  • public function get_rng_v(s) result(r)

    Arguments

    Type IntentOptional Attributes Name
    type(rng_state), intent(inout), DIMENSION(:) :: s

    Return Value real(kind=WP), DIMENSION (SIZE(S))


Derived Types

type, public ::  rng_state

Components

Type Visibility Attributes Name Initial
integer(kind=ki9), public :: seed

Functions

public function get_rng_1(s)

Arguments

Type IntentOptional Attributes Name
type(rng_state), intent(inout) :: s

Return Value real(kind=WP)

public function get_rng_n(s, n) result(r)

Arguments

Type IntentOptional Attributes Name
type(rng_state), intent(inout) :: s
integer, intent(inout) :: n

Return Value real(kind=WP), DIMENSION (n)

public function get_rng_v(s) result(r)

Arguments

Type IntentOptional Attributes Name
type(rng_state), intent(inout), DIMENSION(:) :: s

Return Value real(kind=WP), DIMENSION (SIZE(S))


Subroutines

public subroutine init_rng_1(s, seed_in)

Arguments

Type IntentOptional Attributes Name
type(rng_state), intent(inout) :: s
integer, intent(in) :: seed_in

public subroutine init_rng_n(s, seed_in)

Arguments

Type IntentOptional Attributes Name
type(rng_state), intent(inout), DIMENSION(:) :: s
integer, intent(in), DIMENSION(:) :: seed_in