-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support reproducible restarts with RRTMGP.jl #3382
Conversation
0304c5d
to
9ea6f14
Compare
ef91968
to
bb30228
Compare
The |
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.
Note, this change will make all the call to Random.seed!
in all our drivers ineffective. As a result:
- all the results should change
- the nightly AMIP will break (because the nightly AMIP relies on setting the seed to run an ensemble) (@juliasloan25 @szy21 @trontrytel)
I suggest we make this option false by default and turn it on for the jobs we care about. In the nightly AMIP, we could manually add some small initial perturbation, or add a controllable offset to the seed.
Can you also update the NEWS file to describe this change and its implications?
Ideally, we also would like this to be tested, but the tests for restarts have no clouds. I don't know if we have any easy way to add this.
More broadly, given that this PR is not changing MSEs, I think this means that we are not testing any regime with clouds in our reproducibility tests.
@nefrathenrici : I am setting the |
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.
Looks good to me after addressing Gabriele's comments, thanks!
Yes, that's probably true. We will change the initial condition to have some moisture so it will take shorter time to make clouds. |
ce57383
to
d8648bd
Compare
If there are no additional comments, I can go ahead and merge! |
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 think two of my comments were not addressed, I left them again.)
Can you also please make the required change in ClimaCopuler?
c29fbad
to
c630e36
Compare
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.
Looks good, thank you!
(Please fix the bug with the string concatentation before merging)
Also, could you please take care of revelant changes in ClimaCoupler (to the nightly AMIP) as well?
c630e36
to
279d131
Compare
Seed random number generator with simulation time before calling `update_fluxes`. The seeding can be turned on by setting `radiation_reset_rng_seed` to `true`. The default is set to `false`.
01355e3
to
0af8c7f
Compare
Is this a breaking change (should I make today's release a minor release)? |
It's not breaking |
Purpose
Support reproducible restarts with RRTMGP.jl.
Seed random number generator with simulation time before calling
update_fluxes
.The seeding can be turned on by setting
radiation_reset_rng_seed
totrue
. The default is set tofalse
.