[FLASH-USERS] Random Number Generators in FLASH

Jason Galyardt jason.galyardt at gmail.com
Wed Feb 24 14:56:31 EST 2016


Dear FLASH Users,

In FLASH 4.3, there is a random number generator (RNG) unit, located at
source/flashUtilities/rng. There are two implementations: the default is
located at source/flashUtilities/rng, and the other is located at
source/flashUtilities/rng/mt_rng. The default implementation seems to use
the Fortran 90 intrinsic RNG facilities (random_seed() and
random_number()), while the mt_rng implementation uses the 32-bit Mersenne
Twister.

Has anyone used the Mersenne Twister implementation before? Is there a
recommended prescription for setting the seed on each processor of an MPI
job? The latter is complicated by the fact that mt_rng seems to want an
integer array of length 624 instead of a single integer seed which can be
constructed from the processor ID and a global, user-provided seed.

Thanks,
Jason

----
Jason Galyardt
Department of Physics and Astronomy
University of Georgia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20160224/6efd4a92/attachment.htm>


More information about the flash-users mailing list