<div dir="ltr"><div><div><div><div><div><div>Dear FLASH Users,<br><br></div>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. <br><br>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.<br><br></div>Thanks,<br></div>Jason <br><br>----<br></div>Jason Galyardt<br></div>Department of Physics and Astronomy<br></div>University of Georgia<br><br></div>