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

Passing shelf_sfc_mass_flux to ice shelf #818

Open
wants to merge 10 commits into
base: dev/gfdl
Choose a base branch
from

Conversation

OlgaSergienko
Copy link

This is the first PR from gfdl-cryopshere group. It includes several changes related to the surface mass flux from the land to the ice sheet, shelf_sfc_mass_flux. It is now defined in MOM_surface_forcing_gfdl.F90 and its values are passed to fluxes%shelf_sfc_mass_flux. This field can be used in configurations with a static ice sheet. To accommodate that it is now registered as a diagnostic field with CS%active_shelf_dynamics=.false..

@@ -1962,9 +1962,6 @@ subroutine initialize_ice_shelf(param_file, ocn_grid, Time, CS, diag, Time_init,
'ice shelf thickness', 'm', conversion=US%Z_to_m)
CS%id_dhdt_shelf = register_diag_field('ice_shelf_model', 'dhdt_shelf', CS%diag%axesT1, CS%Time, &
'change in ice shelf thickness over time', 'm s-1', conversion=US%Z_to_m*US%s_to_T)
CS%id_mass_flux = register_diag_field('ice_shelf_model', 'mass_flux', CS%diag%axesT1,&
CS%Time, 'Total mass flux of freshwater across the ice-ocean interface.', &
'kg/s', conversion=US%RZ_T_to_kg_m2s*US%L_to_m**2)

Copy link
Member

Choose a reason for hiding this comment

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

Was the removal of the CS%id_mass_flux = register_diag_field() call intentional? If so, the corresponding post_data(CS%id_mass_flux, ...) call on line 849 should also be removed, and a comment explaining why should be added to the description of the commit.

if (present(fluxes_in)) call initialize_ice_shelf_fluxes(CS, ocn_grid, US, fluxes_in)
if (present(fluxes_in)) then
call initialize_ice_shelf_fluxes(CS, ocn_grid, US, fluxes_in)
call register_restart_field(fluxes_in%shelf_sfc_mass_flux, "sfc_mass_flux", .true., CS%restart_CSp, &
Copy link
Member

Choose a reason for hiding this comment

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

This restart registration is occurring after the call to restore_state() on about line 1900, so fluxes_in%shelf_sfc_mass_flux will not be read from the restart file. Please consider moving this restart registration call earlier in the routine so that it occurs before the call to restore_state(). Also, it might be worthwhile to verify that the restart writes and reads are both working as intended for this new variable, if this has not already been done.

Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

There are a few issues that I would to see addressed before we could merge in this useful new field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants