-
Notifications
You must be signed in to change notification settings - Fork 134
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
Advanced snow physics #360
Advanced snow physics #360
Conversation
…ercent to bulk, fix domain size
…sion for Icepack incomplete
…ust_enthalpy, add snowage parameters
…s, initialize, debug, clean up
base_suite tests:
3 new tests are missing data for the regression comparison.
In the therm1 test, I traced the issue to a new conditional in icepack_meltpond_lvl.F90.
The modified code
Commenting out the I believe this PR is ready to merge. However I prefer that we wait until I finish the implementation in CICE, in order to have more thorough testing (including QC). |
update icepack to support snow table read from file
… in dEdd with snwgrain; correct rhos_effn; clean up
… consistency with rhos based snow volume transport
…t-of-bounds error when snwgrain=F
A few comments on recent changes: The ice and liquid tracers in snow, smice and smliq, are densities, so multiplying them by snow volume gives mass of the ice and liquid components of the snow. Since mass is conserved, it is the most appropriate quantity to work with for the physical changes. However the vertical thermodynamics has enthalpy (i.e. energy density) calculations mixed in, making the associated mass calculations less straight-forward. The vertical thermo code ought to be refactored and cleaned up at some point, but it will change answers and be a huge headache. So not right now. smice and smliq were not originally consistent with the snow volume on which they were transported. This caused the values of smice and smliq to vary wildly outside of physical bounds during transport, e.g. they could be negative or orders of magnitude larger than the density of water. I tried a number of approaches for maintaining that consistency, finally settling on a relatively compute-intensive approach that enforces mass conservation throughout (and does a better job with monotonicity). I've also fixed some problems with the smice and smliq reinitializations after snow disappears and comes back, which were causing incorrect answers near the ice edge, e.g. when ice with snow is advected into a grid cell without snow. The test to identify this problem was setting tr_snow=T but turning off all of the new snow processes (redist = none, snwgrain=F), and making sure that the nonzero snow tracers smice and rsnw maintain their constant values everywhere. A couple of issues when running Icepack and CICE with tr_snow=F were fixed. Thanks @apcraig for running multi-compiler tests to find these problems. One issue that is likely to come up again is using slices of the tracer array in subroutine argument call lists. Sending in tracers with multiple indices (e.g. smice on snow layers), which might not be allocated when the tracer flag (e.g. tr_snow) is false, can cause array-out-of-bounds issues. Maybe we've just been lucky with the configurations that we test. If we don't already do it, we need a test that turns off ALL of the nonessential tracers and checks array bounds. The other issue is that the new snow tests use nslyr=5, and so they can not restart from nslyr=1 initial conditions. Still testing. |
…hortwave modification for bulk redistribution - it should not be used for production runs without more careful analysis of the energy balance between level and ridged ice.
…e alvl weighted by aice. Reinstated shortwave modification for bulk redistribution - it works the same as for ITDrdg. Updated documentation.
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.
Why were icepack_warnings_aborted calls removed from icepack_therm_mushy?
I believe answers will change even for cases where snow is off. Any concerns or additional checks needed?
The warning changes to icepack_therm_mushy came in with commit 846058d and I figured you had a good reason. :) I'd like to do another full test suite with regression, since quite a bit has changed since this PR was initially submitted. |
Right, should have looked a little more carefully. The icepack_warnings_aborted were removed because there were extra calls. You can see just below where the calls were removed are the same calls. Sorry about the confusion. |
… rsnw_fresh in dEdd, set dEdd default value in namelist and tr_snow value in options
…e tracer array directly; the snow_effective_density subroutine was then also unnecessary.
The latest base_suite test results: 165 measured results of 165 total results MISS badger_intel_smoke_col_1x1_debug_run1year_snw30percent_snwgrain compare ip180472b missing-data FAIL badger_intel_restart_col_1x1_bgcISPOL compare ip180472b different-data The 3 tests with missing data for the regression are the new snow models tests. |
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 have carefully inspected the code, and could not find any issues. As part of this, I also carefully read the new documentation, which I found to be clear, concise and informative.
Short (1 sentence) summary of your PR:
Icepack implementation of advanced snow physics, ported from E3SM and earlier CICE column versions
Developer(s):
E. Hunke, N. Jeffery
Suggest PR reviewers from list in the column to the right.
Please copy the PR test results link or provide a summary of testing completed below.
https://github.com/CICE-Consortium/Test-Results/wiki/94bf11b34d.badger.intel.21-05-28.221914.0
The failures are optimization issues - see comments below for additional details.
How much do the PR code changes differ from the unmodified code?
Does this PR create or have dependencies on CICE or any other models?
Does this PR add any new test cases?
Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/.)
Please provide any additional information or relevant details below:
Snow redistribution by wind and bulk formulations
Dry and wet snow grain metamorphosis
Snow modifications linked back to radiation physics through dEdd
Dry metamorphosis requires a lookup table. The original table (from SNICAR) is netcdf, so there is a subsampled table implemented in Icepack (hardwired) for testing purposes. The full table will be available in CICE.