-
Notifications
You must be signed in to change notification settings - Fork 207
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
Bug in coszen time interpolation in shr code #3802
Comments
Alerting @jonbob |
Thanks @rljacob - I suspect that hits us as well |
@ekluzek I don't see an obvious cause for the problem here - you are one of the authors of this code - can you have a look? |
BTW test SMS_D.TL319_g17.GIAF_JRA.cheyenne_intel will reproduce the issue. |
So offset is zero for all of the CLM forcing files. From @alperaltuntas caution this is especially disconcerting. Looks like CPLHIST files should be fine, and only CLM forcing and CORE forcing that are incorrect. |
is this related to #3380? |
@alperaltuntas confirms that the fix in ESCOMP/CDEPS#123 for #3380 fixes this issue. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Fixed for E3SM in E3SM-Project/E3SM#4589 |
When running with the JRA data streams, the
coszen
time interpolation algorithm in shr code appears to have a bug resulting in large flux values being passed from the coupler to components. We discovered this issue when running the G compset (both w/ POP and MOM6) and JRA-forced data atm. Note that the JRA SWDN datastream makes use of coszen time interpolation algorithm with an offset of 5400 sec, i.e., 1.5 hours. This issue doesn't occur with the CORE2 data streams, probably because CORE2 is daily average, whereas JRA is 3-hourly.The following is the
x2oacc_Foxx_swnet
field passed from the coupler to the ocean component at the very first coupling timestep with a band of large values (with a max of ~6k W m-2)My initial troubleshooting efforts suggest this has to to with the time averaging of the coszen term used in normalization. See the relevant line here:
cime/src/share/streams/shr_strdata_mod.F90
Line 1067 in e1ae39f
In the above line,
cosz(i)/tavCosz(i)
term leads to these large values because, i think, there is a discrepancy between how thecosz
andtavCosz
terms are computed. The time value passed to the subroutine that computescosz
and the time values passed to the subroutine that computestavCosz
don't seem to agree. But I'll let someone who is more familiar with this part of the code further diagnose and come up with a fix.One final comment that further puzzles me: When the offset is -5400, as it should be, this issue occurs only at the first two timesteps. When the offset is 0, however, the issue occurs routinely at every third timestep.
To reproduce the issue:
create_newcase --res TL319_g17 --compset GIAF_JRA --case g.e22.GJRA.TL319_g17.sw.001 --run-unsupported
The text was updated successfully, but these errors were encountered: