MOM_kappa_shear module reference

Shear-dependent mixing following Jackson et al. 2008.

Data Types

Kappa_shear_CS

This control structure holds the parameters that regulate shear mixing

Functions/Subroutines

Calculate_kappa_shear

Subroutine for calculating shear-driven diffusivity and TKE in tracer columns

Calc_kappa_shear_vertex

Subroutine for calculating shear-driven diffusivity and TKE in corner columns

kappa_shear_column

This subroutine calculates shear-driven diffusivity and TKE in a single column

calculate_projected_state

This subroutine calculates the velocities, temperature and salinity that the water column will have after mixing for dt with diffusivities kappa. It may also calculate the projected buoyancy frequency and shear.

find_kappa_tke

This subroutine calculates new, consistent estimates of TKE and kappa.

kappa_shear_init

This subroutine initializes the parameters that regulate shear-driven mixing

kappa_shear_is_used

This function indicates to other modules whether the Jackson et al shear mixing parameterization will be used without needing to duplicate the log entry.

kappa_shear_at_vertex

This function indicates to other modules whether the Jackson et al shear mixing parameterization will be used at the vertices without needing to duplicate the log entry. It returns false if the Jackson et al scheme is not used or if it is used via calculations at the tracer points.

Detailed Description

By Laura Jackson and Robert Hallberg, 2006-2008

This file contains the subroutines that determine the diapycnal diffusivity driven by resolved shears, as specified by the parameterizations described in Jackson and Hallberg (JPO, 2008).

The technique by which the 6 equations (for kappa, TKE, u, v, T, and S) are solved simultaneously has been dramatically revised from the previous version. The previous version was not converging in some cases, especially near the surface mixed layer, while the revised version does. The revised version solves for kappa and TKE with shear and stratification fixed, then marches the density and velocities forward with an adaptive (and aggressive) time step in a predictor-corrector-corrector emulation of a trapezoidal scheme. Run-time-settable parameters determine the tolerance to which the kappa and TKE equations are solved and the minimum time step that can be taken.

Type Documentation

type, public :: Kappa_shear_CS

This control structure holds the parameters that regulate shear mixing

