-
Notifications
You must be signed in to change notification settings - Fork 50
nrest=n+4 in mersenne_twister #292
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
nrest=n+4 in mersenne_twister #292
Conversation
|
Looking this over I believe the new implementation with nrest=n+4 is the correct way to go.
and
A person could simplify the real64 to int32 copy by allowing the transfer() function to determine the size. FWIW, |
grantfirl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely not an expert in the mersenne twister code, but it's hard to argue with the change. This is a prime candidate to combine with other PRs if you're OK with it because it is small and (according to your tests) doesn't change RT baselines.
|
Thanks @BryanFlynt @grantfirl . Maybe let me confirm next week that tests are bit-for-bit on several platforms, and then I'm happy for this to be combined elsewhere. |
|
ufs-weather-model RTs are bit-for-bit on hera, derecho, and wcoss2. afaik, this is ok to combine with other PRs |
|
Combined into #295. Keeping open until merged. |
This fixes the compiler warning:
and was bit-for-bit in ufs-weather-model regression tests a couple weeks ago.
The solution is by @DusanJovic-NOAA, with this context:
The caveat is that we are not familiar with this code, so we're hoping somebody who really understands what's going on here should double check this
The need is that, currently, ufs-weather-model RTs show a pattern of a "ball of diffs" in cpld_debug_gefs_intel (and cpld_debug_gefsv13_intel), failing in run-to-run reproducibility (ufs-community/ufs-weather-model#2675).
A test changing this in both stochastic physics and ccpp improves reproducibility in these tests. The matching stochastic physics PR is at NOAA-PSL/stochastic_physics#85