Reducing s_bot oscillations in reference density adaptation#695
Conversation
…ed and the parameter pairs (sp1, zp2) and (sp4, s_bot) can now be adjusted with different e-folding time scales.
TomasTorsvik
left a comment
There was a problem hiding this comment.
Looks OK to me. Would be good to hear from @JorgSchwinger about potential implications for spin-up, before merging.
| sra_clim_ts = 5._r8, & | ||
| sra_param_ts = 5._r8, & | ||
| sra_param_ts1 = 5._r8, & | ||
| sra_param_ts2 = 5._r8, & |
There was a problem hiding this comment.
Shouldn't be the default value for sra_param_ts2 be 10, here, too?
There was a problem hiding this comment.
Thanks, @JorgSchwinger, I have changed default value of sra_param_ts2 now.
JorgSchwinger
left a comment
There was a problem hiding this comment.
I can't really judge if it will be a problem to use an restart file created from a run with the old optimization, and use it as initial condition for a hybrid run with the new optimization, but I trust that it'll be possible.
Technically the modified optimization can continue as either a hybrid or branch run from a restart produced with the old optimization. The test simulations mentioned in the PR have started as hybrid continuations (similar procedure to your NorESMhub/noresm3_dev_simulations#269). |
jmaerz
left a comment
There was a problem hiding this comment.
Can't contribute much - thanks for the careful investigation of it.
|
@matsbn - I think you can merge this when you are ready. At the moment, the plan is to use tag |
|
@matsbn , @JensBDebernard , @mvdebolskiy , @mvertens , @mvdebolskiy RUNDIR: Test output: 4 failing tests are failing constantly. NLFAIL=namelist changes only. DIFFs for all compsets are expected. FAIL at ERI_C2 is new, this fails at RUN. Need to look once more on this. |
|
The ERI_C2 went through on 2nd attempt. |
|
Hi @TomasTorsvik , not sure, if the information matters, but note that with the former PR #685 namelist changes were introduced (I am not sure, if there was a tag inbetween). |
|
@jmaerz - thanks for notification :) |
|
Thanks for testing, @TomasTorsvik! With expected differences in output and ERI_C2 test passing, are the tests OK then? |
Yes, all tests for the |
This PR modifies the
s_botoptimization and also introduces the possibility of using different e-folding adjustment time scales for the parameter pairs (sp1,zp2) and (sp4,s_bot). The first parameter pair controls reference density profile in the upper ocean, while the second parameter pair controls the maximum range of the reference density profile.It was found that both modifying the optimization of
s_botand increasing the e-folding adjustment time scale from 5 to 10 years were beneficial to reduce oscillations in thes_botparameter. However, to be able to adjust to strong surface forcing perturbations it may be desirable to keep the relatively short 5 year adjustment time scale for the (sp1,zp2) parameters. Therefore the introduction of two e-folding adjustment time scales.The impact of modifications to reference density adaptation was tested in CPLHIST forced ocean/ice simulations and compared to NorESMhub/noresm3_dev_simulations#269, which have pronounced oscillation in the
s_botparameter.In the first figure, circles show annual optimization of the
s_botparameter, while solid lines show the parameter value actually used after time filtering. In blue is the NorESMhub/noresm3_dev_simulations#269 experiment, showing oscillations throughout the 120 years of simulation shown here. In orange is a 30 year test with a modification of thes_botoptimization that reduces oscillations compared to NorESMhub/noresm3_dev_simulations#269. In green the original optimization is used, but e-folding time scale increased from 5 to 10 years. This also reduces the oscillation in the time filtered parameter value. Finally in red is a 60 year simulation combining the modification of thes_botoptimization and increasing the adjustment time scale as implemented in this PR. Oscillations are still present, but strongly muted compared to NorESMhub/noresm3_dev_simulations#269. Also the annual optimizations have a much reduced range of variation.The second figure is the same as the first figure for
s_bot, but shows all parameters participating in the density adaptation. It can be seen that thesp1andzp2parameters from the simulation using this PR (red color) follows closely NorESMhub/noresm3_dev_simulations#269 (blue color), which is desirable since the adjustment time scale is the same. The time filteredsp4parameter is strongly influenced by the adjustment time scale where the simulations with 5 year time scale (blue and orange) and 10 year time scale (green and red) are grouped closely together.