Parameters
  • RiNo_crit

    The critical shear Richardson number for shear-entrainment [nondim]. The theoretical value is 0.25. The values found by Jackson et al. are 0.25-0.35.

  • Shearmix_rate

    A nondimensional rate scale for shear-driven entrainment [nondim]. The value given by Jackson et al. is 0.085-0.089.

  • FRi_curvature

    A constant giving the curvature of the function of the Richardson number that relates shear to sources in the kappa equation [nondim]. The values found by Jackson et al. are -0.97 - -0.89.

  • C_N

    The coefficient for the decay of TKE due to stratification (i.e. proportional to N*tke) [nondim]. The values found by Jackson et al. are 0.24-0.28.

  • C_S

    The coefficient for the decay of TKE due to shear (i.e. proportional to |S|*tke) [nondim]. The values found by Jackson et al. are 0.14-0.12.

  • lambda

    The coefficient for the buoyancy length scale in the kappa equation [nondim]. The values found by Jackson et al. are 0.82-0.81.

  • lambda2_N_S

    The square of the ratio of the coefficients of the buoyancy and shear scales in the diffusivity equation, 0 to eliminate the shear scale [nondim].

  • lz_rescale

    A coefficient to rescale the distance to the nearest solid boundary. This adjustment is to account for regions where 3 dimensional turbulence prevents the growth of shear instabilities [nondim].

  • TKE_bg

    The background level of TKE [Z2 T-2 ~> m2 s-2].

  • kappa_0

    The background diapycnal diffusivity [H Z T-1 ~> m2 s-1 or Pa s]

  • kappa_seed

    A moderately large seed value of diapycnal diffusivity that is used as a starting turbulent diffusivity in the iterations to finding an energetically constrained solution for the shear-driven diffusivity [H Z T-1 ~> m2 s-1 or Pa s]

  • kappa_trunc

    Diffusivities smaller than this are rounded to 0 [H Z T-1 ~> m2 s-1 or Pa s]

  • kappa_tol_err

    The fractional error in kappa that is tolerated [nondim].

  • Prandtl_turb

    Prandtl number used to convert Kd_shear into viscosity [nondim].

  • nkml

    The number of layers in the mixed layer, as treated in this routine. If the pieces of the mixed layer are not to be treated collectively, nkml is set to 1.

  • max_RiNo_it

    The maximum number of iterations that may be used to estimate the instantaneous shear-driven mixing.

  • max_KS_it

    The maximum number of iterations that may be used to estimate the time-averaged diffusivity.

  • dKdQ_iteration_bug

    If true. use an older, dimensionally inconsistent estimate of the derivative of diffusivity with energy in the Newton's method iteration. The bug causes under-corrections when dz > 1m.

  • KS_at_vertex

    If true, do the calculations of the shear-driven mixing at the cell vertices (i.e., the vorticity points).

  • eliminate_massless

    If true, massless layers are merged with neighboring massive layers in this calculation.

  • vel_underflow

    Velocity components smaller than vel_underflow are set to 0 [L T-1 ~> m s-1].

  • kappa_src_max_chg

    The maximum permitted increase in the kappa source within an iteration relative to the local source [nondim]. This must be greater than 1. The lower limit for the permitted fractional decrease is (1 - 0.5/kappa_src_max_chg). These limits could perhaps be made dynamic with an improved iterative solver.

  • VS_GeoMean_Kdmin

    A minimum diffusivity for computing the horizontal averages when using the geometric mean with VERTEX_SHEAR=True. The model is sensitive to this value, which is a drawback of using the geometric average as currently implemented.

  • psurf_bug

    If true, do a simple average of the cell surface pressures to get a surface pressure at the corner if VERTEX_SHEAR=True. Otherwise mask out any land points in the average.

  • all_layer_TKE_bug

    If true, report back the latest estimate of TKE instead of the time average TKE when there is mass in all layers. Otherwise always report the time-averaged TKE, as is currently done when there are some massless layers.

  • VS_viscosity_bug

    If true, use a bug in the calculation of the viscosity that sets it to zero for all vertices that are on a coastline.

  • vertex_shear_OBC_bug

    If false, use extra masking when interpolating thicknesses to velocity points for setting up the shear velocities at vertices to avoid using external thicknesses at open boundaries. When OBCs are not in use, this parameter does not change answers, but true is more efficient.

  • VS_GeometricMean

    If true use geometric averaging for Kd from vertices to tracer points

  • VS_ThicknessMean

    If true use thickness weighting when averaging Kd from vertices to tracer points

  • restrictive_tolerance_check

    If false, uses the less restrictive tolerance check to determine if a timestep is acceptable for the KS_it outer iteration loop, as the code was originally written. True uses the more restrictive check.

  • debug

    If true, write verbose debugging messages.

  • id_Kd_shear

    Diagnostic IDs

  • id_TKE

    Diagnostic IDs

  • id_Kd_vertex

    Diagnostic IDs

  • id_S2_init

    Diagnostic IDs

  • id_N2_init

    Diagnostic IDs

  • id_S2_mean

    Diagnostic IDs

  • id_N2_mean

    Diagnostic IDs

Functions/Subroutine Documentation

subroutine Calculate_kappa_shear(u_in, v_in, h, tv, p_surf, kappa_io, tke_io, kv_io, dt, G, GV, US, CS)

Subroutine for calculating shear-driven diffusivity and TKE in tracer columns

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • u_in [in]

    Initial zonal velocity [L T-1 ~> m s-1].

  • v_in [in]

    Initial meridional velocity [L T-1 ~> m s-1].

  • h [in]

    Layer thicknesses [H ~> m or kg m-2].

  • tv [in]

    A structure containing pointers to any available thermodynamic fields. Absent fields have NULL ptrs.

  • p_surf

    The pressure at the ocean surface [R L2 T-2 ~> Pa] (or NULL).

  • kappa_io [inout]

    The diapycnal diffusivity at each interface [H Z T-1 ~> m2 s-1 or kg m-1 s-1]. Initially this is the value from the previous timestep, which may accelerate the iteration toward convergence.

  • tke_io [out]

    The turbulent kinetic energy per unit mass at each interface (not layer!) [Z2 T-2 ~> m2 s-2].

  • kv_io [inout]

    The vertical viscosity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or Pa s]. This discards any previous value (i.e. it is intent out) and simply sets Kv = Prandtl * Kd_shear

  • dt [in]

    Time increment [T ~> s].

  • CS

    The control structure returned by a previous call to kappa_shear_init.

Callees call graph
Callees of mom_kappa_shear::calculate_kappa_shear calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_interface_heights MOM_interface_heights cluster_mom_kappa_shear MOM_kappa_shear mom_checksums::interface::hchksum hchksum (interface) mom_diag_mediator::interface::post_data post_data (interface) mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_kappa_shear::calculate_kappa_shear Calculate_kappa_shear mom_kappa_shear::calculate_kappa_shear->mom_checksums::interface::hchksum mom_kappa_shear::calculate_kappa_shear->mom_diag_mediator::interface::post_data mom_kappa_shear::calculate_kappa_shear->mom_interface_heights::interface::thickness_to_dz mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::calculate_kappa_shear->mom_kappa_shear::kappa_shear_column
Text view
Callers call graph
Callers of mom_kappa_shear::calculate_kappa_shear calls cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_set_diffusivity MOM_set_diffusivity mom_kappa_shear::calculate_kappa_shear Calculate_kappa_shear mom_set_diffusivity::set_diffusivity set_diffusivity mom_set_diffusivity::set_diffusivity->mom_kappa_shear::calculate_kappa_shear
Text view
subroutine Calc_kappa_shear_vertex(u_in, v_in, h, T_in, S_in, tv, p_surf, kappa_io, tke_io, kv_io, dt, G, GV, US, CS)

Subroutine for calculating shear-driven diffusivity and TKE in corner columns

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • u_in [in]

    Initial zonal velocity [L T-1 ~> m s-1].

  • v_in [in]

    Initial meridional velocity [L T-1 ~> m s-1].

  • h [in]

    Layer thicknesses [H ~> m or kg m-2].

  • T_in [in]

    Layer potential temperatures [C ~> degC]

  • S_in [in]

    Layer salinities [S ~> ppt]

  • tv [in]

    A structure containing pointers to any available thermodynamic fields. Absent fields have NULL ptrs.

  • p_surf

    The pressure at the ocean surface [R L2 T-2 ~> Pa] (or NULL).

  • kappa_io [out]

    The diapycnal diffusivity at each interface (not layer!) [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • tke_io [out]

    The turbulent kinetic energy per unit mass at each interface (not layer!) [Z2 T-2 ~> m2 s-2].

  • kv_io [inout]

    The vertical viscosity at each interface [H Z T-1 ~> m2 s-1 or Pa s]. The previous value is used to initialize kappa in the vertex columns as Kappa = Kv/Prandtl to accelerate the iteration toward convergence.

  • dt [in]

    Time increment [T ~> s].

  • CS

    The control structure returned by a previous call to kappa_shear_init.

Callees call graph
Callees of mom_kappa_shear::calc_kappa_shear_vertex calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_interface_heights MOM_interface_heights cluster_mom_kappa_shear MOM_kappa_shear mom_checksums::interface::bchksum Bchksum (interface) mom_checksums::interface::hchksum hchksum (interface) mom_diag_mediator::interface::post_data post_data (interface) mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_kappa_shear::calc_kappa_shear_vertex Calc_kappa_shear_vertex mom_kappa_shear::calc_kappa_shear_vertex->mom_checksums::interface::bchksum mom_kappa_shear::calc_kappa_shear_vertex->mom_checksums::interface::hchksum mom_kappa_shear::calc_kappa_shear_vertex->mom_diag_mediator::interface::post_data mom_kappa_shear::calc_kappa_shear_vertex->mom_interface_heights::interface::thickness_to_dz mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::calc_kappa_shear_vertex->mom_kappa_shear::kappa_shear_column
Text view
Callers call graph
Callers of mom_kappa_shear::calc_kappa_shear_vertex calls cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_set_diffusivity MOM_set_diffusivity mom_kappa_shear::calc_kappa_shear_vertex Calc_kappa_shear_vertex mom_set_diffusivity::set_diffusivity set_diffusivity mom_set_diffusivity::set_diffusivity->mom_kappa_shear::calc_kappa_shear_vertex
Text view
subroutine kappa_shear_column(kappa, tke, dt, nzc, f2, surface_pres, hlay, dz_lay, u0xdz, v0xdz, T0xdz, S0xdz, kappa_avg, tke_avg, N2_init, S2_init, N2_mean, S2_mean, tv, CS, GV, US)

This subroutine calculates shear-driven diffusivity and TKE in a single column

Parameters
  • GV [in]

    The ocean's vertical grid structure.

  • kappa [inout]

    The time-weighted average of kappa [H Z T-1 ~> m2 s-1 or Pa s]

  • tke [out]

    The Turbulent Kinetic Energy per unit mass at an interface [Z2 T-2 ~> m2 s-2].

  • nzc [in]

    The number of active layers in the column.

  • f2 [in]

    The square of the Coriolis parameter [T-2 ~> s-2].

  • surface_pres [in]

    The surface pressure [R L2 T-2 ~> Pa].

  • hlay [in]

    The layer thickness [H ~> m or kg m-2]

  • dz_lay [in]

    The geometric layer thickness in height units [Z ~> m]

  • u0xdz [in]

    The initial zonal velocity times hlay [H L T-1 ~> m2 s-1 or kg m-1 s-1]

  • v0xdz [in]

    The initial meridional velocity times the layer thickness [H L T-1 ~> m2 s-1 or kg m-1 s-1]

  • T0xdz [in]

    The initial temperature times hlay [C H ~> degC m or degC kg m-2]

  • S0xdz [in]

    The initial salinity times hlay [S H ~> ppt m or ppt kg m-2]

  • kappa_avg [out]

    The time-weighted average of kappa [H Z T-1 ~> m2 s-1 or Pa s]

  • tke_avg [out]

    The time-weighted average of TKE [Z2 T-2 ~> m2 s-2].

  • N2_mean [out]

    The time-weighted average of N2 [Z2 T-2 ~> m2 s-2].

  • S2_mean [out]

    The time-weighted average of S2 [Z2 T-2 ~> m2 s-2].

  • N2_init [out]

    The initial value of N2 [Z2 T-2 ~> m2 s-2].

  • S2_init [out]

    The initial value of S2 [Z2 T-2 ~> m2 s-2].

  • dt [in]

    Time increment [T ~> s].

  • tv [in]

    A structure containing pointers to any available thermodynamic fields. Absent fields have NULL ptrs.

  • CS

    The control structure returned by a previous call to kappa_shear_init.

  • US [in]

    A dimensional unit scaling type

Callees call graph
Callees of mom_kappa_shear::kappa_shear_column calls cluster_mom_eos MOM_EOS cluster_mom_kappa_shear MOM_kappa_shear mom_eos::interface::calculate_density calculate_density (interface) mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) mom_eos::interface::calculate_specific_vol_derivs calculate_specific_vol_derivs (interface) mom_kappa_shear::calculate_projected_state calculate_projected_state [private/internal] mom_kappa_shear::find_kappa_tke find_kappa_tke [private/internal] mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::kappa_shear_column->mom_eos::interface::calculate_density mom_kappa_shear::kappa_shear_column->mom_eos::interface::calculate_density_derivs mom_kappa_shear::kappa_shear_column->mom_eos::interface::calculate_specific_vol_derivs mom_kappa_shear::kappa_shear_column->mom_kappa_shear::calculate_projected_state mom_kappa_shear::kappa_shear_column->mom_kappa_shear::find_kappa_tke
Text view
Callers call graph
Callers of mom_kappa_shear::kappa_shear_column calls cluster_mom_kappa_shear MOM_kappa_shear mom_kappa_shear::calc_kappa_shear_vertex Calc_kappa_shear_vertex mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::calc_kappa_shear_vertex->mom_kappa_shear::kappa_shear_column mom_kappa_shear::calculate_kappa_shear Calculate_kappa_shear mom_kappa_shear::calculate_kappa_shear->mom_kappa_shear::kappa_shear_column
Text view
subroutine calculate_projected_state(kappa, u0, v0, T0, S0, dt, nz, dz, I_dz_int, dbuoy_dT, dbuoy_dS, vel_under, u, v, T, Sal, N2, S2, GV, US, ks_int, ke_int)

This subroutine calculates the velocities, temperature and salinity that the water column will have after mixing for dt with diffusivities kappa. It may also calculate the projected buoyancy frequency and shear.

Parameters
  • nz [in]

    The number of layers (after eliminating massless layers?).

  • kappa [in]

    The diapycnal diffusivity at interfaces, [H Z T-1 ~> m2 s-1 or Pa s].

  • u0 [in]

    The initial zonal velocity [L T-1 ~> m s-1].

  • v0 [in]

    The initial meridional velocity [L T-1 ~> m s-1].

  • T0 [in]

    The initial temperature [C ~> degC].

  • S0 [in]

    The initial salinity [S ~> ppt].

  • dt [in]

    The time step [T ~> s].

  • dz [in]

    The layer thicknesses [H ~> m or kg m-2]

  • I_dz_int [in]

    The inverse of the distance between successive layer centers [Z-1 ~> m-1].

  • dbuoy_dT [in]

    The partial derivative of buoyancy with temperature [Z T-2 C-1 ~> m s-2 degC-1].

  • dbuoy_dS [in]

    The partial derivative of buoyancy with salinity [Z T-2 S-1 ~> m s-2 ppt-1].

  • vel_under [in]

    Any velocities that are smaller in magnitude than this value are set to 0 [L T-1 ~> m s-1].

  • u [inout]

    The zonal velocity after dt [L T-1 ~> m s-1].

  • v [inout]

    The meridional velocity after dt [L T-1 ~> m s-1].

  • T [inout]

    The temperature after dt [C ~> degC].

  • Sal [inout]

    The salinity after dt [S ~> ppt].

  • N2 [inout]

    The buoyancy frequency squared at interfaces [T-2 ~> s-2].

  • S2 [inout]

    The squared shear at interfaces [T-2 ~> s-2].

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • ks_int [in]

    The topmost k-index with a non-zero diffusivity.

  • ke_int [in]

    The bottommost k-index with a non-zero diffusivity.

Callers call graph
Callers of mom_kappa_shear::calculate_projected_state calls cluster_mom_kappa_shear MOM_kappa_shear mom_kappa_shear::calculate_projected_state calculate_projected_state [private/internal] mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::kappa_shear_column->mom_kappa_shear::calculate_projected_state
Text view
subroutine find_kappa_tke(N2, S2, kappa_in, Idz, h_Int, dz_Int, dz_h_Int, I_L2_bdry, f2, nz, CS, GV, US, K_Q, tke, kappa, kappa_src, local_src)

This subroutine calculates new, consistent estimates of TKE and kappa.

Parameters
  • nz [in]

    The number of layers to work on.

  • N2 [in]

    The buoyancy frequency squared at interfaces [T-2 ~> s-2].

  • S2 [in]

    The squared shear at interfaces [T-2 ~> s-2].

  • kappa_in [in]

    The initial guess at the diffusivity [H Z T-1 ~> m2 s-1 or Pa s]

  • h_Int [in]

    The thicknesses associated with interfaces [H ~> m or kg m-2]

  • dz_Int [in]

    The vertical distances around interfaces [Z ~> m]

  • dz_h_Int [in]

    The ratio of the vertical distances to the thickness around an interface [Z H-1 ~> nondim or m3 kg-1]. In non-Boussinesq mode this is the specific volume.

  • I_L2_bdry [in]

    The inverse of the squared distance to boundaries [H-1 Z-1 ~> m-2 or m kg-1].

  • Idz [in]

    The inverse grid spacing of layers [Z-1 ~> m-1].

  • f2 [in]

    The squared Coriolis parameter [T-2 ~> s-2].

  • CS

    A pointer to this module's control structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • K_Q [inout]

    The shear-driven diapycnal diffusivity divided by the turbulent kinetic energy per unit mass at interfaces [H T Z-1 ~> s or kg s m-3].

  • tke [out]

    The turbulent kinetic energy per unit mass at interfaces [Z2 T-2 ~> m2 s-2].

  • kappa [out]

    The diapycnal diffusivity at interfaces [H Z T-1 ~> m2 s-1 or Pa s]

  • kappa_src [out]

    The source term for kappa [T-1 ~> s-1]

  • local_src [out]

    The sum of all local sources for kappa [T-1 ~> s-1]

Callers call graph
Callers of mom_kappa_shear::find_kappa_tke calls cluster_mom_kappa_shear MOM_kappa_shear mom_kappa_shear::find_kappa_tke find_kappa_tke [private/internal] mom_kappa_shear::kappa_shear_column kappa_shear_column [private/internal] mom_kappa_shear::kappa_shear_column->mom_kappa_shear::find_kappa_tke
Text view
function kappa_shear_init(Time, G, GV, US, param_file, diag, CS)

