MOM_ice_shelf module reference
Implements the thermodynamic aspects of ocean / ice-shelf interactions, along with a crude placeholder for a later implementation of full ice shelf dynamics, all using the MOM framework and coding style.
Data Types
Control structure that contains ice shelf parameters and diagnostics handles |
Functions/Subroutines
Calculates fluxes between the ocean and ice-shelf using the three-equations formulation (optional to use just two equations). See ICE_SHELF equations |
|
Copies frazil from the ocean surface state to the ice sheet state. Removes frazil that will be used by the ice sheet from the ocean surface state |
|
Converts the ice-shelf-to-ocean calving and calving_hflx variables from the ice-shelf state (ISS) type to the ocean public type |
|
Changes the thickness (mass) of the ice shelf based on sub-ice-shelf melting |
|
This subroutine adds the mechanical forcing fields and perhaps shelf areas, based on the ice state in ice_shelf_CS. |
|
This subroutine adds the ice shelf pressure to the fluxes type. |
|
Updates surface fluxes that are influenced by sub-ice-shelf melting |
|
Initializes shelf model data, parameters and diagnostics |
|
Allocate and initialize the ice-shelf forcing elements of a mechanical forcing type. This forcing type is on the unrotated grid that is used outside of the MOM6 ice shelf code. |
|
Initializes shelf mass based on three options (file, zero and user) |
|
This subroutine applies net accumulation/ablation at the top surface to the dynamic ice shelf. acc_rate[m-s]=surf_mass_flux/density_ice is ablation/accumulation rate positive for accumulation negative for ablation |
|
Updates the ice shelf mass using data from a file. |
|
Update the ice-shelf surface mass balance (SMB) field |
|
Save the ice shelf restart file |
|
Save the ice shelf restart file |
|
Deallocates all memory associated with this module |
|
This routine is for stepping a stand-alone ice shelf model without an ocean. |
|
Post_data calls for ice-sheet scalars |
|
Initialize ice surface mass balance field that is held constant over time |
Detailed Description
This module implements the thermodynamic aspects of ocean/ice-shelf
inter-actions using the MOM framework and coding style.
Derived from code by Chris Little, early 2010.
The ice-sheet dynamics subroutines do the following: initialize_shelf_mass - Initializes the ice shelf mass distribution.
Initializes h_shelf, h_mask, area_shelf_h
CURRENTLY: initializes mass_shelf as well, but this is unnecessary, as mass_shelf is initialized based on h_shelf and density_ice immediately afterwards. Possibly subroutine should be renamed update_shelf_mass - updates ice shelf mass via netCDF file USER_update_shelf_mass (TODO). solo_step_ice_shelf - called only in ice-only mode. shelf_calc_flux - after melt rate & fluxes are calculated, ice dynamics are done. Currently mass_shelf is updated immediately after ice_shelf_advect in fully dynamic mode.
NOTES: be aware that hmask(:,:) has a number of functions; it is used for front advancement, for subroutines in the velocity solve, and for thickness boundary conditions (this last one may be removed). in other words, interfering with its updates will have implications you might not expect.
Overall issues: Many variables need better documentation and units and the subgrid on which they are discretized.
ICE_SHELF equations
The three fundamental equations are: Heat flux
Salt flux
Freezing temperature
where ....
References
Asay-Davis, Xylar S., Stephen L. Cornford, Benjamin K. Galton-Fenzi, Rupert M. Gladstone, G. Hilmar Gudmundsson, David M. Holland, Paul R. Holland, and Daniel F. Martin. Experimental design for three interrelated marine ice sheet and ocean model intercomparison projects: MISMIP v. 3 (MISMIP+), ISOMIP v. 2 (ISOMIP+) and MISOMIP v. 1 (MISOMIP1). Geoscientific Model Development 9, no. 7 (2016): 2471.
Goldberg, D. N., et al. Investigation of land ice-ocean interaction with a fully coupled ice-ocean model: 1. Model description and behavior. Journal of Geophysical Research: Earth Surface 117.F2 (2012).
Goldberg, D. N., et al. Investigation of land ice-ocean interaction with a fully coupled ice-ocean model: 2. Sensitivity to external forcings. Journal of Geophysical Research: Earth Surface 117.F2 (2012).
Holland, David M., and Adrian Jenkins. Modeling thermodynamic ice-ocean interactions at the base of an ice shelf. Journal of Physical Oceanography 29.8 (1999): 1787-1800.
Type Documentation
- type, public :: ice_shelf_CS
Control structure that contains ice shelf parameters and diagnostics handles
- Parameters
restart_CSp
A pointer to the restart control structure for the ice shelves
Grid_in
un-rotated input grid metric
rotate_index
True if index map is rotated
turns
The number of quarter turns for rotation testing.
Grid
Grid for the ice-shelf model
US
A structure containing various unit conversion factors
ocn_grid
A pointer to the ocean model grid The rest is private
flux_factor
A factor that can be used to turn off ice shelf melting (flux_factor = 0) [nondim].
restart_output_dir
The directory in which to write restart files
ISS
A structure with elements that describe the ice-shelf state
dCS
The control structure for the ice-shelf dynamics.
utide
An unresolved tidal velocity [L T-1 ~> m s-1]
ustar_bg
A minimum value for ustar under ice shelves [Z T-1 ~> m s-1].
ustar_max
A maximum value for ustar under ice shelves, or a negative value to have no limit [Z T-1 ~> m s-1].
cdrag
drag coefficient under ice shelves [nondim].
g_Earth
The gravitational acceleration [L2 Z-1 T-2 ~> m s-2]
Cp
The heat capacity of sea water [Q C-1 ~> J kg-1 degC-1].
Rho_ocn
A reference ocean density [R ~> kg m-3].
Cp_ice
The heat capacity of fresh ice [Q C-1 ~> J kg-1 degC-1].
gamma_t
The (fixed) turbulent exchange velocity in the 2-equation formulation [Z T-1 ~> m s-1].
Salin_ice
The salinity of shelf ice [S ~> ppt].
Temp_ice
The core temperature of shelf ice [C ~> degC].
kv_ice
The viscosity of ice [L4 Z-2 T-1 ~> m2 s-1].
density_ice
A typical density of ice [R ~> kg m-3].
kv_molec
The molecular kinematic viscosity of sea water [Z2 T-1 ~> m2 s-1].
kd_molec_salt
The molecular diffusivity of salt [Z2 T-1 ~> m2 s-1].
kd_molec_temp
The molecular diffusivity of heat [Z2 T-1 ~> m2 s-1].
Lat_fusion
The latent heat of fusion [Q ~> J kg-1].
Gamma_T_3EQ
Nondimensional heat-transfer coefficient, used in the 3Eq. formulation [nondim]
Gamma_S_3EQ
Nondimensional salt-transfer coefficient, used in the 3Eq. formulation [nondim] This number should be specified by the user.
col_mass_melt_threshold
An ocean column mass below the iceshelf below which melting does not occur [R Z ~> kg m-2]
mass_from_file
Read the ice shelf mass from a file every dt
ustar_shelf_from_vel
If true, use the surface velocities, and not the previous values of the stresses to set ustar.
!! PHYSICAL AND NUMERICAL PARAMETERS FOR ICE DYNAMICS !!!!!!
time_step
this is the shortest timestep that the ice shelf sees [T ~> s], and is equal to the forcing timestep (it is passed in when the shelf is initialized - so need to reorganize MOM driver. it will be the prognostic timestep ... maybe.
solo_ice_sheet
whether the ice model is running without being coupled to the ocean
GL_regularize
whether to regularize the floatation condition at the grounding line a la Goldberg Holland Schoof 2009
GL_couple
whether to let the floatation condition be determined by ocean column thickness means update_OD_ffrac will be called (note: GL_regularize and GL_couple should be exclusive)
calve_to_mask
If true, calve any ice that passes outside of a masked area
calve_ice_shelf_bergs
If true, flux through a static ice front is converted to point bergs
min_thickness_simple_calve
min. ice shelf thickness criteria for calving [Z ~> m].
T0
temperature at ocean surface in the restoring region [C ~> degC]
S0
Salinity at ocean surface in the restoring region [S ~> ppt].
input_flux
The vertically integrated inward ice thickness flux per unit face length at an upstream boundary [Z L T-1 ~> m2 s-1]
input_thickness
Ice thickness at an upstream open boundary [Z ~> m].
Time
The component's time.
eqn_of_state
Type that indicates the equation of state to use.
active_shelf_dynamics
True if the ice shelf mass changes as a result the dynamic ice-shelf model.
shelf_mass_is_dynamic
True if ice shelf mass changes over time. If true, ice shelf dynamics will be initialized
data_override_shelf_fluxes
True if the ice shelf surface mass fluxes can be written using the data_override feature (only for MOSAIC grids)
override_shelf_movement
If true, user code specifies the shelf movement instead of using the dynamic ice-shelf mode.
isthermo
True if the ice shelf can exchange heat and mass with the underlying ocean.
threeeq
If true, the 3 equation consistency equations are used to calculate the flux at the ocean-ice interface.
insulator
If true, ice shelf is a perfect insulator
const_gamma
If true, gamma_T is specified by the user.
constant_sea_level
if true, apply an evaporative, heat and salt fluxes. It will avoid large increase in sea level.
constant_sea_level_misomip
If true, constant_sea_level fluxes are applied only over the surface sponge cells from the ISOMIP/MISOMIP configuration
smb_diag
If true, calculate diagnostics related to surface mass balance
bmb_diag
If true, calculate diagnostics related to basal mass balance
min_ocean_mass_float
The minimum ocean mass per unit area before the ice shelf is considered to float when constant_sea_level is used [R Z ~> kg m-2]
cutoff_depth
Depth above which melt is set to zero (>= 0) [Z ~> m].
find_salt_root
If true, if true find Sbdry using a quadratic eq.
TFr_0_0
The freezing point at 0 pressure and 0 salinity [C ~> degC]
dTFr_dS
Partial derivative of freezing temperature with salinity [C S-1 ~> degC ppt-1]
dTFr_dp
Partial derivative of freezing temperature with pressure [C T2 R-1 L-2 ~> degC Pa-1]
Zeta_N
The stability constant xi_N = 0.052 from Holland & Jenkins '99 divided by the von Karman constant VK [nondim]. Was 1/8.
Vk
Von Karman's constant [nondim]
Rc
critical flux Richardson number [nondim]
ustar_from_vel_bugfix
If true, fixes ustar from ocean velocity bug
buoy_flux_itt_bugfix
If true, fixes buoyancy iteration bug
salt_flux_itt_bugfix
If true, fixes salt iteration bug
id_melt
Diagnostic handles
id_exch_vel_s
Diagnostic handles
id_exch_vel_t
Diagnostic handles
id_tfreeze
Diagnostic handles
id_tfl_shelf
Diagnostic handles
id_thermal_driving
Diagnostic handles
id_haline_driving
Diagnostic handles
id_u_ml
Diagnostic handles
id_v_ml
Diagnostic handles
id_sbdry
Diagnostic handles
id_h_shelf
Diagnostic handles
id_dhdt_shelf
Diagnostic handles
id_h_mask
Diagnostic handles
id_frazil
Diagnostic handles
id_surf_elev
Diagnostic handles
id_bathym
Diagnostic handles
id_area_shelf_h
Diagnostic handles
id_ustar_shelf
Diagnostic handles
id_shelf_mass
Diagnostic handles
id_mass_flux
Diagnostic handles
id_shelf_sfc_mass_flux
Diagnostic handles
id_vaf
Diagnostic handles
id_g_adott
Diagnostic handles
id_f_adott
Diagnostic handles
id_adott
Diagnostic handles
id_bdott_melt
Diagnostic handles
id_bdott_accum
Diagnostic handles
id_bdott
Diagnostic handles
id_dvafdt
Diagnostic handles
id_g_adot
Diagnostic handles
id_f_adot
Diagnostic handles
id_adot
Diagnostic handles
id_bdot_melt
Diagnostic handles
id_bdot_accum
Diagnostic handles
id_bdot
Diagnostic handles
id_t_area
Diagnostic handles
id_g_area
Diagnostic handles
id_f_area
Diagnostic handles
id_Ant_vaf
Diagnostic handles
id_Ant_g_adott
Diagnostic handles
id_Ant_f_adott
Diagnostic handles
id_Ant_adott
Diagnostic handles
id_Ant_bdott_melt
Diagnostic handles
id_Ant_bdott_accum
Diagnostic handles
id_Ant_bdott
Diagnostic handles
id_Ant_dvafdt
Diagnostic handles
id_Ant_g_adot
Diagnostic handles
id_Ant_f_adot
Diagnostic handles
id_Ant_adot
Diagnostic handles
id_Ant_bdot_melt
Diagnostic handles
id_Ant_bdot_accum
Diagnostic handles
id_Ant_bdot
Diagnostic handles
id_Ant_t_area
Diagnostic handles
id_Ant_g_area
Diagnostic handles
id_Ant_f_area
Diagnostic handles
id_Gr_vaf
Diagnostic handles
id_Gr_g_adott
Diagnostic handles
id_Gr_f_adott
Diagnostic handles
id_Gr_adott
Diagnostic handles
id_Gr_bdott_melt
Diagnostic handles
id_Gr_bdott_accum
Diagnostic handles
id_Gr_bdott
Diagnostic handles
id_Gr_dvafdt
Diagnostic handles
id_Gr_g_adot
Diagnostic handles
id_Gr_f_adot
Diagnostic handles
id_Gr_adot
Diagnostic handles
id_Gr_bdot_melt
Diagnostic handles
id_Gr_bdot_accum
Diagnostic handles
id_Gr_bdot
Diagnostic handles
id_Gr_t_area
Diagnostic handles
id_Gr_g_area
Diagnostic handles
id_Gr_f_area
Diagnostic handles
smb_file
Handle for reading the time interpolated smb from a file
time_varying_smb
logical flag set true if reading time-varying smb
mass_handle
Handle for reading the time interpolated ice shelf mass from a file
area_handle
Handle for reading the time interpolated ice shelf area from a file
diag
A structure that is used to control diagnostic output.
user_CS
A pointer to the control structure for user-supplied modifications to the ice shelf code.
debug
If true, write verbose checksums for debugging purposes and use reproducible sums
Functions/Subroutine Documentation
- subroutine shelf_calc_flux(sfc_state_in, fluxes_in, Time, time_step_in, CS)
Calculates fluxes between the ocean and ice-shelf using the three-equations formulation (optional to use just two equations). See ICE_SHELF equations
- Parameters
sfc_state_in [inout]
A structure containing fields that describe the surface state of the ocean. The intent is only inout to allow for halo updates.
fluxes_in [inout]
structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
Time [in]
Start time of the fluxes.
time_step_in [in]
Length of time over which these fluxes will be applied [T ~> s].
CS
A pointer to the control structure returned by a previous call to initialize_ice_shelf.
G
The grid structure used by the ice shelf.
US
Pointer to a structure containing various unit conversion factors
ISS
A structure with elements that describe the ice-shelf state
Rhoml
Ocean mixed layer density [R ~> kg m-3].
dR0_dT
Partial derivative of the mixed layer density with temperature [R C-1 ~> kg m-3 degC-1].
dR0_dS
Partial derivative of the mixed layer density with salinity [R S-1 ~> kg m-3 ppt-1].
p_int
The pressure at the ice-ocean interface [R L2 T-2 ~> Pa].
exch_vel_t
Sub-shelf thermal exchange velocity [Z T-1 ~> m s-1]
exch_vel_s
Sub-shelf salt exchange velocity [Z T-1 ~> m s-1]
dh_bdott
Basal melt/accumulation over a time step, used for diagnostics [Z ~> m]
dh_adott
Surface melt/accumulation over a time step, used for diagnostics [Z ~> m]
mass_flux
Total mass flux of freshwater across the ice-ocean interface. [R Z L2 T-1 ~> kg s-1]
haline_driving
(SSS - S_boundary) ice-ocean interface, positive for melting and negative for freezing [S ~> ppt]. This is computed as part of the ISOMIP diagnostics.
time_step
Length of time over which these fluxes will be applied [T ~> s].
Itime_step
Inverse of the length of time over which these fluxes will be applied [T-1 ~> s-1]
VK
Von Karman's constant [nondim]
ZETA_N
This is the stability constant xi_N = 0.052 from Holland & Jenkins '99 divided by the von Karman constant VK. Was 1/8. [nondim]
Rf_crit
critical flux Richardson number [nondim]
I_2Zeta_N
Half the inverse of Zeta_N [nondim].
I_LF
The inverse of the latent heat of fusion [Q-1 ~> kg J-1].
I_VK
The inverse of the Von Karman constant [nondim].
PR
The Prandtl number and Schmidt number [nondim].
SC
The Prandtl number and Schmidt number [nondim].
Sbdry
Salinities in the ocean at the interface with the ice shelf [S ~> ppt].
dS_it
The interface salinity change during an iteration [S ~> ppt].
hBL_neut
The neutral boundary layer thickness [Z ~> m].
hBL_neut_h_molec
The ratio of the neutral boundary layer thickness to the molecular boundary layer thickness [nondim].
wT_flux
The downward vertical flux of heat just inside the ocean [C Z T-1 ~> degC m s-1].
wB_flux
The downward vertical flux of buoyancy just inside the ocean [Z2 T-3 ~> m2 s-3].
dB_dS
The derivative of buoyancy with salinity [Z T-2 S-1 ~> m s-2 ppt-1].
dB_dT
The derivative of buoyancy with temperature [Z T-2 C-1 ~> m s-2 degC-1].
dIns_dwB
The partial derivative of I_n_star with wB_flux, in [T3 Z-2 ~> s3 m-2]
Callees call graph
Text view
mom_ice_shelf::shelf_calc_flux → mom_checksums::interface::hchksum
mom_ice_shelf::shelf_calc_flux → mom_checksums::interface::uvchksum
mom_ice_shelf::shelf_calc_flux → mom_cpu_clock_infra::cpu_clock_begin
mom_ice_shelf::shelf_calc_flux → mom_cpu_clock_infra::cpu_clock_end
mom_ice_shelf::shelf_calc_flux → mom_data_override_infra::interface::impose_data
mom_ice_shelf::shelf_calc_flux → mom_domain_infra::interface::pass_var
mom_ice_shelf::shelf_calc_flux → mom_domain_infra::interface::pass_vector
mom_ice_shelf::shelf_calc_flux → mom_eos::interface::calculate_density
mom_ice_shelf::shelf_calc_flux → mom_eos::interface::calculate_density_derivs
mom_ice_shelf::shelf_calc_flux → mom_eos::interface::calculate_tfreeze
mom_ice_shelf::shelf_calc_flux → mom_error_handler::mom_error
mom_ice_shelf::shelf_calc_flux → mom_forcing_type::deallocate_forcing_type
mom_ice_shelf::shelf_calc_flux → mom_forcing_type::interface::allocate_forcing_type
mom_ice_shelf::shelf_calc_flux → mom_forcing_type::mom_forcing_chksum
mom_ice_shelf::shelf_calc_flux → mom_forcing_type::rotate_forcing
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf::add_shelf_flux
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf::change_thickness_using_melt
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf::change_thickness_using_precip
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf::process_and_post_scalar_data
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf::update_shelf_mass
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf_dynamics::is_dynamics_post_data
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf_dynamics::update_ice_shelf
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf_dynamics::volume_above_floatation
mom_ice_shelf::shelf_calc_flux → mom_ice_shelf_dynamics::write_ice_shelf_energy
mom_ice_shelf::shelf_calc_flux → mom_is_diag_mediator::disable_averaging
mom_ice_shelf::shelf_calc_flux → mom_is_diag_mediator::enable_averages
mom_ice_shelf::shelf_calc_flux → mom_is_diag_mediator::interface::post_is_data
mom_ice_shelf::shelf_calc_flux → mom_time_manager::real_to_time
mom_ice_shelf::shelf_calc_flux → mom_variables::deallocate_surface_state
mom_ice_shelf::shelf_calc_flux → mom_variables::rotate_surface_state
- subroutine adjust_ice_sheet_frazil(sfc_state_in, fluxes_in, CS)
Copies frazil from the ocean surface state to the ice sheet state. Removes frazil that will be used by the ice sheet from the ocean surface state
- Parameters
sfc_state_in [inout]
A structure containing fields that describe the surface state of the ocean. The intent is only inout to allow for halo updates.
fluxes_in [in]
structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
CS
A pointer to the control structure returned by a previous call to initialize_ice_shelf.
G
The grid structure used by the ice shelf.
ISS
A structure with elements that describe the ice-shelf state
Callees call graph
Text view
mom_ice_shelf::adjust_ice_sheet_frazil → mom_forcing_type::deallocate_forcing_type
mom_ice_shelf::adjust_ice_sheet_frazil → mom_forcing_type::interface::allocate_forcing_type
mom_ice_shelf::adjust_ice_sheet_frazil → mom_forcing_type::rotate_forcing
mom_ice_shelf::adjust_ice_sheet_frazil → mom_variables::deallocate_surface_state
mom_ice_shelf::adjust_ice_sheet_frazil → mom_variables::rotate_surface_state
function integrate_over_ice_sheet_area(G, ISS, var, unscale, hemisphere) result(var_out)
- Parameters
G [in]
The grid structure used by the ice shelf.
ISS [in]
A structure with elements that describe the ice-shelf state
var [in]
Ice variable to integrate in arbitrary units [A ~> a]
unscale [in]
Dimensional scaling for variable to integrate [a A-1 ~> 1]
hemisphere [in]
0 for Antarctica only, 1 for Greenland only. Otherwise, all ice sheets
var_out
Variable integrated over the area of the ice sheet in arbitrary scaled units [A L2 ~> a m2]
var_cell
Variable integrated over the ice-sheet area of each cell in arbitrary units [A L2 ~> a m2]
Callees call graph
Callers call graph
- subroutine ice_sheet_calving_to_ocean_sfc(CS, US, calving, calving_hflx)
Converts the ice-shelf-to-ocean calving and calving_hflx variables from the ice-shelf state (ISS) type to the ocean public type
- Parameters
CS
A pointer to the ice shelf control structure
US [in]
A dimensional unit scaling type
calving [inout]
The mass flux per unit area of the ice shelf to convert to bergs [R Z T-1 ~> kg m-2 s-1].
calving_hflx [inout]
Calving heat flux [Q R Z T-1 ~> W m-2].
ISS
A structure with elements that describe the ice-shelf state
G
A pointer to the ocean grid metric.
- subroutine change_thickness_using_melt(ISS, G, US, time_step, fluxes, density_ice, debug)
Changes the thickness (mass) of the ice shelf based on sub-ice-shelf melting
- Parameters
G [inout]
The ocean's grid structure.
ISS [inout]
A structure with elements that describe the ice-shelf state
US [in]
A dimensional unit scaling type
time_step [in]
The time step for this update [T ~> s].
fluxes [inout]
structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
density_ice [in]
The density of ice-shelf ice [R ~> kg m-3].
debug [in]
If present and true, write chksums
Callees call graph
Callers call graph
- subroutine add_shelf_forces(Ocn_grid, US, CS, forces_in, do_shelf_area, external_call)
This subroutine adds the mechanical forcing fields and perhaps shelf areas, based on the ice state in ice_shelf_CS.
- Parameters
Ocn_grid [in]
The ocean's grid structure.
US [in]
A dimensional unit scaling type
CS
This module's control structure.
forces_in [inout]
A structure with the driving mechanical forces
do_shelf_area [in]
If true find the shelf-covered areas.
external_call [in]
If true the incoming forcing type is using the unrotated input grid and may need to be rotated.
G
A pointer to the ocean grid metric.
forces
A structure with the driving mechanical forces
Callees call graph
Text view
mom_ice_shelf::add_shelf_forces → mom_checksums::interface::uvchksum
mom_ice_shelf::add_shelf_forces → mom_domain_infra::interface::pass_vector
mom_ice_shelf::add_shelf_forces → mom_error_handler::mom_error
mom_ice_shelf::add_shelf_forces → mom_forcing_type::deallocate_mech_forcing
mom_ice_shelf::add_shelf_forces → mom_forcing_type::interface::allocate_mech_forcing
mom_ice_shelf::add_shelf_forces → mom_forcing_type::rotate_mech_forcing
Callers call graph
- subroutine add_shelf_pressure(Ocn_grid, US, CS, fluxes)
This subroutine adds the ice shelf pressure to the fluxes type.
- Parameters
Ocn_grid [in]
The ocean's grid structure.
US [in]
A dimensional unit scaling type
CS [in]
This module's control structure.
fluxes [inout]
A structure of surface fluxes that may be updated.
press_ice
The pressure of the ice shelf per unit area of ocean (not ice) [R L2 T-2 ~> Pa].
Callers call graph
- subroutine add_shelf_flux(G, US, CS, sfc_state, fluxes, time_step)
Updates surface fluxes that are influenced by sub-ice-shelf melting
- Parameters
G [inout]
The ocean's grid structure.
US [in]
A dimensional unit scaling type
CS
This module's control structure.
sfc_state [inout]
Surface ocean state
fluxes [inout]
A structure of surface fluxes that may be used/updated.
time_step [in]
Time step over which fluxes are applied [T ~> s]
frac_shelf
The fractional area covered by the ice shelf [nondim].
frac_open
The fractional area of the ocean that is not covered by the ice shelf [nondim].
delta_mass_shelf
Change in ice shelf mass over one time step [R Z L2 T-1 ~> kg s-1]
balancing_flux
The fresh water flux that balances the integrated melt flux [R Z T-1 ~> kg m-2 s-1]
balancing_area
total area where the balancing flux is applied [L2 ~> m2]
dTime
The time step as a time_type
Time0
The previous time (Time-dt)
bal_frac
Fraction of the cell where the mass flux balancing the net melt flux occurs, 0 to 1 [nondim]
last_mass_shelf
Ice shelf mass at at previous time (Time-dt) [R Z ~> kg m-2]
delta_float_mass
The change in the floating mass between the two timesteps at (Time) and (Time-dt) [R Z ~> kg m-2].
last_h_shelf
Ice shelf thickness [Z ~> m] at at previous time (Time-dt)
last_hmask
Ice shelf mask [nondim] at at previous time (Time-dt)
last_area_shelf_h
Ice shelf area [L2 ~> m2] at at previous time (Time-dt)
delta_draft
change in ice shelf draft thickness [L ~> m] since previous time (Time-dt)
ISS
A structure with elements that describe the ice-shelf state
Callees call graph
Text view
mom_ice_shelf::add_shelf_flux → mom_checksums::interface::hchksum
mom_ice_shelf::add_shelf_flux → mom_checksums::interface::uvchksum
mom_ice_shelf::add_shelf_flux → mom_error_handler::mom_error
mom_ice_shelf::add_shelf_flux → mom_forcing_type::mom_forcing_chksum
mom_ice_shelf::add_shelf_flux → mom_ice_shelf::add_shelf_pressure
mom_ice_shelf::add_shelf_flux → mom_ice_shelf_dynamics::change_in_draft
mom_ice_shelf::add_shelf_flux → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf::add_shelf_flux → mom_interpolate::interface::time_interp_external
mom_ice_shelf::add_shelf_flux → mom_spatial_means::global_area_integral
mom_ice_shelf::add_shelf_flux → mom_time_manager::real_to_time
- subroutine initialize_ice_shelf(param_file, ocn_grid, Time, CS, diag, Time_init, directory, forces_in, fluxes_in, sfc_state_in, solo_ice_sheet_in, calve_ice_shelf_bergs)
Initializes shelf model data, parameters and diagnostics
- Parameters
param_file [in]
A structure to parse for run-time parameters
ocn_grid
The calling ocean model's horizontal grid structure
Time [inout]
The clock that that will indicate the model time
CS
A pointer to the ice shelf control structure
diag
This is a pointer to the MOM diag CS which will be discarded
Time_init [in]
The time at initialization.
directory [in]
The directory where the energy file goes.
forces_in [inout]
A structure with the driving mechanical forces
fluxes_in [inout]
A structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
sfc_state_in [inout]
A structure containing fields that describe the surface state of the ocean. The intent is only inout to allow for halo updates.
solo_ice_sheet_in [in]
If present, this indicates whether a solo ice-sheet driver.
calve_ice_shelf_bergs
If true, will add point iceberg calving variables to the ice shelf restart
ISS
A structure with elements that describe the ice-shelf state
Callees call graph
Text view
mom_ice_shelf::initialize_ice_shelf → mom_array_transform::interface::rotate_array
mom_ice_shelf::initialize_ice_shelf → mom_checksums::interface::hchksum
mom_ice_shelf::initialize_ice_shelf → mom_coms_infra::num_pes
mom_ice_shelf::initialize_ice_shelf → mom_cpu_clock_infra::cpu_clock_begin
mom_ice_shelf::initialize_ice_shelf → mom_cpu_clock_infra::cpu_clock_end
mom_ice_shelf::initialize_ice_shelf → mom_cpu_clock_infra::cpu_clock_id
mom_ice_shelf::initialize_ice_shelf → mom_domain_infra::interface::clone_mom_domain
mom_ice_shelf::initialize_ice_shelf → mom_domain_infra::interface::pass_var
mom_ice_shelf::initialize_ice_shelf → mom_domains::mom_domains_init
mom_ice_shelf::initialize_ice_shelf → mom_dyn_horgrid::create_dyn_horgrid
mom_ice_shelf::initialize_ice_shelf → mom_dyn_horgrid::destroy_dyn_horgrid
mom_ice_shelf::initialize_ice_shelf → mom_dyn_horgrid::rotate_dyn_horgrid
mom_ice_shelf::initialize_ice_shelf → mom_error_handler::calltree_showquery
mom_ice_shelf::initialize_ice_shelf → mom_error_handler::calltree_waypoint
mom_ice_shelf::initialize_ice_shelf → mom_error_handler::mom_error
mom_ice_shelf::initialize_ice_shelf → mom_error_handler::mom_mesg
mom_ice_shelf::initialize_ice_shelf → mom_file_parser::interface::get_param
mom_ice_shelf::initialize_ice_shelf → mom_file_parser::interface::log_version
mom_ice_shelf::initialize_ice_shelf → mom_fixed_initialization::mom_initialize_topography
mom_ice_shelf::initialize_ice_shelf → mom_get_input::get_mom_input
mom_ice_shelf::initialize_ice_shelf → mom_grid::mom_grid_init
mom_ice_shelf::initialize_ice_shelf → mom_grid_initialize::initialize_masks
mom_ice_shelf::initialize_ice_shelf → mom_grid_initialize::set_grid_metrics
mom_ice_shelf::initialize_ice_shelf → mom_hor_index::rotate_hor_index
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf::initialize_ice_shelf_fluxes
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf::initialize_ice_shelf_forces
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf::initialize_shelf_mass
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_dynamics::initialize_ice_shelf_dyn
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_initialize::initialize_ice_thickness
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_state::ice_shelf_state_init
mom_ice_shelf::initialize_ice_shelf → mom_io::interface::mom_read_data
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::interface::register_mom_is_scalar_field
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::mom_is_diag_mediator_close_registration
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::mom_is_diag_mediator_init
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::register_mom_is_diag_field
mom_ice_shelf::initialize_ice_shelf → mom_is_diag_mediator::set_is_axes_info
mom_ice_shelf::initialize_ice_shelf → mom_restart::interface::register_restart_field
mom_ice_shelf::initialize_ice_shelf → mom_restart::interface::register_restart_pair
mom_ice_shelf::initialize_ice_shelf → mom_restart::restart_init
mom_ice_shelf::initialize_ice_shelf → mom_restart::restore_state
mom_ice_shelf::initialize_ice_shelf → mom_restart::save_restart
mom_ice_shelf::initialize_ice_shelf → mom_safe_alloc::interface::safe_alloc_ptr
mom_ice_shelf::initialize_ice_shelf → mom_string_functions::slasher
mom_ice_shelf::initialize_ice_shelf → mom_transcribe_grid::copy_dyngrid_to_mom_grid
mom_ice_shelf::initialize_ice_shelf → mom_unit_scaling::fix_restart_unit_scaling
mom_ice_shelf::initialize_ice_shelf → mom_unit_scaling::unit_scaling_init
mom_ice_shelf::initialize_ice_shelf → mom_variables::allocate_surface_state
mom_ice_shelf::initialize_ice_shelf → mom_variables::rotate_surface_state
subroutine initialize_ice_shelf_fluxes(CS, ocn_grid, US, fluxes_in)
- Parameters
CS
A pointer to the ice shelf control structure
ocn_grid
The calling ocean model's horizontal grid structure
US [in]
A dimensional unit scaling type
fluxes_in [inout]
A structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
Callees call graph
Text view
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_checksums::interface::hchksum
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_error_handler::mom_mesg
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_forcing_type::deallocate_forcing_type
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_forcing_type::interface::allocate_forcing_type
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_forcing_type::rotate_forcing
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_ice_shelf::add_shelf_pressure
Callers call graph
- subroutine initialize_ice_shelf_forces(CS, ocn_grid, US, forces_in)
Allocate and initialize the ice-shelf forcing elements of a mechanical forcing type. This forcing type is on the unrotated grid that is used outside of the MOM6 ice shelf code.
- Parameters
CS
A pointer to the ice shelf control structure
ocn_grid
The calling ocean model's horizontal grid structure
US [in]
A dimensional unit scaling type
forces_in [inout]
A structure with the driving mechanical forces
Callees call graph
Text view
mom_ice_shelf::initialize_ice_shelf_forces → mom_error_handler::mom_error
mom_ice_shelf::initialize_ice_shelf_forces → mom_error_handler::mom_mesg
mom_ice_shelf::initialize_ice_shelf_forces → mom_forcing_type::deallocate_mech_forcing
mom_ice_shelf::initialize_ice_shelf_forces → mom_forcing_type::interface::allocate_mech_forcing
mom_ice_shelf::initialize_ice_shelf_forces → mom_forcing_type::rotate_mech_forcing
mom_ice_shelf::initialize_ice_shelf_forces → mom_ice_shelf::add_shelf_forces
Callers call graph
- subroutine initialize_shelf_mass(G, param_file, CS, ISS, new_sim)
Initializes shelf mass based on three options (file, zero and user)
- Parameters
G [in]
The ocean's grid structure.
param_file [in]
A structure to parse for run-time parameters
CS
A pointer to the ice shelf control structure
ISS [inout]
The ice shelf state type that is being updated
new_sim [in]
If present and false, this run is being restarted
Callees call graph
Text view
mom_ice_shelf::initialize_shelf_mass → mom_error_handler::mom_error
mom_ice_shelf::initialize_shelf_mass → mom_file_parser::interface::get_param
mom_ice_shelf::initialize_shelf_mass → mom_file_parser::interface::log_param
mom_ice_shelf::initialize_shelf_mass → mom_interp_infra::init_extern_field
mom_ice_shelf::initialize_shelf_mass → mom_interp_infra::time_interp_extern_init
mom_ice_shelf::initialize_shelf_mass → mom_io_infra::interface::file_exists
mom_ice_shelf::initialize_shelf_mass → mom_string_functions::slasher
mom_ice_shelf::initialize_shelf_mass → user_shelf_init::user_initialize_shelf_mass
Callers call graph
- subroutine change_thickness_using_precip(CS, ISS, G, US, fluxes, time_step, Time)
This subroutine applies net accumulation/ablation at the top surface to the dynamic ice shelf. acc_rate[m-s]=surf_mass_flux/density_ice is ablation/accumulation rate positive for accumulation negative for ablation
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [inout]
The ocean's grid structure.
ISS [inout]
A structure with elements that describe the ice-shelf state
fluxes [in]
A structure of surface fluxes that includes surface mass flux
Time [in]
The current model time
US [in]
A dimensional unit scaling type
time_step [in]
The time step for this update [T ~> s].
Callees call graph
- subroutine update_shelf_mass(G, US, CS, ISS, Time)
Updates the ice shelf mass using data from a file.
- Parameters
G [inout]
The ocean's grid structure.
US [in]
A dimensional unit scaling type
CS [in]
A pointer to the ice shelf control structure
ISS [inout]
The ice shelf state type that is being updated
Time [in]
The current model time
Callees call graph
Text view
mom_ice_shelf::update_shelf_mass → mom_array_transform::interface::rotate_array
mom_ice_shelf::update_shelf_mass → mom_domain_infra::interface::pass_var
mom_ice_shelf::update_shelf_mass → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf::update_shelf_mass → mom_interpolate::interface::time_interp_external
- subroutine update_ice_SMB(CS, G, SMB, Time)
Update the ice-shelf surface mass balance (SMB) field
- Parameters
CS
A pointer to the control structure returned by a previous call to initialize_ice_shelf.
G [in]
The ocean's grid structure
SMB [inout]
Ice surface mass balance parameter, often in [R Z T-1 ~> kg m-2 s-1]
Time [in]
Current model time
Callees call graph
- subroutine ice_shelf_query(CS, G, frac_shelf_h, mass_shelf, data_override_shelf_fluxes)
Save the ice shelf restart file
- Parameters
CS
ice shelf control structure
G [in]
A pointer to an ocean grid control structure.
frac_shelf_h [out]
Ice shelf area fraction [nondim].
mass_shelf [out]
Ice shelf mass [R Z ~> kg m-2]
data_override_shelf_fluxes
If true, shelf fluxes can be written using the data_override capability (only for MOSAIC grids)
Callers call graph
- subroutine ice_shelf_save_restart(CS, Time, directory, time_stamped, filename_suffix)
Save the ice shelf restart file
- Parameters
CS
ice shelf control structure
Time [in]
model time at this call
directory [in]
An optional directory into which to write these restart files.
time_stamped [in]
f true, the restart file names include a unique time stamp. The default is false.
filename_suffix [in]
An optional suffix (e.g., a time-stamp) to append to the restart file names.
- subroutine ice_shelf_end(CS)
Deallocates all memory associated with this module
- Parameters
CS
A pointer to the ice shelf control structure
Callees call graph
- subroutine solo_step_ice_shelf(CS, time_interval, nsteps, Time, min_time_step_in, fluxes_in)
This routine is for stepping a stand-alone ice shelf model without an ocean.
- Parameters
CS
A pointer to the ice shelf control structure
time_interval [in]
The time interval for this update [s].
nsteps [inout]
The running number of ice shelf steps.
Time [inout]
The current model time
min_time_step_in [in]
The minimum permitted time step [T ~> s].
fluxes_in [inout]
A structure containing pointers to any possible thermodynamic or mass-flux forcing fields.
ISS
A structure with elements that describe the ice-shelf state
Callees call graph
Text view
mom_ice_shelf::solo_step_ice_shelf → mom_error_handler::mom_error
mom_ice_shelf::solo_step_ice_shelf → mom_error_handler::mom_mesg
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf::change_thickness_using_precip
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf::process_and_post_scalar_data
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf_dynamics::ice_time_step_cfl
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf_dynamics::is_dynamics_post_data
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf_dynamics::update_ice_shelf
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf_dynamics::volume_above_floatation
mom_ice_shelf::solo_step_ice_shelf → mom_ice_shelf_dynamics::write_ice_shelf_energy
mom_ice_shelf::solo_step_ice_shelf → mom_is_diag_mediator::disable_averaging
mom_ice_shelf::solo_step_ice_shelf → mom_is_diag_mediator::enable_averages
mom_ice_shelf::solo_step_ice_shelf → mom_is_diag_mediator::interface::post_is_data
mom_ice_shelf::solo_step_ice_shelf → mom_time_manager::time_to_real
- subroutine process_and_post_scalar_data(CS, vaf0, vaf0_A, vaf0_G, Itime_step, dh_adott, dh_bdott)
Post_data calls for ice-sheet scalars
- Parameters
CS
A pointer to the ice shelf control structure
vaf0
The previous volumes above floatation for all ice sheets [Z L2 ~> m3]
vaf0_A
The previous volumes above floatation for the Antarctic ice sheet [Z L2 ~> m3]
vaf0_G
The previous volumes above floatation for the Greenland ice sheet [Z L2 ~> m3]
Itime_step
Inverse of the time step [T-1 ~> s-1]
dh_adott
Surface (plus basal if solo shelf mode) melt/accumulation over a time step [Z ~> m]
dh_bdott
Surface (plus basal if solo shelf mode) melt/accumulation over a time step [Z ~> m]
Callees call graph
Text view
mom_ice_shelf::process_and_post_scalar_data → mom_ice_shelf::integrate_over_ice_sheet_area
mom_ice_shelf::process_and_post_scalar_data → mom_ice_shelf_dynamics::masked_var_grounded
mom_ice_shelf::process_and_post_scalar_data → mom_ice_shelf_dynamics::volume_above_floatation
mom_ice_shelf::process_and_post_scalar_data → mom_is_diag_mediator::post_is_data_0d
- subroutine initialize_ice_SMB(CS, SMB, G, US, PF)
Initialize ice surface mass balance field that is held constant over time
- Parameters
CS
A pointer to the control structure returned by a previous call to initialize_ice_shelf.
G [in]
The ocean's grid structure
SMB [inout]
Ice surface mass balance parameter, often in [R Z T-1 ~> kg m-2 s-1]
US [in]
A structure containing unit conversion factors
PF [in]
A structure to parse for run-time parameters
Callees call graph
Text view
mom_ice_shelf::initialize_ice_smb → mom_error_handler::mom_error
mom_ice_shelf::initialize_ice_smb → mom_error_handler::mom_mesg
mom_ice_shelf::initialize_ice_smb → mom_file_parser::interface::get_param
mom_ice_shelf::initialize_ice_smb → mom_file_parser::interface::log_param
mom_ice_shelf::initialize_ice_smb → mom_interp_infra::init_extern_field
mom_ice_shelf::initialize_ice_smb → mom_io::interface::mom_read_data
mom_ice_shelf::initialize_ice_smb → mom_io_infra::interface::file_exists
mom_ice_shelf::initialize_ice_smb → mom_string_functions::slasher