-
Notifications
You must be signed in to change notification settings - Fork 453
Updates to FATES zenith angles on the first step of non-continue restarts #7899
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
base: master
Are you sure you want to change the base?
Conversation
| if ( (is_cold_start .and. get_nstep() == 1) .or. & | ||
| ((fates_radiation_model == 'twostream') .and. (get_nstep()== 1) .and. (.not.use_fates_sp) & | ||
| .and. (.not.is_cold_start) .and. (nsrest == nsrStartup)) ) then |
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.
@rgknox , can we simplify these conditionals or break them down so they are a bit more manageable to understand?
if (get_nstep() == 1) then
do_update = .false.
if (is_cold_start)
do_update = .true.
else if (<check-second-conditional>)
do_update = .true.
endif
if (do_update) then
call alm_fates%wrap_canopy_radiation(bounds_clump,surfalb_vars,nextsw_cday,declinp1)
endif
endif 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.
yeah, good idea! I'll submit a change
…n the first time-step.
|
Hehe, @bishtgautam , I was able to make it way simpler. I don't know how all that extra logic got in there. Anyway, take a look and see what you think. Thanks for the suggestion |
|
NorESM has these land-model tests called Land Tuning Mode. I think that these tests simulate frequency of the radiation boundary conditions when running coupled with the atmosphere, although it still uses a data atmosphere for the information. Do we have these types of tests in E3SM? I would add them to the FATES test list. |
|
Hi @rgknox, thanks for simplifying the logic. How about also adding a comment explaining what is happening? something like the following, based on your first comment. |
|
@bishtgautam I talked with Ryan and I'll add your comment and then kick off e3sm land developer tests soon. |
|
Regression testing |
|
Regression testing against the Results: |
I'm thinking this is likely due to the fact that I didn't rebase this against |
I'm still seeing unexpected diffs. I'm generating my own baseline using |
These changes ensure that zenith angles are passed to FATES on non-continue restarts on the first step. The legacy FATES radiative transfer scheme (Norman) was not sensitive to this, but the newer two-stream scheme needs this information at this point in the call sequence.