prng_t Derived Type

type, public :: prng_t

Parallel random number generator type


Inherits

type~~prng_t~~InheritsGraph type~prng_t prng_t type~rng_t rng_t type~prng_t->type~rng_t rngs

Components

Type Visibility Attributes Name Initial
type(rng_t), public, allocatable :: rngs(:)

Type-Bound Procedures

procedure, public, non_overridable :: init_parallel

  • private subroutine init_parallel(self, n_proc, rng)

    Initialize a collection of rng's for parallel use

    Arguments

    Type IntentOptional Attributes Name
    class(prng_t), intent(inout) :: self
    integer, intent(in) :: n_proc
    type(rng_t), intent(inout) :: rng

Source Code

  type prng_t
     type(rng_t), allocatable :: rngs(:)
   contains
     procedure, non_overridable :: init_parallel
  end type prng_t