This subroutine initializes the parameters that regulate shear-driven mixing

Parameters
  • Time [in]

    The current model time.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters.

  • diag [inout]

    A structure that is used to regulate diagnostic output.

  • CS

    A pointer that is set to point to the control structure for this module

  • kappa_shear_init

    True if module is to be used, False otherwise

Callees call graph
Callees of mom_kappa_shear::kappa_shear_init calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_kappa_shear MOM_kappa_shear mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_kappa_shear::kappa_shear_init kappa_shear_init mom_kappa_shear::kappa_shear_init->mom_diag_mediator::register_diag_field mom_kappa_shear::kappa_shear_init->mom_error_handler::mom_error mom_kappa_shear::kappa_shear_init->mom_file_parser::interface::get_param mom_kappa_shear::kappa_shear_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_kappa_shear::kappa_shear_init calls cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_set_diffusivity MOM_set_diffusivity mom_kappa_shear::kappa_shear_init kappa_shear_init mom_set_diffusivity::set_diffusivity_init set_diffusivity_init mom_set_diffusivity::set_diffusivity_init->mom_kappa_shear::kappa_shear_init
Text view
logical function kappa_shear_is_used(param_file)

This function indicates to other modules whether the Jackson et al shear mixing parameterization will be used without needing to duplicate the log entry.

Parameters
  • param_file [in]

    A structure to parse for run-time parameters

Callees call graph
Callees of mom_kappa_shear::kappa_shear_is_used calls cluster_mom_file_parser MOM_file_parser cluster_mom_kappa_shear MOM_kappa_shear mom_file_parser::interface::get_param get_param (interface) mom_kappa_shear::kappa_shear_is_used kappa_shear_is_used mom_kappa_shear::kappa_shear_is_used->mom_file_parser::interface::get_param
Text view
Callers call graph
Callers of mom_kappa_shear::kappa_shear_is_used calls cluster_mom_cvmix_shear MOM_CVMix_shear cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_set_visc MOM_set_visc mom_cvmix_shear::cvmix_shear_init CVMix_shear_init mom_kappa_shear::kappa_shear_is_used kappa_shear_is_used mom_cvmix_shear::cvmix_shear_init->mom_kappa_shear::kappa_shear_is_used mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_diabatic_driver::diabatic_driver_init->mom_kappa_shear::kappa_shear_is_used mom_set_visc::set_visc_init set_visc_init mom_set_visc::set_visc_init->mom_kappa_shear::kappa_shear_is_used mom_set_visc::set_visc_register_restarts set_visc_register_restarts mom_set_visc::set_visc_register_restarts->mom_kappa_shear::kappa_shear_is_used
Text view
logical function kappa_shear_at_vertex(param_file)

This function indicates to other modules whether the Jackson et al shear mixing parameterization will be used at the vertices without needing to duplicate the log entry. It returns false if the Jackson et al scheme is not used or if it is used via calculations at the tracer points.

Parameters
  • param_file [in]

    A structure to parse for run-time parameters

Callees call graph
Callees of mom_kappa_shear::kappa_shear_at_vertex calls cluster_mom_file_parser MOM_file_parser cluster_mom_kappa_shear MOM_kappa_shear mom_file_parser::interface::get_param get_param (interface) mom_kappa_shear::kappa_shear_at_vertex kappa_shear_at_vertex mom_kappa_shear::kappa_shear_at_vertex->mom_file_parser::interface::get_param
Text view
Callers call graph
Callers of mom_kappa_shear::kappa_shear_at_vertex calls cluster_mom MOM cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_set_visc MOM_set_visc mom::initialize_mom initialize_MOM mom_kappa_shear::kappa_shear_at_vertex kappa_shear_at_vertex mom::initialize_mom->mom_kappa_shear::kappa_shear_at_vertex mom_set_diffusivity::set_diffusivity_init set_diffusivity_init mom_set_diffusivity::set_diffusivity_init->mom_kappa_shear::kappa_shear_at_vertex mom_set_visc::set_visc_init set_visc_init mom_set_visc::set_visc_init->mom_kappa_shear::kappa_shear_at_vertex mom_set_visc::set_visc_register_restarts set_visc_register_restarts mom_set_visc::set_visc_register_restarts->mom_kappa_shear::kappa_shear_at_vertex
Text view
API generated with Flint · Rendered from reStructuredText