Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prescribed aerosols modal treatment produces erroneous random number distributions #246

Closed
singhbalwinder opened this issue Jun 5, 2015 · 0 comments · Fixed by #312
Closed

Comments

@singhbalwinder
Copy link
Contributor

Prescribed aerosol code uses Fortran intrinsic random number generator. There is an algorithm to generate seeds for this random number generator each time it is called. The intention here was to get uniformly distributed random numbers but during our experiments we found the random numbers are not uniformly distributed (due to incorrect seeding).

To fix this problem we are now using KISSVEC random number generator which already exists in CAM. KISSVEC is initialized with 4 predefined seeds and keep on producing uniformly distributed random numbers each time it is invoked. Our tests reveal that using KISSVEC solves the problem we were having with the skewed random number distributions.

singhbalwinder added a commit that referenced this issue Aug 27, 2015
This commit fixes the random number generation bug in prescribed
aerosols routine. Please see issue #246 for more details.The fix
make use of KISSVEC random number generator instead of the Fortran
intrinsic.

Fixes #246
[non-BFB]
AG-343
susburrows added a commit that referenced this issue Aug 31, 2015
…to next (PR #312)

Random number generation fix for the prescribed aerosols in CAM.

This commit fixes the random number generation bug in prescribed
aerosols routine. Please see issue #246 for more details.  The fix
make use of KISSVEC random number generator instead of the Fortran
intrinsic.

This commit passes the acme developer tests. It changes answers only
for the prescribed aerosols run as it is using a new random number
generator.

Fixes #246
[non-BFB]
AG-343
susburrows added a commit that referenced this issue Sep 2, 2015
…#312)

Random number generation fix for the prescribed aerosols in CAM

This commit fixes the random number generation bug in prescribed
aerosols routine. Please see issue #246 for more details.The fix
make use of KISSVEC random number generator instead of the Fortran
intrinsic.

This commit passes the acme developer tests. It changes answers only
for the prescribed aerosols run as it is using a new random number
generator.

Fixes #246
[non-BFB]
AG-343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants