MOM_ice_shelf_dynamics module reference
Implements a crude placeholder for a later implementation of full ice shelf dynamics.
Data Types
Conjugate residual |
|
A container for loop bounds |
Functions/Subroutines
used for flux limiting in advective subroutines Van Leer limiter (source: Wikipedia) The return value is between 0 and 2 [nondim]. |
|
Calculate area of quadrilateral. |
|
This subroutine is used to register any fields related to the ice shelf dynamics that should be written to or read from the restart file. |
|
Initializes shelf model data, parameters and diagnostics |
|
This function returns the global maximum advective timestep that can be taken based on the current ice velocities. Because it involves finding a global minimum, it can be surprisingly expensive. |
|
This subroutine updates the ice shelf velocities, mass, stresses and properties due to the ice shelf dynamics. |
|
multiplies a variable with the ice sheet grounding fraction |
|
Ice shelf dynamics post_data calls |
|
Calculate cell-centered, area-averaged, vertically integrated ice viscosity for diagnostics |
|
Writes the total ice shelf kinetic energy and mass to an ascii file |
|
This subroutine takes the velocity (on the Bgrid) and timesteps h_t = - div (uh) once. Additionally, it will update the volume of ice in partially-filled cells, and update hmask accordingly |
|
This subroutine computes u- and v-velocities of the ice shelf iterating on non-linear ice viscosity |
|
Unified inner linear solver for ice shelf velocity. Performs shared setup (RHS, preconditioner, initial matrix-vector product), dispatches to the selected Krylov method, and applies boundary conditions. |
|
CG (Conjugate Gradient) inner Krylov solve for ice shelf velocity. |
|
MINRES inner Krylov solve for ice shelf velocity. |
|
CR (Conjugate Residual) inner Krylov solve for ice shelf velocity. |
|
Apply a very simple calving law using a minimum thickness rule |
|
Calculate driving stress using cell-centered bed elevation and ice thickness |
|
Compute subgrid grounding-line basal traction nodal contributions for a CG action. Evaluates basal friction (Picard and Newton Jacobian) at each grounded sub-quadrature point. The sub-qp flotation test accounts for partial grounding; no external ground_frac scaling needed. |
|
Compute the Picard basal friction coefficient and Newton drag coefficient at a single quadrature point. Encapsulates the 3-path dispatch (linear Weertman / nonlinear Weertman / Coulomb) so that CG_action, matrix_diagonal, and their subgrid equivalents remain readable. The ground_frac scaling is NOT applied here; callers do it after the call. |
|
Returns the sum of the elements in a square matrix. This sum is bitwise identical even if the matrices are rotated. |
|
returns the diagonal entries of the matrix for a Jacobi preconditioning |
|
Compute subgrid grounding-line basal traction contributions for the preconditioner diagonal. Evaluates friction at each grounded sub-quadrature point. Returns separate u and v diagonals because the Newton term uses u^2 for the u-block and v^2 for the v-block. The sub-qp flotation test handles partial grounding; no external ground_frac scaling needed. |
|
Post_data calls related to ice-sheet flux divergence, strain-rate, and deviatoric stress |
|
Update depth integrated viscosity, based on horizontal strain rates |
|
Pre-compute element-level basal friction prefactors for quadrature-point evaluation. |
|
Compute area-averaged basal shear stress [R L T-1 ~> Pa s m-1] and return it in basal_tr. Uses CS%u_shelf and CS%v_shelf for velocities and G%US for unit conversions. |
|
This subroutine calculates the gradients of bilinear basis elements that that are centered at the vertices of the cell. Values are calculated at points of gaussian quadrature. |
|
This subroutine calculates the gradients of bilinear basis elements that are centered at the vertices of the cell using a locally orthogoal MOM6 grid. Values are calculated at points of gaussian quadrature. |
|
This subroutine calculates the gradients of bilinear basis elements that are centered at the vertices of the cell using a locally orthogoal MOM6 grid. Values are calculated at a sinlge cell-centered quadrature point, which should match the grid cell h-point |
|
Interpolate the ice shelf thickness from tracer point to nodal points, subject to a mask. |
|
Deallocates all memory associated with the ice shelf dynamics module |
|
This subroutine updates the vertically averaged ice shelf temperature. |
|
Type Documentation
- type, public :: ice_shelf_dyn_CS
Conjugate residual
The control structure for the ice shelf dynamics.
- Parameters
u_shelf
the zonal velocity of the ice shelf/sheet on q-points (B grid) [L T-1 ~> m s-1]
v_shelf
the meridional velocity of the ice shelf/sheet on q-points (B grid) [L T-1 ~> m s-1]
taudx_shelf
the zonal driving stress of the ice shelf/sheet on q-points (C grid) [R L2 T-2 ~> Pa]
taudy_shelf
the meridional driving stress of the ice shelf/sheet on q-points (C grid) [R L2 T-2 ~> Pa]
sx_shelf
the zonal surface slope of the ice shelf/sheet on q-points (B grid) [nondim]
sy_shelf
the meridional surface slope of the ice shelf/sheet on q-points (B grid) [nondim]
u_face_mask
mask for velocity boundary conditions on the C-grid u-face - this is because the FEM cares about FACES THAT GET INTEGRATED OVER, not vertices. Will represent boundary conditions on computational boundary (or permanent boundary between fast-moving and near-stagnant ice FOR NOW: 1=interior bdry, 0=no-flow boundary, 2=stress bdry condition, 3=inhomogeneous Dirichlet boundary for u and v, 4=flux boundary: at these faces a flux will be specified which will override velocities; a homogeneous velocity condition will be specified (this seems to give the solver less difficulty) 5=inhomogenous Dirichlet boundary for u only. 6=inhomogenous Dirichlet boundary for v only
v_face_mask
A mask for velocity boundary conditions on the C-grid v-face, with valued defined similarly to u_face_mask, but 5 is Dirichlet for v and 6 is Dirichlet for u
u_face_mask_bdry
A duplicate copy of u_face_mask?
v_face_mask_bdry
A duplicate copy of v_face_mask?
u_flux_bdry_val
The ice volume flux per unit face length into the cell through open boundary u-faces (where u_face_mask=4) [Z L T-1 ~> m2 s-1]
v_flux_bdry_val
The ice volume flux per unit face length into the cell through open boundary v-faces (where v_face_mask=4) [Z L T-1 ~> m2 s-1]??
umask
u-mask on the actual degrees of freedom (B grid) 1=normal node, 3=inhomogeneous boundary node, 0 - no flow node (will also get ice-free nodes)
vmask
v-mask on the actual degrees of freedom (B grid) 1=normal node, 3=inhomogeneous boundary node, 0 - no flow node (will also get ice-free nodes)
calve_mask
a mask to prevent the ice shelf front from advancing past its initial position (but it may retreat)
t_shelf
Vertically integrated temperature in the ice shelf/stream, on corner-points (B grid) [C ~> degC]
tmask
A mask on tracer points that is 1 where there is ice.
ice_visc
Area and depth-integrated Glen's law ice viscosity (Pa m3 s) in [R L4 Z T-1 ~> kg m2 s-1]. at either 1 (cell-centered) or 4 quadrature points per cell
newton_visc_factor
Newton tangent stiffness coefficient: (1/n_glen - 1)/2 * ice_visc / eps_e2 at each viscosity quadrature point [R L4 Z T ~> kg m2 s]
newton_str_ux
Longitudinal x-strain-rate ux at each viscosity quadrature point for Newton iterations [T-1 ~> s-1]
newton_str_vy
Longitudinal y-strain-rate vy at each viscosity quadrature point for Newton iterations [T-1 ~> s-1]
newton_str_sh
Engineering shear strain-rate uy+vx at each viscosity quadrature point for Newton iterations [T-1 ~> s-1]
AGlen_visc
Ice-stiffness parameter in Glen's law ice viscosity, often in [Pa-3 s-1] if n_Glen is 3.
u_bdry_val
The zonal ice velocity at inflowing boundaries [L yr-1 ~> m yr-1]
v_bdry_val
The meridional ice velocity at inflowing boundaries [L yr-1 ~> m yr-1]
h_bdry_val
The ice thickness at inflowing boundaries [Z ~> m].
t_bdry_val
The ice temperature at inflowing boundaries [C ~> degC].
bed_elev
The bed elevation used for ice dynamics [Z ~> m], relative to mean sea-level. This is the same as G%bathyT+Z_ref, when below sea-level. Sign convention: positive below sea-level, negative above.
C_basal_friction
Coefficient in sliding law tau_b = C u^(n_basal_fric), units of [R L Z T-2 (s m-1)^(n_basal_fric) ~> Pa (s m-1)^(n_basal_fric)]
coef_prefactor
Pre-computed area*C_basal_friction*L_T_to_m_s for basal friction quadrature evaluation [R L2 Z T-1 ~> kg s-1].
fB_elem
Pre-computed element-level Coulomb fB parameter [(T L-1)^CF_PostPeak]; 0 for Weertman. Updated each outer iteration by calc_shelf_basal_prefactors.
alpha_coulomb
Coulomb prefactor (CF_PostPeak-1)^(CF_PostPeak-1)/CF_PostPeak^CF_PostPeak [nondim]
coulomb_pp_n
CF_PostPeak/n_basal_fric [nondim]
OD_rt
A running total for calculating OD_av [Z ~> m].
ground_frac_rt
A running total for calculating ground_frac.
OD_av
The time average open ocean depth [Z ~> m].
ground_frac
Fraction of the time a cell is "exposed", i.e. the column thickness is below a threshold and interacting with the rock [nondim]. When this is 1, the ice-shelf is grounded
float_cond
If GL_regularize=true, indicates cells containing the grounding line (float_cond=1) or not (float_cond=0)
Phi
The gradients of bilinear basis elements at Gaussian 4 quadrature points surrounding the cell vertices [L-1 ~> m-1].
PhiC
The gradients of bilinear basis elements at 1 cell-centered quadrature point per cell [L-1 ~> m-1].
Jac
Jacobian determinant |J_q| = a_q*d_q of the element mapping at each of the 4 Gaussian quadrature points [L2 ~> m2]. Equal to G%areaT only for rectangular elements; differs when opposite cell edges have unequal lengths (non-rectangular quads).
Phisub
Quadrature structure weights at subgridscale locations for finite element calculations [nondim]
OD_rt_counter
A counter of the number of contributions to OD_rt.
velocity_update_time_step
The time interval over which to update the ice shelf velocity using the nonlinear elliptic equation, or 0 to update every timestep [T ~> s].
elapsed_velocity_time
The elapsed time since the ice velocities were last updated [T ~> s].
g_Earth
The gravitational acceleration [L2 Z-1 T-2 ~> m s-2].
density_ice
A typical density of ice [R ~> kg m-3].
Cp_ice
The heat capacity of fresh ice [Q C-1 ~> J kg-1 degC-1].
advect_shelf
If true (default), advect ice shelf and evolve thickness
reentrant_x
If true, the domain is zonally reentrant
reentrant_y
If true, the domain is meridionally reentrant
alternate_first_direction_IS
If true, alternate whether the x- or y-direction updates occur first in directionally split parts of the calculation.
first_direction_IS
An integer that indicates which direction is to be updated first in directionally split parts of the ice sheet calculation (e.g. advection).
first_dir_restart_IS
A real copy of CS%first_direction_IS for use in restart files
visc_qps
The number of quadrature points per cell (1 or 4) on which to calculate ice viscosity.
ice_viscosity_compute
Specifies whether the ice viscosity is computed internally according to Glen's flow law; is constant (for debugging purposes) or using observed strain rates and read from a file
shelf_top_slope_bugs
If true, use directionally inconsistent estimates of the grid spacing when calculating the ice shelf surface slope, and underestimate slopes near the edge of the ice shelf by a factor of 2.
GL_regularize
Specifies whether to regularize the floatation condition at the grounding line as in Goldberg Holland Schoof 2009
n_sub_regularize
partition of cell over which to integrate for interpolated grounding line the (rectangular) is divided into nxn equally-sized rectangles, over which basal contribution is integrated (iterative quadrature)
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)
CFL_factor
A factor used to limit subcycled advective timestep in uncoupled runs i.e. dt <= CFL_factor * min(dx / u) [nondim]
min_h_shelf
The minimum ice thickness used during ice dynamics [Z ~> m].
min_basal_traction
The minimum basal traction for grounded ice (Pa m-1 s) [R Z T-1 ~> kg m-2 s-1]
max_surface_slope
The maximum allowed ice-sheet surface slope (to ignore, set to zero) [nondim]
min_ice_visc
The minimum allowed Glen's law ice viscosity (Pa s), in [R L2 T-1 ~> kg m-1 s-1].
n_glen
Nonlinearity exponent in Glen's Law [nondim]
eps_glen_min
Min. strain rate to avoid infinite Glen's law viscosity, [T-1 ~> s-1].
n_basal_fric
Exponent in sliding law tau_b = C u^(m_slide) [nondim]
CoulombFriction
Use Coulomb friction law (Schoof 2005, Gagliardini et al 2007)
CF_MinN
Minimum Coulomb friction effective pressure [R Z L T-2 ~> Pa]
CF_PostPeak
Coulomb friction post peak exponent [nondim]
CF_Max
Coulomb friction maximum coefficient [nondim]
density_ocean_avg
A typical ocean density [R ~> kg m-3]. This does not affect ocean circulation or thermodynamics. It is used to estimate the gravitational driving force at the shelf front (until we think of a better way to do it, but any difference will be negligible).
rhoi_rhow
The density of ice divided by a typical water density [nondim]
rhow_rhoi
A typical water density divided by the density of ice [nondim]
thresh_float_col_depth
The water column depth over which the shelf if considered to be floating
moving_shelf_front
Specify whether to advance shelf front (and calve).
calve_to_mask
If true, calve off the ice shelf when it passes the edge of a mask.
min_thickness_simple_calve
min. ice shelf thickness criteria for calving [Z ~> m].
T_shelf_missing
An ice shelf temperature to use where there is no ice shelf [C ~> degC]
cg_tolerance
For Picard iterations, the tolerance in the CG solver, relative to initial residual, that determines when to stop the conjugate gradient iterations [nondim].
cg_newton_tolerance
For inexact Newton iterations, the initial tolerance in the CG solver, relative to initial residual, that determines when to stop the CG iterations [nondim].
cg_tol_current
Working CG tolerance for the current inner solve [nondim].
nonlinear_tolerance
The fractional nonlinear tolerance, relative to the initial error, that sets when to stop the iterative velocity solver [nondim]
newton_after_tolerance
The fractional nonlinear tolerance, relative to the initial error, at which to switch from Picard to Newton iterations in the velocity solver If set to <= 0, no Picard [nondim]
pass_visc_and_newton
Handle for Newton-and-viscosity-related group passes
pass_newton
Handle for Newton-related group passes
newton_adapt_cg_tol
Use an adaptive CG tolerance during Newton iterations
ew_gamma
Gamma in Eisenstat-Walker adaptive Newton tolerance [nondim].
ew_alpha
Alpha in Eisenstat-Walker adaptive Newton tolerance [nondim].
ew_safety
Safeguard Eisenstat-Walker using: (0) no safeguard, (1) EW choice 2 threshold or (2) PETSc option 3 (Chacon 2008)
ew_1_thres
Threshold for Eisenstat-Walker version 1 [nondim]
ew_eta_max
Maximum allowed Eisenstat-Walker eta [nondim]
cg_max_iterations
The maximum number of iterations that can be used in the CG solver
nonlin_solve_err_mode
1: exit based on nonlin residual | F | / | F_0 | where | | is infty-norm 2: exit based on "fixed point" metric (|u - u_last| / |u| < tol) where | | is infty-norm 3: exit based on change of solution norm 2*abs(|u|-|u_last|)/(|u|+|u_last|) where | | is L2-norm 4: exit based on nonlin residual | F | / | F_0 | where | | is L2-norm 5: exit based on relative residual | F | / | tau | where | | is L2-norm
ssa_add_rel_resid
Nonlinear error in velocity solve will also depend on the L2 residual norm relative to RHS norm
rr_nonlinear_tolerance
If ssa_add_rel_resid, the additional nonlin tolerance in the iterative velocity solve used for the relative residual [nondim]
energysavedays
The interval between writing the energies and other integral quantities of the run.
energysavedays_geometric
The starting interval for computing a geometric progression of time deltas between calls to write_energy. This interval will increase by a factor of 2. after each call to write_energy.
energysave_geometric
Logical to control whether calls to write_energy should follow a geometric progression
write_energy_time
The next time to write to the energy file.
geometric_end_time
Time at which to stop the geometric progression of calls to write_energy and revert to the standard energysavedays interval
timeunit
The length of the units for the time axis and certain input parameters including ENERGYSAVEDAYS [s].
Start_time
The start time of the simulation.
prev_IS_energy_calls
The number of times write_ice_shelf_energy has been called.
IS_fileenergy_ascii
The unit number of the ascii version of the energy file.
IS_energyfile
The name of the ice sheet energy file with path.
debug
If true, write verbose checksums for debugging purposes and use reproducible sums
doing_newton
If true, the outer iteration is using Newton (tangent) linearization instead of Picard (secant) linearization for the ice viscosity
inner_solver
The inner linear solver: INNER_CG (1),INNER_MINRES (2), or INNER_CR (3)
cg_halo_shrink
If true, CG uses halo-shrinking to defer pass_vector calls; if false, uses fixed CG_action range with 1 pass_vector per iteration
id_u_shelf
Diagnostic handles
id_v_shelf
Diagnostic handles
id_shelf_speed
Diagnostic handles
id_t_shelf
Diagnostic handles
id_taudx_shelf
Diagnostic handles
id_taudy_shelf
Diagnostic handles
id_taud_shelf
Diagnostic handles
id_bed_elev
Diagnostic handles
id_ground_frac
Diagnostic handles
id_col_thick
Diagnostic handles
id_OD_av
Diagnostic handles
id_float_cond
Diagnostic handles
id_u_mask
Diagnostic handles
id_v_mask
Diagnostic handles
id_ufb_mask
Diagnostic handles
id_vfb_mask
Diagnostic handles
id_t_mask
Diagnostic handles
id_sx_shelf
Diagnostic handles
id_sy_shelf
Diagnostic handles
id_surf_slope_mag_shelf
Diagnostic handles
id_duHdx
Diagnostic handles
id_dvHdy
Diagnostic handles
id_fluxdiv
Diagnostic handles
id_strainrate_xx
Diagnostic handles
id_strainrate_yy
Diagnostic handles
id_strainrate_xy
Diagnostic handles
id_pstrainrate_1
Diagnostic handles
id_pstrainrate_2
Diagnostic handles
id_devstress_xx
Diagnostic handles
id_devstress_yy
Diagnostic handles
id_devstress_xy
Diagnostic handles
id_pdevstress_1
Diagnostic handles
id_pdevstress_2
Diagnostic handles
id_h_after_uflux
Diagnostic handles for debugging
id_h_after_vflux
Diagnostic handles for debugging
id_h_after_adv
Diagnostic handles for debugging
id_visc_shelf
Diagnostic handles for debugging
id_taub
Diagnostic handles for debugging
diag
A structure that is used to control diagnostic output.
- type :: loop_bounds_type
A container for loop bounds
- Parameters
ish
Starting i-index of the computational domain [nondim]
ieh
Ending i-index of the computational domain [nondim]
jsh
Starting j-index of the computational domain [nondim]
jeh
Ending j-index of the computational domain [nondim]
Functions/Subroutine Documentation
- function slope_limiter(num, denom)
used for flux limiting in advective subroutines Van Leer limiter (source: Wikipedia) The return value is between 0 and 2 [nondim].
- Parameters
num [in]
The numerator of the ratio used in the Van Leer slope limiter
denom [in]
The denominator of the ratio used in the Van Leer slope limiter
Callers call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_advect_temp_x → mom_ice_shelf_dynamics::slope_limiter
mom_ice_shelf_dynamics::ice_shelf_advect_temp_y → mom_ice_shelf_dynamics::slope_limiter
mom_ice_shelf_dynamics::ice_shelf_advect_thickness_x → mom_ice_shelf_dynamics::slope_limiter
mom_ice_shelf_dynamics::ice_shelf_advect_thickness_y → mom_ice_shelf_dynamics::slope_limiter
- function quad_area(X, Y)
Calculate area of quadrilateral.
- Parameters
X [in]
The x-positions of the vertices of the quadrilateral [L ~> m].
Y [in]
The y-positions of the vertices of the quadrilateral [L ~> m].
Callers call graph
- subroutine register_ice_shelf_dyn_restarts(G, US, param_file, CS, restart_CS)
This subroutine is used to register any fields related to the ice shelf dynamics that should be written to or read from the restart file.
- Parameters
G [inout]
The grid type describing the ice shelf grid.
US [in]
A structure containing unit conversion factors
param_file [in]
A structure to parse for run-time parameters
CS
A pointer to the ice shelf dynamics control structure
restart_CS [inout]
MOM restart control struct
Callees call graph
Text view
mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts → mom_domain_infra::interface::create_group_pass
mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts → mom_error_handler::mom_error
mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts → mom_file_parser::interface::get_param
mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts → mom_restart::interface::register_restart_field
Callers call graph
- subroutine initialize_ice_shelf_dyn(param_file, Time, ISS, CS, G, US, diag, new_sim, Cp_ice, Input_start_time, directory, solo_ice_sheet_in)
Initializes shelf model data, parameters and diagnostics
- Parameters
param_file [in]
A structure to parse for run-time parameters
Time [inout]
The clock that that will indicate the model time
ISS [in]
A structure with elements that describe the ice-shelf state
CS
A pointer to the ice shelf dynamics control structure
G [inout]
The grid type describing the ice shelf grid.
US [in]
A structure containing unit conversion factors
diag [in]
A structure that is used to regulate the diagnostic output.
new_sim [in]
If true this is a new simulation, otherwise has been started from a restart file.
Cp_ice [in]
Heat capacity of ice [Q C-1 ~> J kg-1 degC-1]
Input_start_time [in]
The start time of the simulation.
directory [in]
The directory where the ice sheet energy file goes.
solo_ice_sheet_in [in]
If present, this indicates whether a solo ice-sheet driver.
Callees call graph
Text view
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_error_handler::mom_error
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_error_handler::mom_mesg
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_file_parser::interface::get_param
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_file_parser::interface::log_param
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_file_parser::interface::log_version
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::bilinear_shape_fn_grid
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::bilinear_shape_fn_grid_1qp
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::bilinear_shape_functions_subgrid
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::calc_shelf_driving_stress
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::calc_shelf_visc
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::update_od_ffrac_uncoupled
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_dynamics::update_velocity_masks
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_initialize::initialize_ice_aglen
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_initialize::initialize_ice_c_basal_friction
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_initialize::initialize_ice_flow_from_file
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_ice_shelf_initialize::initialize_ice_shelf_boundary_from_file
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_io::get_filename_appendix
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_io::interface::mom_read_data
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_io_infra::interface::file_exists
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_is_diag_mediator::register_mom_is_diag_field
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_string_functions::slasher
Callers call graph
External calls
- time_manager_mod
set_time (time_manager_mod::set_time)
time_type_to_real (time_manager_mod::time_type_to_real)
subroutine initialize_diagnostic_fields(CS, ISS, G, US, Time)
- Parameters
CS [inout]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
Time [in]
The current model time
Callees call graph
External calls
- time_manager_mod
set_time (time_manager_mod::set_time)
- function ice_time_step_CFL(CS, ISS, G)
This function returns the global maximum advective timestep that can be taken based on the current ice velocities. Because it involves finding a global minimum, it can be surprisingly expensive.
- Parameters
CS [inout]
The ice shelf dynamics control structure
ISS [inout]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
ice_time_step_CFL
The maximum permitted timestep based on the ice velocities [T ~> s].
Callees call graph
Callers call graph
- subroutine update_ice_shelf(CS, ISS, G, US, time_step, Time, calve_ice_shelf_bergs, ocean_mass, coupled_grounding, must_update_vel)
This subroutine updates the ice shelf velocities, mass, stresses and properties due to the ice shelf dynamics.
- Parameters
CS [inout]
The ice shelf dynamics control structure
ISS [inout]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
time_step [in]
time step [T ~> s]
Time [in]
The current model time
calve_ice_shelf_bergs [in]
To convert ice flux through front to bergs
ocean_mass [in]
If present this is the mass per unit area of the ocean [R Z ~> kg m-2].
coupled_grounding [in]
If true, the grounding line is determined by coupled ice-ocean dynamics
must_update_vel [in]
Always update the ice velocities if true.
Callees call graph
Text view
mom_ice_shelf_dynamics::update_ice_shelf → mom_ice_shelf_dynamics::ice_shelf_advect
mom_ice_shelf_dynamics::update_ice_shelf → mom_ice_shelf_dynamics::ice_shelf_solve_outer
mom_ice_shelf_dynamics::update_ice_shelf → mom_ice_shelf_dynamics::update_od_ffrac
mom_ice_shelf_dynamics::update_ice_shelf → mom_ice_shelf_dynamics::update_od_ffrac_uncoupled
Callers call graph
subroutine volume_above_floatation(CS, G, ISS, vaf, hemisphere)
- Parameters
CS [in]
The ice shelf dynamics control structure
G [in]
The grid structure used by the ice shelf.
ISS [in]
A structure with elements that describe the ice-shelf state
vaf [out]
area integrated volume above floatation [Z L2 ~> m3]
hemisphere [in]
0 for Antarctica only, 1 for Greenland only. Otherwise, all ice sheets
vaf_cell
cell-wise volume above floatation [Z L2 ~> m3]
Callees call graph
- subroutine masked_var_grounded(G, CS, var, varout)
multiplies a variable with the ice sheet grounding fraction
- Parameters
G [in]
The grid structure used by the ice shelf.
CS [in]
The ice shelf dynamics control structure
var [in]
variable in
varout [out]
variable out
Callers call graph
- subroutine IS_dynamics_post_data(time_step, Time, CS, ISS, G)
Ice shelf dynamics post_data calls
- Parameters
time_step
Length of time for post data averaging [T ~> s].
Time [in]
The current model time
CS [inout]
The ice shelf dynamics control structure
ISS [inout]
A structure with elements that describe the ice-shelf state
G [in]
The grid structure used by the ice shelf.
ice_visc
[R L2 Z T-1 ~> Pa s m]
basal_tr
[R L T-1 ~> Pa s m-1]
Callees call graph
Text view
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_ice_shelf_dynamics::calc_shelf_taub
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_ice_shelf_dynamics::ice_visc_diag
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_ice_shelf_dynamics::is_dynamics_post_data_2
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_is_diag_mediator::disable_averaging
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_is_diag_mediator::enable_averages
mom_ice_shelf_dynamics::is_dynamics_post_data → mom_is_diag_mediator::interface::post_is_data
- subroutine ice_visc_diag(CS, G, ice_visc)
Calculate cell-centered, area-averaged, vertically integrated ice viscosity for diagnostics
- Parameters
CS [in]
The ice shelf dynamics control structure
G [in]
The grid structure used by the ice shelf.
ice_visc [out]
area-averaged vertically integrated ice viscosity [R L2 Z T-1 ~> Pa s m]
- subroutine write_ice_shelf_energy(CS, G, US, mass, area, day, time_step)
Writes the total ice shelf kinetic energy and mass to an ascii file
- Parameters
CS [inout]
The ice shelf dynamics control structure
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
mass [in]
The mass per unit area of the ice shelf or sheet [R Z ~> kg m-2]
area [in]
The ice shelf or ice sheet area [L2 ~> m2]
day [in]
The current model time.
time_step [in]
The current time step
Callees call graph
Callers call graph
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
set_time (time_manager_mod::set_time)
- subroutine ice_shelf_advect(CS, ISS, G, time_step, Time, calve_ice_shelf_bergs)
This subroutine takes the velocity (on the Bgrid) and timesteps h_t = - div (uh) once. Additionally, it will update the volume of ice in partially-filled cells, and update hmask accordingly
- Parameters
CS [inout]
The ice shelf dynamics control structure
ISS [inout]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
time_step [in]
time step [T ~> s]
Time [in]
The current model time
calve_ice_shelf_bergs [in]
If true, track ice shelf flux through a static ice shelf, so that it can be converted into icebergs
Callees call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_advect → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_advect → mom_error_handler::mom_error
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::calve_to_mask
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::ice_shelf_advect_thickness_x
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::ice_shelf_advect_thickness_y
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::shelf_advance_front
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::update_velocity_masks
Callers call graph
- subroutine ice_shelf_solve_outer(CS, ISS, G, US, u_shlf, v_shlf, taudx, taudy, iters, Time)
This subroutine computes u- and v-velocities of the ice shelf iterating on non-linear ice viscosity
- Parameters
CS [inout]
The ice shelf dynamics control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity at vertices [L T-1 ~> m s-1]
v_shlf [inout]
The meridional ice shelf velocity at vertices [L T-1 ~> m s-1]
iters [out]
The number of iterations used in the solver.
Time [in]
The current model time
taudx [out]
Driving x-stress at q-points [R L3 Z T-2 ~> kg m s-2]
taudy [out]
Driving y-stress at q-points [R L3 Z T-2 ~> kg m s-2]
Callees call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_checksums::interface::qchksum
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_coms::interface::reproducing_sum
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_coms_infra::interface::max_across_pes
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::do_group_pass
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_error_handler::mom_mesg
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::calc_shelf_basal_prefactors
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::calc_shelf_driving_stress
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::calc_shelf_visc
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::ice_shelf_solve_inner
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::interpolate_h_to_b
- subroutine ice_shelf_solve_inner(CS, ISS, G, US, u_shlf, v_shlf, taudx, taudy, H_node, float_cond, hmask, conv_flag, iters, time, Phi, Phisub)
Unified inner linear solver for ice shelf velocity. Performs shared setup (RHS, preconditioner, initial matrix-vector product), dispatches to the selected Krylov method, and applies boundary conditions.
- Parameters
CS [in]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity at vertices [L T-1 ~> m s-1]
v_shlf [inout]
The meridional ice shelf velocity at vertices [L T-1 ~> m s-1]
taudx [in]
The x-direction driving stress [R L3 Z T-2 ~> kg m s-2]
taudy [in]
The y-direction driving stress [R L3 Z T-2 ~> kg m s-2]
H_node [in]
The ice shelf thickness at nodal (corner) points [Z ~> m].
float_cond [in]
If GL_regularize=true, indicates cells containing the grounding line (float_cond=1) or not (float_cond=0)
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
conv_flag [out]
A flag indicating whether (1) or not (0) the iterations have converged to the specified tolerance
iters [out]
The number of iterations used in the solver.
Time [in]
The current model time
Phi [in]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1].
Phisub [in]
Quadrature structure weights at subgridscale locations for finite element calculations [nondim]
Callees call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::ice_shelf_solve_inner_cg
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::ice_shelf_solve_inner_cr
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::ice_shelf_solve_inner_minres
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::matrix_diagonal
Callers call graph
- subroutine ice_shelf_solve_inner_CG(CS, G, US, u_shlf, v_shlf, RHSu, RHSv, Au, Av, IDIAGu, IDIAGv, H_node, float_cond, hmask, rhoi_rhow, resid_scale, Phi, Phisub, conv_flag, iters, Is_sum, Js_sum, Ie_sum, Je_sum, Iscq_sv, Jscq_sv)
CG (Conjugate Gradient) inner Krylov solve for ice shelf velocity.
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity [L T-1 ~> m s-1]
v_shlf [inout]
The meridional ice shelf velocity [L T-1 ~> m s-1]
RHSu [in]
Right hand side, x [R L3 Z T-2 ~> m kg s-2]
RHSv [in]
Right hand side, y [R L3 Z T-2 ~> m kg s-2]
Au [inout]
Matrix-vector product workspace, x [R L3 Z T-2 ~> kg m s-2]
Av [inout]
Matrix-vector product workspace, y [R L3 Z T-2 ~> kg m s-2]
IDIAGu [in]
Reciprocal Jacobi diagonal, x [R-1 L-2 Z-1 T ~> kg-1 s]
IDIAGv [in]
Reciprocal Jacobi diagonal, y [R-1 L-2 Z-1 T ~> kg-1 s]
H_node [in]
The ice shelf thickness at nodal points [Z ~> m]
float_cond [in]
Grounding line indicator [nondim]
hmask [in]
Ice shelf coverage mask
rhoi_rhow [in]
Ice-to-ocean density ratio [nondim]
resid_scale [in]
Scaling for inner products [T3 kg m2 R-1 Z-1 L-4 s-3 ~> 1]
Phi [in]
Basis element gradients at quadrature points [L-1 ~> m-1]
Phisub [in]
Subgridscale quadrature weights [nondim]
conv_flag [out]
Convergence flag: 1=converged, 0=not
iters [out]
The number of iterations used
Is_sum [in]
Starting i-index for global sums
Js_sum [in]
Starting j-index for global sums
Ie_sum [in]
Ending i-index for global sums
Je_sum [in]
Ending j-index for global sums
Iscq_sv [in]
Starting i-index for sum_vec arrays
Jscq_sv [in]
Starting j-index for sum_vec arrays
u_curr
Frozen current iterate u^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
v_curr
Frozen current iterate v^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
Callees call graph
Callers call graph
- subroutine ice_shelf_solve_inner_MINRES(CS, G, US, u_shlf, v_shlf, RHSu, RHSv, Au, Av, IDIAGu, IDIAGv, H_node, float_cond, hmask, rhoi_rhow, resid_scale, Phi, Phisub, conv_flag, iters, Is_sum, Js_sum, Ie_sum, Je_sum, Iscq_sv, Jscq_sv)
MINRES inner Krylov solve for ice shelf velocity.
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity [L T-1 ~> m s-1]
v_shlf [inout]
The meridional ice shelf velocity [L T-1 ~> m s-1]
RHSu [in]
Right hand side, x [R L3 Z T-2 ~> m kg s-2]
RHSv [in]
Right hand side, y [R L3 Z T-2 ~> m kg s-2]
Au [inout]
Matrix-vector product workspace, x [R L3 Z T-2 ~> kg m s-2]
Av [inout]
Matrix-vector product workspace, y [R L3 Z T-2 ~> kg m s-2]
IDIAGu [in]
Reciprocal Jacobi diagonal, x [R-1 L-2 Z-1 T ~> kg-1 s]
IDIAGv [in]
Reciprocal Jacobi diagonal, y [R-1 L-2 Z-1 T ~> kg-1 s]
H_node [in]
The ice shelf thickness at nodal points [Z ~> m]
float_cond [in]
Grounding line indicator [nondim]
hmask [in]
Ice shelf coverage mask
rhoi_rhow [in]
Ice-to-ocean density ratio [nondim]
resid_scale [in]
Scaling for inner products [T3 kg m2 R-1 Z-1 L-4 s-3 ~> 1]
Phi [in]
Basis element gradients at quadrature points [L-1 ~> m-1]
Phisub [in]
Subgridscale quadrature weights [nondim]
conv_flag [out]
Convergence flag: 1=converged, 0=not
iters [out]
The number of iterations used
Is_sum [in]
Starting i-index for global sums
Js_sum [in]
Starting j-index for global sums
Ie_sum [in]
Ending i-index for global sums
Je_sum [in]
Ending j-index for global sums
Iscq_sv [in]
Starting i-index for sum_vec arrays
Jscq_sv [in]
Starting j-index for sum_vec arrays
u_curr
Frozen current iterate u^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
v_curr
Frozen current iterate v^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
Callees call graph
Callers call graph
- subroutine ice_shelf_solve_inner_CR(CS, G, US, u_shlf, v_shlf, RHSu, RHSv, Au, Av, IDIAGu, IDIAGv, H_node, float_cond, hmask, rhoi_rhow, resid_scale, Phi, Phisub, conv_flag, iters, Is_sum, Js_sum, Ie_sum, Je_sum, Iscq_sv, Jscq_sv)
CR (Conjugate Residual) inner Krylov solve for ice shelf velocity.
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity [L T-1 ~> m s-1]
v_shlf [inout]
The meridional ice shelf velocity [L T-1 ~> m s-1]
RHSu [in]
Right hand side, x [R L3 Z T-2 ~> m kg s-2]
RHSv [in]
Right hand side, y [R L3 Z T-2 ~> m kg s-2]
Au [inout]
Matrix-vector product workspace, x [R L3 Z T-2 ~> kg m s-2]
Av [inout]
Matrix-vector product workspace, y [R L3 Z T-2 ~> kg m s-2]
IDIAGu [in]
Reciprocal Jacobi diagonal, x [R-1 L-2 Z-1 T ~> kg-1 s]
IDIAGv [in]
Reciprocal Jacobi diagonal, y [R-1 L-2 Z-1 T ~> kg-1 s]
H_node [in]
The ice shelf thickness at nodal points [Z ~> m]
float_cond [in]
Grounding line indicator [nondim]
hmask [in]
Ice shelf coverage mask
rhoi_rhow [in]
Ice-to-ocean density ratio [nondim]
resid_scale [in]
Scaling for inner products [T3 kg m2 R-1 Z-1 L-4 s-3 ~> 1]
Phi [in]
Basis element gradients at quadrature points [L-1 ~> m-1]
Phisub [in]
Subgridscale quadrature weights [nondim]
conv_flag [out]
Convergence flag: 1=converged, 0=not
iters [out]
The number of iterations used
Is_sum [in]
Starting i-index for global sums
Js_sum [in]
Starting j-index for global sums
Ie_sum [in]
Ending i-index for global sums
Je_sum [in]
Ending j-index for global sums
Iscq_sv [in]
Starting i-index for sum_vec arrays
Jscq_sv [in]
Starting j-index for sum_vec arrays
u_curr
Frozen current iterate u^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
v_curr
Frozen current iterate v^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
Callees call graph
Callers call graph
subroutine ice_shelf_advect_thickness_x(CS, G, LB, time_step, hmask, h0, h_after_uflux, uh_ice)
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
LB [in]
Loop bounds structure.
time_step [in]
The time step for this update [T ~> s].
hmask [inout]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
h0 [in]
The initial ice shelf thicknesses [Z ~> m].
h_after_uflux [inout]
The ice shelf thicknesses after the zonal mass fluxes [Z ~> m].
uh_ice [inout]
The accumulated zonal ice volume flux [Z L2 ~> m3]
Callees call graph
Callers call graph
subroutine ice_shelf_advect_thickness_y(CS, G, LB, time_step, hmask, h0, h_after_vflux, vh_ice)
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
LB [in]
Loop bounds structure.
time_step [in]
The time step for this update [T ~> s].
hmask [inout]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
h0 [in]
The initial ice shelf thicknesses [Z ~> m].
h_after_vflux [inout]
The ice shelf thicknesses after the meridional mass fluxes [Z ~> m].
vh_ice [inout]
The accumulated meridional ice volume flux [Z L2 ~> m3]
Callees call graph
Callers call graph
subroutine shelf_advance_front(CS, ISS, G, hmask, uh_ice, vh_ice)
- Parameters
CS [in]
A pointer to the ice shelf control structure
ISS [inout]
A structure with elements that describe the ice-shelf state
G [in]
The grid structure used by the ice shelf.
hmask [inout]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
uh_ice [inout]
The accumulated zonal ice volume flux [Z L2 ~> m3]
vh_ice [inout]
The accumulated meridional ice volume flux [Z L2 ~> m3]
Callees call graph
Text view
mom_ice_shelf_dynamics::shelf_advance_front → mom_coms_infra::interface::max_across_pes
mom_ice_shelf_dynamics::shelf_advance_front → mom_error_handler::mom_error
mom_ice_shelf_dynamics::shelf_advance_front → mom_error_handler::mom_mesg
mom_ice_shelf_dynamics::shelf_advance_front → mom_error_infra::is_root_pe
Callers call graph
- subroutine ice_shelf_min_thickness_calve(G, h_shelf, area_shelf_h, hmask, thickness_calve, halo)
Apply a very simple calving law using a minimum thickness rule
- Parameters
G [in]
The grid structure used by the ice shelf.
h_shelf [inout]
The ice shelf thickness [Z ~> m].
area_shelf_h [inout]
The area per cell covered by the ice shelf [L2 ~> m2].
hmask [inout]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
thickness_calve [in]
The thickness at which to trigger calving [Z ~> m].
halo [in]
The number of halo points to use. If not present, work on the entire data domain.
Callers call graph
Text view
mom_ice_shelf::add_shelf_flux → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf::initialize_ice_shelf → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf::update_shelf_mass → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
mom_ice_shelf_dynamics::ice_shelf_advect → mom_ice_shelf_dynamics::ice_shelf_min_thickness_calve
subroutine calve_to_mask(G, h_shelf, area_shelf_h, hmask, calve_mask)
- Parameters
G [in]
The grid structure used by the ice shelf.
h_shelf [inout]
The ice shelf thickness [Z ~> m].
area_shelf_h [inout]
The area per cell covered by the ice shelf [L2 ~> m2].
hmask [inout]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
calve_mask [in]
A mask that indicates where the ice shelf can exist, and where it will calve.
Callers call graph
- subroutine calc_shelf_driving_stress(CS, ISS, G, US, taudx, taudy, OD)
Calculate driving stress using cell-centered bed elevation and ice thickness
- Parameters
CS [in]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
OD [in]
ocean floor depth at tracer points [Z ~> m].
taudx [inout]
X-direction driving stress at q-points [R L3 Z T-2 ~> kg m s-2]
taudy [inout]
Y-direction driving stress at q-points [R L3 Z T-2 ~> kg m s-2]
Callees call graph
subroutine CG_action(CS, uret, vret, u_shlf, v_shlf, Phi, Phisub, umask, vmask, hmask, H_node, ice_visc, float_cond, bathyT, u_curr, v_curr, G, US, is, ie, js, je, dens_ratio, use_newton_in)
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
uret [inout]
The retarding stresses working at u-points [R L3 Z T-2 ~> kg m s-2].
vret [inout]
The retarding stresses working at v-points [R L3 Z T-2 ~> kg m s-2].
Phi [in]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1].
Phisub [in]
Quadrature structure weights at subgridscale locations for finite element calculations [nondim]
u_shlf [in]
The zonal ice shelf velocity at vertices [L T-1 ~> m s-1]
v_shlf [in]
The meridional ice shelf velocity at vertices [L T-1 ~> m s-1]
umask [in]
A coded mask indicating the nature of the zonal flow at the corner point
vmask [in]
A coded mask indicating the nature of the meridional flow at the corner point
H_node [in]
The ice shelf thickness at nodal (corner) points [Z ~> m].
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
ice_visc [in]
A field related to the ice viscosity from Glen's flow law [R L4 Z T-1 ~> kg m2 s-1].
float_cond [in]
If GL_regularize=true, indicates cells containing the grounding line (float_cond=1) or not (float_cond=0)
bathyT [in]
The depth of ocean bathymetry at tracer points relative to sea-level [Z ~> m].
u_curr [in]
Frozen current iterate u^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
v_curr [in]
Frozen current iterate v^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
dens_ratio [in]
The density of ice divided by the density of seawater, nondimensional
US [in]
A structure containing unit conversion factors
is [in]
The starting i-index to work on
ie [in]
The ending i-index to work on
js [in]
The starting j-index to work on
je [in]
The ending j-index to work on
use_newton_in [in]
If present, overrides CS%doing_newton for Newton correction
Callees call graph
Callers call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_inner_cg → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_inner_cr → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_inner_minres → mom_ice_shelf_dynamics::cg_action
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_ice_shelf_dynamics::cg_action
- subroutine CG_action_subgrid_basal(CS, G, US, Phisub, H, U_curr, V_curr, U_delta, V_delta, bathyT, dens_ratio, i_elem, j_elem, fB_e, use_newton, Ucontr, Vcontr, dxCv_S, dxCv_N, dyCu_W, dyCu_E, IareaT)
Compute subgrid grounding-line basal traction nodal contributions for a CG action. Evaluates basal friction (Picard and Newton Jacobian) at each grounded sub-quadrature point. The sub-qp flotation test accounts for partial grounding; no external ground_frac scaling needed.
- Parameters
CS [in]
Ice shelf control structure
G [in]
The grid structure
US [in]
Unit conversion factors
Phisub [in]
Sub-grid quadrature weights [nondim]
H [in]
Ice thickness at element corners [Z ~> m]
U_curr [in]
Frozen u^k at element corners [L T-1 ~> m s-1]
V_curr [in]
Frozen v^k at element corners [L T-1 ~> m s-1]
U_delta [in]
Search direction δu at element corners [L T-1 ~> m s-1]
V_delta [in]
Search direction δv at element corners [L T-1 ~> m s-1]
bathyT [in]
Ocean bathymetry depth at tracer point [Z ~> m]
dens_ratio [in]
Ice density / water density [nondim]
i_elem [in]
Tracer-grid i-index of the element
j_elem [in]
Tracer-grid j-index of the element
fB_e [in]
Element Coulomb parameter fB; 0 for Weertman [(T L-1)^CF_PostPeak]
use_newton [in]
If true, include Newton basal drag correction
Ucontr [out]
Nodal u-contributions with friction applied [R L3 Z T-2 ~> kg m s-2]
Vcontr [out]
Nodal v-contributions with friction applied [R L3 Z T-2 ~> kg m s-2]
dxCv_S [in]
The cell width at the southern (v-point) edge [L ~> m]
dxCv_N [in]
The cell width at the northern (v-point) edge [L ~> m]
dyCu_W [in]
The cell height at the western (u-point) edge [L ~> m]
dyCu_E [in]
The cell height at the eastern (u-point) edge [L ~> m]
IareaT [in]
The inverse of the cell area at the tracer point [L-2 ~> m-2]
Ucontr_sub
at each sub-cell
Vcontr_sub
at each sub-cell
Callees call graph
Callers call graph
- subroutine compute_basal_coef(unorm2_qp, coef_prefactor, min_trac_area, fB_e, n_basal_fric, CoulombFriction, CF_PostPeak, L_T_to_m_s, use_newton, basal_coef, drag_newt)
Compute the Picard basal friction coefficient and Newton drag coefficient at a single quadrature point. Encapsulates the 3-path dispatch (linear Weertman / nonlinear Weertman / Coulomb) so that CG_action, matrix_diagonal, and their subgrid equivalents remain readable. The ground_frac scaling is NOT applied here; callers do it after the call.
- Parameters
unorm2_qp [in]
Regularized |u^k|^2 > 0 at quadrature point [L2 T-2 ~> m2 s-2]
coef_prefactor [in]
Pre-computed area * C_basal_friction * L_T_to_m_s [R L2 Z T-1 ~> kg s-1]
min_trac_area [in]
Pre-computed min_basal_traction * areaT floor [R L2 Z T-1 ~> kg s-1]
fB_e [in]
Element-level Coulomb fB; 0 for Weertman [(T L-1)^CF_PostPeak]
n_basal_fric [in]
Friction sliding exponent m [nondim]
CoulombFriction [in]
True if using Coulomb friction
CF_PostPeak [in]
Coulomb post-peak exponent q [nondim]
L_T_to_m_s [in]
Unit conversion factor from internal [L T-1] to [m s-1]
use_newton [in]
If true, evaluate drag_newt; otherwise set to 0
basal_coef [out]
Picard friction coefficient at quadrature point [R L2 Z T-1 ~> kg s-1]
drag_newt [out]
Newton drag coefficient [R Z T ~> kg m-2 s]; 0 without Newton
Callers call graph
Text view
mom_ice_shelf_dynamics::cg_action → mom_ice_shelf_dynamics::compute_basal_coef
mom_ice_shelf_dynamics::cg_action_subgrid_basal → mom_ice_shelf_dynamics::compute_basal_coef
mom_ice_shelf_dynamics::cg_diagonal_subgrid_basal → mom_ice_shelf_dynamics::compute_basal_coef
mom_ice_shelf_dynamics::matrix_diagonal → mom_ice_shelf_dynamics::compute_basal_coef
- subroutine sum_square_matrix(sum_out, mat_in, n)
Returns the sum of the elements in a square matrix. This sum is bitwise identical even if the matrices are rotated.
- Parameters
n [in]
The length and width of each matrix in mat_in
mat_in [in]
The n x n matrix whose elements will be summed
sum_out [out]
The sum of the elements of matrix mat_in
- subroutine matrix_diagonal(CS, G, US, float_cond, H_node, ice_visc, u_curr, v_curr, hmask, dens_ratio, Phi, Phisub, u_diagonal, v_diagonal)
returns the diagonal entries of the matrix for a Jacobi preconditioning
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
float_cond [in]
If GL_regularize=true, indicates cells containing the grounding line (float_cond=1) or not (float_cond=0)
H_node [in]
The ice shelf thickness at nodal (corner) points [Z ~> m].
ice_visc [in]
A field related to the ice viscosity from Glen's flow law [R L4 Z T-1 ~> kg m2 s-1].
u_curr [in]
Frozen current iterate u^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
v_curr [in]
Frozen current iterate v^k, used to evaluate basal friction at quadrature points [L T-1 ~> m s-1]
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
dens_ratio [in]
The density of ice divided by the density of seawater [nondim]
Phi [in]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1]
Phisub [in]
Quadrature structure weights at subgridscale locations for finite element calculations [nondim]
u_diagonal [inout]
The diagonal elements of the u-velocity matrix from the left-hand side of the solver [R L2 Z T-1 ~> kg s-1]
v_diagonal [inout]
The diagonal elements of the v-velocity matrix from the left-hand side of the solver [R L2 Z T-1 ~> kg s-1]
Callees call graph
Callers call graph
- subroutine CG_diagonal_subgrid_basal(CS, G, US, Phisub, H_node, U_curr, V_curr, bathyT, dens_ratio, i_elem, j_elem, fB_e, u_diag, v_diag, dxCv_S, dxCv_N, dyCu_W, dyCu_E, IareaT)
Compute subgrid grounding-line basal traction contributions for the preconditioner diagonal. Evaluates friction at each grounded sub-quadrature point. Returns separate u and v diagonals because the Newton term uses u^2 for the u-block and v^2 for the v-block. The sub-qp flotation test handles partial grounding; no external ground_frac scaling needed.
- Parameters
CS [in]
Ice shelf control structure
G [in]
The grid structure
US [in]
Unit conversion factors
Phisub [in]
Sub-grid quadrature weights [nondim]
H_node [in]
Ice thickness at element corners [Z ~> m]
U_curr [in]
Frozen u^k at element corners [L T-1 ~> m s-1]
V_curr [in]
Frozen v^k at element corners [L T-1 ~> m s-1]
bathyT [in]
Ocean bathymetry depth at tracer point [Z ~> m]
dens_ratio [in]
Ice density / water density [nondim]
i_elem [in]
Tracer-grid i-index of the element
j_elem [in]
Tracer-grid j-index of the element
fB_e [in]
Element Coulomb parameter fB; 0 for Weertman [(T L-1)^CF_PostPeak]
u_diag [out]
Nodal u-diagonal entries [R L2 Z T-1 ~> kg s-1]
v_diag [out]
Nodal v-diagonal entries [R L2 Z T-1 ~> kg s-1]
dxCv_S [in]
The cell width at the southern (v-point) edge [L ~> m]
dxCv_N [in]
The cell width at the northern (v-point) edge [L ~> m]
dyCu_W [in]
The cell height at the western (u-point) edge [L ~> m]
dyCu_E [in]
The cell height at the eastern (u-point) edge [L ~> m]
IareaT [in]
The inverse of the cell area at the tracer point [L-2 ~> m-2]
Callees call graph
Callers call graph
- subroutine IS_dynamics_post_data_2(CS, ISS, G)
Post_data calls related to ice-sheet flux divergence, strain-rate, and deviatoric stress
- Parameters
CS [inout]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [in]
The grid structure used by the ice shelf.
Callees call graph
Text view
mom_ice_shelf_dynamics::is_dynamics_post_data_2 → mom_ice_shelf_dynamics::bilinear_shape_fn_grid_1qp
mom_ice_shelf_dynamics::is_dynamics_post_data_2 → mom_ice_shelf_dynamics::ice_visc_diag
mom_ice_shelf_dynamics::is_dynamics_post_data_2 → mom_ice_shelf_dynamics::interpolate_h_to_b
mom_ice_shelf_dynamics::is_dynamics_post_data_2 → mom_is_diag_mediator::interface::post_is_data
Callers call graph
- subroutine calc_shelf_visc(CS, ISS, G, US, u_shlf, v_shlf)
Update depth integrated viscosity, based on horizontal strain rates
- Parameters
CS [inout]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [in]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
u_shlf [inout]
The zonal ice shelf velocity [L T-1 ~> m s-1].
v_shlf [inout]
The meridional ice shelf velocity [L T-1 ~> m s-1].
- subroutine calc_shelf_basal_prefactors(CS, ISS, G, US)
Pre-compute element-level basal friction prefactors for quadrature-point evaluation.
- Parameters
CS [inout]
Ice shelf dynamics control structure
ISS [in]
Ice shelf state (hmask, h_shelf)
G [in]
The grid structure
US [in]
Unit conversion factors
Callers call graph
- subroutine calc_shelf_taub(CS, ISS, G, basal_tr)
Compute area-averaged basal shear stress [R L T-1 ~> Pa s m-1] and return it in basal_tr. Uses CS%u_shelf and CS%v_shelf for velocities and G%US for unit conversions.
- Parameters
CS [in]
Ice shelf dynamics control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [in]
The grid structure used by the ice shelf.
basal_tr [out]
Area-averaged basal traction [R L T-1 ~> Pa s m-1]
Callers call graph
subroutine update_OD_ffrac(CS, G, US, ocean_mass, find_avg)
- Parameters
CS [inout]
A pointer to the ice shelf control structure
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
ocean_mass [in]
The mass per unit area of the ocean [R Z ~> kg m-2].
find_avg [in]
If true, find the average of OD and ffrac, and reset the underlying running sums to 0.
Callees call graph
Callers call graph
subroutine update_OD_ffrac_uncoupled(CS, G, h_shelf)
- Parameters
CS [inout]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
h_shelf [in]
the thickness of the ice shelf [Z ~> m].
subroutine change_in_draft(CS, G, h_shelf0, h_shelf1, ddraft)
- Parameters
CS [inout]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
h_shelf0 [in]
the previous thickness of the ice shelf [Z ~> m].
h_shelf1 [in]
the current thickness of the ice shelf [Z ~> m].
ddraft [inout]
the change in shelf draft thickness
Callers call graph
- subroutine bilinear_shape_functions(X, Y, Phi, area)
This subroutine calculates the gradients of bilinear basis elements that that are centered at the vertices of the cell. Values are calculated at points of gaussian quadrature.
- Parameters
X [in]
The x-positions of the vertices of the quadrilateral [L ~> m].
Y [in]
The y-positions of the vertices of the quadrilateral [L ~> m].
Phi [inout]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1].
area [out]
The quadrilateral cell area [L2 ~> m2].
Callees call graph
- subroutine bilinear_shape_fn_grid(G, i, j, Phi, Jac)
This subroutine calculates the gradients of bilinear basis elements that are centered at the vertices of the cell using a locally orthogoal MOM6 grid. Values are calculated at points of gaussian quadrature.
- Parameters
G [in]
The grid structure used by the ice shelf.
i [in]
The i-index in the grid to work on.
j [in]
The j-index in the grid to work on.
Phi [inout]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1].
Jac [out]
Jacobian determinant |J_q| = a_q*d_q at each Gaussian quadrature point [L2 ~> m2].
Callers call graph
- subroutine bilinear_shape_fn_grid_1qp(G, i, j, Phi)
This subroutine calculates the gradients of bilinear basis elements that are centered at the vertices of the cell using a locally orthogoal MOM6 grid. Values are calculated at a sinlge cell-centered quadrature point, which should match the grid cell h-point
- Parameters
G [in]
The grid structure used by the ice shelf.
i [in]
The i-index in the grid to work on.
j [in]
The j-index in the grid to work on.
Phi [inout]
The gradients of bilinear basis elements at Gaussian quadrature points surrounding the cell vertices [L-1 ~> m-1].
subroutine bilinear_shape_functions_subgrid(Phisub, nsub)
- Parameters
nsub [in]
The number of subgridscale quadrature locations in each direction
Phisub [inout]
Quadrature structure weights at subgridscale locations for finite element calculations [nondim]
Callers call graph
subroutine update_velocity_masks(CS, G, hmask, umask, vmask, u_face_mask, v_face_mask)
- Parameters
CS [in]
A pointer to the ice shelf dynamics control structure
G [inout]
The grid structure used by the ice shelf.
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
umask [out]
A coded mask indicating the nature of the zonal flow at the corner point
vmask [out]
A coded mask indicating the nature of the meridional flow at the corner point
u_face_mask [out]
A coded mask for velocities at the C-grid u-face
v_face_mask [out]
A coded mask for velocities at the C-grid v-face
Callees call graph
- subroutine interpolate_H_to_B(G, h_shelf, hmask, H_node, min_h_shelf)
Interpolate the ice shelf thickness from tracer point to nodal points, subject to a mask.
- Parameters
G [in]
The grid structure used by the ice shelf.
h_shelf [in]
The ice shelf thickness at tracer points [Z ~> m].
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
H_node [inout]
The ice shelf thickness at nodal (corner) points [Z ~> m].
min_h_shelf [in]
The minimum ice thickness used during ice dynamics [Z ~> m].
Callees call graph
- subroutine ice_shelf_dyn_end(CS)
Deallocates all memory associated with the ice shelf dynamics module
- Parameters
CS
A pointer to the ice shelf dynamics control structure
Callees call graph
Callers call graph
- subroutine ice_shelf_temp(CS, ISS, G, US, time_step, melt_rate, Time)
This subroutine updates the vertically averaged ice shelf temperature.
- Parameters
CS [inout]
A pointer to the ice shelf control structure
ISS [in]
A structure with elements that describe the ice-shelf state
G [inout]
The grid structure used by the ice shelf.
US [in]
A structure containing unit conversion factors
time_step [in]
The time step for this update [T ~> s].
melt_rate [in]
basal melt rate [R Z T-1 ~> kg m-2 s-1]
Time [in]
The current model time
Callees call graph
Text view
mom_ice_shelf_dynamics::ice_shelf_temp → mom_checksums::interface::hchksum
mom_ice_shelf_dynamics::ice_shelf_temp → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_temp → mom_ice_shelf_dynamics::ice_shelf_advect_temp_x
mom_ice_shelf_dynamics::ice_shelf_temp → mom_ice_shelf_dynamics::ice_shelf_advect_temp_y
subroutine ice_shelf_advect_temp_x(CS, G, time_step, hmask, h0, h_after_uflux)
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [inout]
The grid structure used by the ice shelf.
time_step [in]
The time step for this update [T ~> s].
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
h0 [in]
The initial ice shelf thicknesses times temperature [C Z ~> degC m]
h_after_uflux [inout]
The ice shelf thicknesses times temperature after the zonal mass fluxes [C Z ~> degC m]
Callees call graph
Callers call graph
subroutine ice_shelf_advect_temp_y(CS, G, time_step, hmask, h_after_uflux, h_after_vflux)
- Parameters
CS [in]
A pointer to the ice shelf control structure
G [in]
The grid structure used by the ice shelf.
time_step [in]
The time step for this update [T ~> s].
hmask [in]
A mask indicating which tracer points are partly or fully covered by an ice-shelf
h_after_uflux [in]
The ice shelf thicknesses times temperature after the zonal mass fluxes [C Z ~> degC m].
h_after_vflux [inout]
The ice shelf thicknesses times temperature after the meridional mass fluxes [C Z ~> degC m]