-
Notifications
You must be signed in to change notification settings - Fork 438
Make landIceDraft diagnostic rather than a forcing variable #7301
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
Make landIceDraft diagnostic rather than a forcing variable #7301
Conversation
Copied from E3SM-Ocean-Discussion#125 (comment) v3 LR piControl resultsThis branch: Baseline: I did not find any significant differences. |
@xylar Still planning to make that namelist change. Will post after running the e3sm_cryo_developer test suite. |
Further discussion of this PR is located at E3SM-Ocean-Discussion#125 |
689020f
to
f757db4
Compare
@jonbob I was able to run the e3sm_cryo_developer suite successfully with these namelist changes. When you have a chance, can you run your scripts and make sure I didn't miss anything? |
@cbegeman - done |
@cbegeman, I'm rerunning the control analysis above so I can run a main vs. control (with the same version of Unified). I hope you don't mind. I'll post the results once I have them. I looked through the code and it looks great. I don't have any concerns there. |
Just confirming that everything looks like ensemble-member level variability to me. Here is the main vs. control run: |
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.
Approving based on code inspection and comparison simulation showing non-climate-changing results.
In the spirit of full disclosure, I wanted to point out that there are sea ice tendency differences due to transport as expected because we use a different ocean density to determine the SSH gradient near ice shelves. https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.xylar/analysis/FAnSSIE/v3.LR.piControl-landIceForcing_vs_ctrl/ts_0001-0100_climo_0051-0100/sea_ice/index.html#antarctic_extended_sh_tendency&gid=30&pid=1 |
A bit more context: For land ice-ocean coupling, we need As a consequence, At init for the v3 LR mesh, the discrepancy between |
@darincomeau and @matthewhoffman Can you review when you have a chance? Thanks! |
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.
@cbegeman , I looked over the changes, and based on my limited understanding of the relevant code, the changes make sense based on the intent.
@xylar , @darincomeau , and I discussed the difference plots this morning and thought some further discussion about the potential impacts of this change would be good. In particular, the changes to sea ice near the Antarctic continent, while not huge, seem to systematic and probably deserve more consideration. Given the development cycle for v3, we'd also want to be careful about any changes that could inadvertently impact HR or SORRM development (as you are fully aware 😄 ). Let's plan to discuss at the FAnSSIE Ocean Team meeting next week, or we can schedule an alternate time earlier if you prefer.
Does this impact coupled simulations that are not using land ice? |
Thanks @cbegeman! I'm going to rerun the test that failed before and I'll approve if it passes. |
@xylar Thanks for re-reviewing and testing! |
components/mpas-ocean/src/analysis_members/mpas_ocn_mixed_layer_depths.F
Outdated
Show resolved
Hide resolved
components/mpas-ocean/src/analysis_members/mpas_ocn_mixed_layer_depths.F
Outdated
Show resolved
Hide resolved
components/mpas-ocean/src/analysis_members/mpas_ocn_mixed_layer_depths.F
Outdated
Show resolved
Hide resolved
components/mpas-ocean/src/shared/mpas_ocn_eddy_parameterization_helpers.F
Outdated
Show resolved
Hide resolved
bfc9f5d
to
cd26054
Compare
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.
Okay, with the latest changes, I my test passed and I think CI will as well. Thanks for putting up with the back-and-forth, @cbegeman!
@cbegeman do you expect any of these recent changes to affect my SORRM test (still in the queue). Do I need to pull these changes and start again? |
It seems that only the gnu compiler had an issue with the associated check. If it passes a smoke test with your v3 SORRM config then I think you're fine. It would fail on the first time step. (If you haven't done a smoke test with this branch, then I would submit one to check.) |
@cbegeman -- is this still NCC? For all configurations? |
10 year test with SORRM done (finally), MPAS-Analysis comparison vs. control: https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.dcomeau/E3SMv3_dev/20250523.v3.SORRME3r3.CRYO1850-DISMF.alfred2-landicedraft.chrysalis/mpas_analysis/vs-ctrl/yrs1-10/ |
This simulation shows the expected change: a decrease in sea ice transport away from ice shelf fronts (the red difference line right at ice shelf fronts) Many of the larger differences in SO properties likely are due to the fact that the Weddell polynya takes longer to develop Based on these results, this PR is implemented as intended. |
Ah, yes, the Weddell polynya almost certainly explains the cooler SO temperatures. |
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.
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'm approving based on the code changes since the initial review and the testing and discussion above. @cbegeman , thanks for reworking this to retain the ability for backwards compatibility.
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.
Approved based on discussion and that it's bfb for HES simulations.
I'm now seeing this PR fail
My previous test was done with this branch up to 2d43229 (confirmed again SMS test passes here), so the suspect problem commit is 8019c15. |
Co-authored-by: Xylar Asay-Davis <xylarstorm@gmail.com>
cd26054
to
a57ac6f
Compare
@darincomeau I found that @xylar's fail #7301 (review) was due to a duplicated pointer variable between the MLD AM routine and diagnostic variables. This test now passes both:
Now that I have removed that pointer, we can go back to checking for association of |
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.
Approved based on @cbegeman testing after her fix - thanks!
#7301) Make landIceDraft diagnostic rather than a forcing variable This PR changes the default way the sea-surface height gradient is computed near land ice in MPAS-Ocean for MPAS-SeaIce. In the absence of land ice, this PR has no effect [BFB]. A new ocean config option, config_land_ice_draft_mode, determines whether to use the new default method or the current method: [BFB] for config_land_ice_draft_mode = 'data', where it preserves the current method whereby landIceDraft is provided as a forcing variable. It is applied to the following meshes: * oQU240wLI * ECwISC30to60E1r2 * SOwISC12to60E2r4 * ECwISC30to60E2r1 * IcoswISC30E3r5 * FRISwISC08to60E3r1 * FRISwISC04to60E3r1 * FRISwISC02to60E3r1 * FRISwISC01to60E3r1 * RRSwISC6to18E3r5 as well as all meshes without ice shelf cavities [NCC] for config_land_ice_draft_mode = 'pressure-dependent', which is the new default whereby landIceDraft is computed from landIcePressure. The (spatially and temporally) constant ice density to use for this computation is provided by the new ocean config option config_land_ice_rho_ocean. [NML]
Passes:
with expected NML DIFFs. Merged to next |
merged to master and expected NML DIFFs blessed |
This PR changes the default way the sea-surface height gradient is computed near land ice in MPAS-Ocean for MPAS-SeaIce. In the absence of land ice, this PR has no effect [BFB]. A new ocean config option,
config_land_ice_draft_mode
, determines whether to use the new default method or the current method:config_land_ice_draft_mode = 'pressure-dependent'
is the new default wherebylandIceDraft
is computed fromlandIcePressure
. The (spatially and temporally) constant ice density to use for this computation is provided by the new ocean config optionconfig_land_ice_rho_ocean
.config_land_ice_draft_mode = 'data'
preserves the current method wherebylandIceDraft
is provided as a forcing variable. It is applied to the following meshesconfig_land_ice_draft_mode = 'pressure-dependent'
provides a more accurate determination of the SSH gradient near ice shelves when the SSH is adjusted during initialization. This is now done by default for new meshes #6375, which is why this option is the default here.config_land_ice_draft_mode = 'data'
provides a more accurate determination of the SSH gradient near ice shelves when the land ice pressure is adjusted during initialization. This config option is set for all meshes with ice shelf cavities employed in e3sm tests that were created prior to #6375.The use of
landIceDraft
is:landIceDraft
was computed in compass usingSHR_CONST_RHOSW
. To increase accuracy, a representative ocean density near ice shelf fronts should be used. The separate config optionconfig_land_ice_rho_ocean
is used for this purpose.[NML]
[NCC]