-
Notifications
You must be signed in to change notification settings - Fork 96
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
incorrect initialisation for age_global #339
Comments
Russ also commented
...so if that's the case, the diagnostic is correct, and it's the initial condtion that's incorrect |
This issue doesn't occur at the start of cycle 2 |
These min and max dailies from the start of cycle 3 show this And there seems to be no problem with daily max bottom conservative temperature So this is all consistent with @russfiedler's suggestion
|
@aekiss An examination of the log files shows that the diagnostic temperature (pot_temp) is being set to zero for the start of new cycles. The same goes for frazil and age. In
This is because MOM thinks you are at the start of a new experiment and the I think an entry like `"diag_tracers","ocean_mod","pot_temp" is required. |
Note the logic for reading a restart file https://github.com/mom-ocean/MOM5/blob/master/src/mom5/ocean_tracers/ocean_tracer.F90#L2121-L2128 |
Aha, thanks @russfiedler, sounds like that will fix this issue, and also COSIMA/access-om2#235 I guess from the code that we should leave |
I wouldn't recommend that if you're outputting any diagnostics wrt diagnostic tracers unless you know them to be zero. |
OK thanks, I'll do the second option then. |
Hi @russfiedler - just getting back to this for cycle 4. Is this what you'd recommend? |
@aekiss That looks sensible to me. |
Hi @russfiedler The changes in COSIMA/01deg_jra55_iaf@ae32f24 fixed the initialization of My cycle 4 test run here
so that all looks OK, but the output file from the test run I'm a bit stumped. Am I missing something obvious? |
The problem was that I was using
which limits the age to at most the run length of the cycle plus age_tracer_max_init. It also ensures age is non-negative. I tried using
A better solution was to use
This worked as expected, with 0<= age <= 61.042yr (61yr+0.5mo) after 1 mo (as 1mo average). |
/g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v140_iaf_cycle3/output488/ocean/ocean-2d-surface_pot_temp-1-monthly-min-ym_1958_01.nc
has a maximum of 273.15K for January 1958
but Feb 1958 (and all other dates I've looked at) seem OK
This file is from the start of a new cycle, so it looks like an initial value of 0C is used for calculating the minimum. This should be replaced by an unphysically large value (maybe +Inf if we want something that applies regardless of the diagnostic).
Thanks to @russfiedler for pointing this out.
The text was updated successfully, but these errors were encountered: