Returns the current value of the generator seed. This is not currently supported by the Mersenne generator so in this case we return 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(out), | dimension(:) | :: | seed |
subroutine get_rnd_seed(seed)
implicit none
integer, dimension(:), intent(out) :: seed
# if RANDOM == _RANMT_
!NOTE: If MT is generator, more coding needs to be done to
! extract seed, so this should be run using only randomize
seed=0
# else
call random_seed(get=seed)
# endif
end subroutine get_rnd_seed