Skip to content
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

Corrects thin ice/snow treatment of enthalpy and other tracers #5630

Merged
merged 2 commits into from
May 16, 2023

Conversation

njeffery
Copy link
Contributor

@njeffery njeffery commented Apr 24, 2023

This fix redistributes enthalpy and other tracers evenly in snow and ice when their respective thicknesses are < 1e-15 . Previously, these tracers were zero'd non-conservatively.

Also corrects a bug in the zeroing of snow thicknesses, and removes snow in thickness_changes if the ice vanishes.

Fixes #5124

[non-BFB]

To be tested as a possible fix to #5124 - mpas-si crashes on small timesteps bug fix

For snow/ice thicknesses < puny but > 0, enthalpy and other adjusted tracers are spread evenly among layers.
Non-BFB
Corrects possible floating snow during ice loss in thickness_changes

non-BFB, bugfix
@njeffery
Copy link
Contributor Author

Code was tested in a 15-year fully coupled simulation. MPAS-Analysis of the sea ice can be found here: https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.jeffery/E3SMv2/thin-ice-enthalpy-constant-feature-snow/

Baseline is thin-ice-enthalpy-constant-master
Feature branch is thin-ice-enthalpy-constant-feature-snow

@njeffery
Copy link
Contributor Author

Plots of salt, mass and energy conservation :

ConservationComparison_FeatureplusSnowMaster.pdf

@njeffery
Copy link
Contributor Author

@jonbob : Could you make sure this fixes issue #5124

@njeffery njeffery added mpas-seaice bug fix PR non-BFB PR makes roundoff changes to answers. labels Apr 24, 2023
@jonbob
Copy link
Contributor

jonbob commented Apr 25, 2023

testing now -- thanks @njeffery

@jonbob
Copy link
Contributor

jonbob commented Apr 25, 2023

@njeffery - this branch does pass my simplified test for the originally reported bug

@njeffery
Copy link
Contributor Author

Great! thanks @jonbob.

@jonbob
Copy link
Contributor

jonbob commented May 2, 2023

@proteanplanet - when you get a chance, could you please review this? Thanks

Copy link
Contributor

@proteanplanet proteanplanet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was successfully tested on a 3-month D-case. While a short simulation, the difference from the current master is provided here:

		North 		South
IceExtent:  	+5.17637e+05 	+4.16285e+05
IceVolume:  	-8.02587e+02 	+1.09206e+03
SnowVolume:  	+1.58975e+02 	+1.65821e+02
KineticEnergy:  +5.82797e+13 	+4.18521e+13

Without some git manipulation, I was unable to run the e3sm_ice_developer test suite on the code. However, it passed the three-month smoke test.

jonbob added a commit that referenced this pull request May 15, 2023
#5630)

Corrects thin ice/snow treatment of enthalpy and other tracers

This fix redistributes enthalpy and other tracers evenly in snow and ice
when their respective thicknesses are < 1e-15 . Previously, these
tracers were zero'd non-conservatively.

Also corrects a bug in the zeroing of snow thicknesses, and removes snow
in thickness_changes if the ice vanishes.

Fixes #5124

[non-BFB]
@jonbob
Copy link
Contributor

jonbob commented May 15, 2023

Successfully completes, but shows expected DIFFs for:

  • SMS_D_Ld1.ne30pg2_EC30to60E2r2.WCYCL1850.chrysalis_intel.allactive-wcprod
  • ERS.ne11_oQU240.WCYCL1850NS.chrysalis_intel
  • PET_Ln5.T62_oQU240.DTESTM

merged to next

@jonbob jonbob merged commit a0487df into master May 16, 2023
@jonbob jonbob deleted the njeffery/seaice/thin-ice-enthalpy-constant branch May 16, 2023 16:33
@njeffery
Copy link
Contributor Author

Thanks @jonbob !

@jonbob
Copy link
Contributor

jonbob commented May 16, 2023

merged to master and expected DIFFs blessed -- except for chrysalis next which did not report

mkstratos added a commit to mkstratos/E3SM that referenced this pull request Aug 11, 2023
With the fix in MPAS-SI: Corrects thin ice/snow treatment of enthalpy and other tracers (E3SM-Project#5630) the TSC test can now generate a baseline with dtime=1 using MPAS-SI
apcraig added a commit to apcraig/Icepack that referenced this pull request Aug 28, 2023
Adopted from E3SM-Project/E3SM#5630

"This fix redistributes enthalpy and other tracers evenly in snow and ice when their
respective thicknesses are < 1e-15 . Previously, these tracers were zero'd non-conservatively.
Also corrects a bug in the zeroing of snow thicknesses, and removes snow in thickness_changes
if the ice vanishes."
apcraig added a commit to CICE-Consortium/Icepack that referenced this pull request Aug 30, 2023
* Corrects thin ice/snow treatment of enthalpy and other tracers

Adopted from E3SM-Project/E3SM#5630

"This fix redistributes enthalpy and other tracers evenly in snow and ice when their
respective thicknesses are < 1e-15 . Previously, these tracers were zero'd non-conservatively.
Also corrects a bug in the zeroing of snow thicknesses, and removes snow in thickness_changes
if the ice vanishes."

* Clean up modifications
rljacob added a commit that referenced this pull request Sep 11, 2023
Revert TSC non-b4b test to use the F2010 compset

With the fix in MPAS-SI: "Corrects thin ice/snow treatment of enthalpy and other tracers"
(#5630) the TSC test can now generate a baseline with dtime=1 using MPAS-SI

[non-BFB] only for TSC test
rljacob added a commit that referenced this pull request Sep 14, 2023
Revert TSC non-b4b test to use the F2010 compset

With the fix in MPAS-SI: "Corrects thin ice/snow treatment of enthalpy and other tracers" (#5630) the TSC test can now generate a baseline with dtime=1 using MPAS-SI

[non-BFB] only for TSC test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix PR mpas-seaice non-BFB PR makes roundoff changes to answers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MPAS-SI crashes on small timesteps
4 participants