- Timestamp:
- Aug 2, 2024, 9:58:25 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/ecrad.v1.5.1/radiation_random_numbers.F90
r5158 r5159 1 1 ! radiation_random_numbers.F90 - Generate random numbers for McICA solver 2 ! 2 3 3 ! (C) Copyright 2020- ECMWF. 4 ! 4 5 5 ! This software is licensed under the terms of the Apache Licence Version 2.0 6 6 ! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 7 ! 7 8 8 ! In applying this licence, ECMWF does not waive the privileges and immunities 9 9 ! granted to it by virtue of its status as an intergovernmental organisation 10 10 ! nor does it submit to any jurisdiction. 11 ! 11 12 12 ! Author: Robin Hogan 13 13 ! Email: r.j.hogan@ecmwf.int 14 ! 14 15 15 ! The derived type "rng_type" is a random number generator that uses 16 16 ! either (1) Fortran's built-in random_number function, or (2) a … … 25 25 ! mod(istate[i]*A, M). Uniform deviates are returned that normalize 26 26 ! the state elements to the range 0-1. 27 ! 27 28 28 ! The MINSTD generator was coded because the random_numbers_mix 29 29 ! generator in the IFS was found not to vectorize well on some … … 31 31 ! implementation should really be looked at and improved by someone 32 32 ! who knows what they are doing. 33 ! 33 34 34 ! Reference for MINSTD: Park, Stephen K.; Miller, Keith 35 35 ! W. (1988). "Random Number Generators: Good Ones Are Hard To Find" 36 36 ! (PDF). Communications of the ACM. 31 (10): 37 37 ! 1192–1201. doi:10.1145/63039.63042 38 ! 38 39 39 ! Modifications 40 40 ! 2022-12-01 R. Hogan Fixed zeroed state in single precision
Note: See TracChangeset
for help on using the changeset viewer.