MOM_internal_tides module reference

Subroutines that use the ray-tracing equations to propagate the internal tide energy density.

Author: Benjamin Mater & Robert Hallberg, 2015

Data Types

int_tide_CS

This control structure has parameters for the MOM_internal_tides module

loop_bounds_type

A structure with the active energy loop bounds.

Functions/Subroutines

propagate_int_tide

Calls subroutines in this file that are needed to refract, propagate, and dissipate energy density of the internal tide.

sum_En

Checks for energy conservation on computational domain

itidal_lowmode_loss

Calculates the energy lost from the propagating internal tide due to scattering over small-scale roughness along the lines of Jayne & St. Laurent (2001).

get_lowmode_loss

This subroutine extracts the energy lost from the propagating internal which has been summed across all angles, frequencies, and modes for a given mechanism and location.

get_lowmode_diffusivity

Returns the values of diffusivity corresponding to various mechanisms

refract

Implements refraction on the internal waves at a single frequency.

PPM_angular_advect

This subroutine calculates the 1-d flux for advection in angular space using a monotonic piecewise parabolic scheme. This needs to be called from within i and j spatial loops.

propagate

Propagates internal waves at a single frequency.

propagate_x

Propagates the internal wave energy in the logical x-direction.

propagate_y

Propagates the internal wave energy in the logical y-direction.

zonal_flux_En

Evaluates the zonal mass or volume fluxes in a layer.

merid_flux_En

Evaluates the meridional mass or volume fluxes in a layer.

reflect

Reflection of the internal waves at a single frequency.

turning_latitude

teleport

Moves energy across lines of partial reflection to prevent reflection of energy that is supposed to get across.

correct_halo_rotation

Rotates points in the halos where required to accommodate changes in grid orientation, such as at the tripolar fold.

correct_halo_rotation_2d

Rotates points in the halos where required to accommodate changes in grid orientation, such as at the tripolar fold.

PPM_reconstruction_x

Calculates left/right edge values for PPM reconstruction in x-direction.

PPM_reconstruction_y

Calculates left/right edge valus for PPM reconstruction in y-direction.

PPM_limit_pos

Limits the left/right edge values of the PPM reconstruction to give a reconstruction that is positive-definite. Here this is reinterpreted as giving a constant value if the mean value is less than h_min, with a minimum of h_min otherwise.

minmod_limiter

Limits the left/right edge values using the simple minmod limiter written in a way that avoids branching in favor of intrinsics

register_int_tide_restarts

internal_tides_init

This subroutine initializes the internal tides module.

internal_tides_end

This subroutine deallocates the memory associated with the internal tides control structure

Type Documentation

type, public :: int_tide_CS

This control structure has parameters for the MOM_internal_tides module

Parameters
  • initialized

    True if this control structure has been initialized.

  • do_int_tides

    If true, use the internal tide code.

  • nFreq

    The number of internal tide frequency bands

  • nMode

    The number of internal tide vertical modes

  • nAngle

    The number of internal tide angular orientations

  • energized_angle

    If positive, only this angular band is energized for debugging purposes

  • dt_itides

    The timestep for internal tides ray-tracing [T ~> s]

  • uniform_test_cg

    Uniform group velocity of internal tide for testing internal tides [L T-1 ~> m s-1]

  • corner_adv

    If true, use a corner advection rather than PPM.

  • upwind_1st

    If true, use a first-order upwind scheme.

  • simple_2nd

    If true, use a simple second order (arithmetic mean) interpolation of the edge values instead of the higher order interpolation.

  • vol_CFL

    If true, use the ratio of the open face lengths to the tracer cell areas when estimating CFL numbers. Without aggress_adjust, the default is false; it is always true with aggress_adjust.

  • use_PPMang

    If true, use PPM for advection of energy in angular space.

  • update_Kd

    If true, the scheme will modify the diffusivities seen by the dynamics

  • apply_refraction

    If false, skip refraction (for debugging)

  • apply_propagation

    If False, do not propagate energy (for debugging)

  • turn_critical_lat

    If True, rays change direction at critical latitude instead of being trapped

  • reflect_critical_lat

    If True, rays reflect at the critical latitude instead of turning parallel to it

  • debug

    If true, use debugging prints

  • init_forcing_only

    if True, add TKE forcing only at first step (for debugging)

  • force_posit_En

    if True, remove subroundoff negative values (needs enhancement)

  • add_tke_forcing

    Whether to add forcing, used by init_forcing_only

  • fraction_tidal_input

    how the energy from one tidal component is distributed over the various vertical modes, 2d in frequency and mode [nondim]

  • refl_angle

    local coastline/ridge/shelf angles read from file [rad]

  • nullangle

    placeholder value in cells with no reflection [rad]

  • refl_pref

    partial reflection coeff for each "coast cell" [nondim]

  • refl_pref_logical

    true if reflecting cell with partial reflection

  • refl_dbl

    identifies reflection cells where double reflection is possible (i.e. ridge cells)

  • trans

    partial transmission coeff for each "coast cell" [nondim]

  • residual

    residual of reflection and transmission coeff for each "coast cell" [nondim]

  • cp

    horizontal phase speed [L T-1 ~> m s-1]

  • TKE_leak_loss

    energy lost due to misc background processes [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_quad_loss

    energy lost due to quadratic bottom drag [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_Froude_loss

    energy lost due to wave breaking [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_itidal_loss_fixed

    Fixed part of the energy lost due to small-scale drag [H Z2 L-2 ~> kg m-2] here. This will be multiplied by N and the squared near-bottom velocity (and by the near-bottom density in non-Boussinesq mode) to get the energy losses in [R Z4 H-1 L-2 ~> kg m-2 or m]

  • TKE_itidal_loss

    energy lost due to small-scale wave drag [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_residual_loss

    internal tide energy loss due to the residual at slopes [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_slope_loss

    internal tide energy loss due to the residual at slopes [H Z2 T-3 ~> m3 s-3 or W m-2]

  • TKE_input_glo_dt

    The integrated energy input to the internal waves [H Z2 L2 T-2 ~> m5 s-2 or J]

  • TKE_leak_loss_glo_dt

    Integrated energy lost due to misc background processes [H Z2 L2 T-2 ~> m5 s-2 or J]

  • TKE_quad_loss_glo_dt

    Integrated energy lost due to quadratic bottom drag [H Z2 L2 T-2 ~> m5 s-2 or J]

  • TKE_Froude_loss_glo_dt

    Integrated energy lost due to wave breaking [H Z2 L2 T-2 ~> m5 s-2 or J]

  • TKE_itidal_loss_glo_dt

    energy lost due to small-scale wave drag [H Z2 T-2 ~> m3 s-2 or J m-2]

  • TKE_residual_loss_glo_dt

    internal tide energy loss due to the residual at slopes [H Z2 L2 T-2 ~> m5 s-2 or J]

  • error_mode

    internal tide energy budget error for each mode [H Z2 L2 T-2 ~> m5 s-2 or J]

  • tot_leak_loss

    Energy loss rates due to misc background processes, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • tot_quad_loss

    Energy loss rates due to quadratic bottom drag, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • tot_itidal_loss

    Energy loss rates due to small-scale drag, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • tot_Froude_loss

    Energy loss rates due to wave breaking, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • tot_residual_loss

    Energy loss rates due to residual on slopes, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • tot_allprocesses_loss

    Energy loss rates due to all processes, summed over angle, frequency and mode [H Z2 T-3 ~> m3 s-3 or W m-2]

  • w_struct

    Vertical structure of vertical velocity (normalized) for each frequency and each mode [nondim]

  • u_struct

    Vertical structure of horizontal velocity (normalized and divided by layer thicknesses) for each frequency and each mode [Z-1 ~> m-1]

  • u_struct_max

    Maximum of u_struct, for each mode [Z-1 ~> m-1]

  • u_struct_bot

    Bottom value of u_struct, for each mode [Z-1 ~> m-1]

  • int_w2

    Vertical integral of w_struct squared, for each mode [H ~> m or kg m-2]

  • int_U2

    Vertical integral of u_struct squared, for each mode [H Z-2 ~> m-1 or kg m-4]

  • int_N2w2

    Depth-integrated Brunt Vaissalla freqency times vertical profile squared, for each mode [H T-2 ~> m s-2 or kg m-2 s-2]

  • q_itides

    fraction of local dissipation [nondim]

  • mixing_effic

    mixing efficiency [nondim]

  • En_sum

    global sum of energy for use in debugging, in MKS units [m5 s-2 or J]

  • En_underflow

    A minuscule amount of energy [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_restart_power

    A power factor of 2 by which to multiply the energy in restart [nondim]

  • Time

    A pointer to the model's clock.

  • pass_En

    Pass 5d array Energy as a group of 3d arrays

  • inputdir

    directory to look for coastline angle file

  • itides_adv_limiter

    The type of limiter to use for the energy advection scheme

  • decay_rate_2d

    rate at which internal tide energy is lost to the interior ocean internal wave field as a function of longitude, latitude, frequency and vertical mode [T-1 ~> s-1].

  • cdrag

    The bottom drag coefficient [nondim].

  • drag_min_depth

    The minimum total ocean thickness that will be used in the denominator of the quadratic drag terms for internal tides when INTERNAL_TIDE_QUAD_DRAG is true [H ~> m or kg m-2]

  • gamma_osborn

    Mixing efficiency from Osborn 1980 [nondim]

  • Kd_min

    The minimum diapycnal diffusivity. [L2 T-1 ~> m2 s-1]

  • max_TKE_to_Kd

    Maximum allowed value for TKE_to_kd [H Z2 T-3 ~> m3 s-3 or W m-2]

  • min_thick_layer_Kd

    minimum layer thickness allowed to use with TKE_to_kd [H ~> m or kg m-2]

  • apply_background_drag

    If true, apply a drag due to background processes as a sink.

  • apply_bottom_drag

    If true, apply a quadratic bottom drag as a sink.

  • apply_wave_drag

    If true, apply scattering due to small-scale roughness as a sink.

  • apply_Froude_drag

    If true, apply wave breaking as a sink.

  • En_check_tol

    An energy density tolerance for flagging points with small negative internal tide energy [H Z2 T-2 ~> m3 s-2 or J m-2]

  • apply_residual_drag

    If true, apply sink from residual term of reflection/transmission.

  • use_2d_decay_rate

    If true, use a spatially varying decay rate for each harmonic.

  • En

    The internal wave energy density as a function of (i,j,angle,frequency,mode) integrated within an angular and frequency band [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_ini_glo

    The internal wave energy density as a function of (frequency,mode) spatially integrated within an angular and frequency band [H Z2 L2 T-2 ~> m5 s-2 or J] only at the start of the routine (for diags)

  • En_end_glo

    The internal wave energy density as a function of (frequency,mode) spatially integrated within an angular and frequency band [H Z2 L2 T-2 ~> m5 s-2 or J] only at the end of the routine (for diags)

  • En_restart_mode1

    The internal wave energy density as a function of (i,j,angle,freq) for mode 1 [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_restart_mode2

    The internal wave energy density as a function of (i,j,angle,freq) for mode 2 [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_restart_mode3

    The internal wave energy density as a function of (i,j,angle,freq) for mode 3 [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_restart_mode4

    The internal wave energy density as a function of (i,j,angle,freq) for mode 4 [H Z2 T-2 ~> m3 s-2 or J m-2]

  • En_restart_mode5

    The internal wave energy density as a function of (i,j,angle,freq) for mode 5 [H Z2 T-2 ~> m3 s-2 or J m-2]

  • frequency

    The frequency of each band [T-1 ~> s-1].

  • Int_tide_decay_scale

    vertical decay scale for St Laurent profile [Z ~> m]

  • Int_tide_decay_scale_slope

    vertical decay scale for St Laurent profile on slopes [Z ~> m]

  • wave_speed

    Wave speed control structure

  • id_cg1

    Diag handles

  • id_cn

    Diag handles

  • id_tot_En

    Diag handles

  • id_refl_pref

    Diag handles

  • id_refl_ang

    Diag handles

  • id_land_mask

    Diag handles

  • id_trans

    Diag handles

  • id_residual

    Diag handles

  • id_dx_Cv

    Diag handles

  • id_dy_Cu

    Diag handles

  • id_tot_leak_loss

    Diag handles

  • id_tot_quad_loss

    Diag handles

  • id_tot_itidal_loss

    Diag handles

  • id_tot_Froude_loss

    Diag handles

  • id_tot_residual_loss

    Diag handles

  • id_tot_allprocesses_loss

    Diag handles

  • id_En_mode

    Diag handles

  • id_itidal_loss_mode

    Diag handles

  • id_leak_loss_mode

    Diag handles

  • id_quad_loss_mode

    Diag handles

  • id_Froude_loss_mode

    Diag handles

  • id_residual_loss_mode

    Diag handles

  • id_allprocesses_loss_mode

    Diag handles

  • id_itide_drag

    Diag handles

  • id_Ub_mode

    Diag handles

  • id_cp_mode

    Diag handles

  • id_En_ang_mode

    Diag handles

  • id_itidal_loss_ang_mode

    Diag handles

  • id_TKE_itidal_input

    Diag handles

  • id_Ustruct_mode

    Diag handles

  • id_Wstruct_mode

    Diag handles

  • id_int_w2_mode

    Diag handles

  • id_int_U2_mode

    Diag handles

  • id_int_N2w2_mode

    Diag handles

type :: loop_bounds_type

A structure with the active energy loop bounds.

Parameters
  • ish

    The active loop bounds

  • ieh

    The active loop bounds

  • jsh

    The active loop bounds

  • jeh

    The active loop bounds

Functions/Subroutine Documentation

subroutine propagate_int_tide(h, tv, Nb, Rho_bot, dt, G, GV, US, inttide_input_CSp, CS)

Calls subroutines in this file that are needed to refract, propagate, and dissipate energy density of the internal tide.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • h [in]

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

  • tv [in]

    Pointer to thermodynamic variables (needed for wave structure).

  • Nb [inout]

    Near-bottom buoyancy frequency [T-1 ~> s-1]. In some cases the input values are used, but in others this is set along with the wave speeds.

  • Rho_bot [in]

    Near-bottom density or the Boussinesq reference density [R ~> kg m-3].

  • dt [in]

    Length of time over which to advance the internal tides [T ~> s].

  • inttide_input_CSp [in]

    Internal tide input control structure

  • CS [inout]

    Internal tide control structure

  • TKE_itidal_input

    The energy input to the internal waves [H Z2 T-3 ~> m3 s-3 or W m-2].

  • vel_btTide

    Barotropic velocity read from file [L T-1 ~> m s-1].

Callees call graph
Callees of mom_internal_tides::propagate_int_tide calls cluster_mom_checksums MOM_checksums cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_internal_tides MOM_internal_tides cluster_mom_spatial_means MOM_spatial_means cluster_mom_wave_speed MOM_wave_speed mom_checksums::interface::hchksum hchksum (interface) mom_diag_mediator::disable_averaging disable_averaging mom_diag_mediator::enable_averages enable_averages mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_domain_infra::complete_group_pass complete_group_pass mom_domain_infra::do_group_pass do_group_pass mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_domain_infra::interface::pass_var pass_var (interface) mom_domain_infra::start_group_pass start_group_pass mom_error_handler::mom_error MOM_error mom_error_infra::is_root_pe is_root_pe mom_int_tide_input::get_barotropic_tidal_vel get_barotropic_tidal_vel mom_int_tide_input::get_input_tke get_input_TKE mom_internal_tides::correct_halo_rotation correct_halo_rotation [private/internal] mom_internal_tides::itidal_lowmode_loss itidal_lowmode_loss [private/internal] mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_checksums::interface::hchksum mom_internal_tides::propagate_int_tide->mom_diag_mediator::disable_averaging mom_internal_tides::propagate_int_tide->mom_diag_mediator::enable_averages mom_internal_tides::propagate_int_tide->mom_diag_mediator::interface::post_data mom_internal_tides::propagate_int_tide->mom_diag_mediator::query_averaging_enabled mom_internal_tides::propagate_int_tide->mom_domain_infra::complete_group_pass mom_internal_tides::propagate_int_tide->mom_domain_infra::do_group_pass mom_internal_tides::propagate_int_tide->mom_domain_infra::interface::create_group_pass mom_internal_tides::propagate_int_tide->mom_domain_infra::interface::pass_var mom_internal_tides::propagate_int_tide->mom_domain_infra::start_group_pass mom_internal_tides::propagate_int_tide->mom_error_handler::mom_error mom_internal_tides::propagate_int_tide->mom_error_infra::is_root_pe mom_internal_tides::propagate_int_tide->mom_int_tide_input::get_barotropic_tidal_vel mom_internal_tides::propagate_int_tide->mom_int_tide_input::get_input_tke mom_internal_tides::propagate_int_tide->mom_internal_tides::correct_halo_rotation mom_internal_tides::propagate_int_tide->mom_internal_tides::itidal_lowmode_loss mom_internal_tides::propagate_int_tide->mom_internal_tides::propagate mom_internal_tides::refract refract [private/internal] mom_internal_tides::propagate_int_tide->mom_internal_tides::refract mom_internal_tides::sum_en sum_En [private/internal] mom_internal_tides::propagate_int_tide->mom_internal_tides::sum_en mom_spatial_means::global_area_integral global_area_integral mom_internal_tides::propagate_int_tide->mom_spatial_means::global_area_integral mom_wave_speed::wave_speeds wave_speeds mom_internal_tides::propagate_int_tide->mom_wave_speed::wave_speeds
Text view
Callers call graph
Callers of mom_internal_tides::propagate_int_tide calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_internal_tides MOM_internal_tides mom_diabatic_driver::diabatic diabatic mom_internal_tides::propagate_int_tide propagate_int_tide mom_diabatic_driver::diabatic->mom_internal_tides::propagate_int_tide
Text view
subroutine sum_En(G, GV, US, CS, En, label)

Checks for energy conservation on computational domain

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [inout]

    Internal tide control structure

  • En [in]

    The energy density of the internal tides [H Z2 T-2 ~> m3 s-2 or J m-2].

  • label [in]

    A label to use in error messages

Callees call graph
Callees of mom_internal_tides::sum_en calls cluster_mom_internal_tides MOM_internal_tides cluster_mom_spatial_means MOM_spatial_means mom_internal_tides::sum_en sum_En [private/internal] mom_spatial_means::global_area_integral global_area_integral mom_internal_tides::sum_en->mom_spatial_means::global_area_integral
Text view
Callers call graph
Callers of mom_internal_tides::sum_en calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::sum_en sum_En [private/internal] mom_internal_tides::propagate->mom_internal_tides::sum_en mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_internal_tides::sum_en
Text view
subroutine itidal_lowmode_loss(G, GV, US, CS, Nb, Rho_bot, Ub, En, TKE_loss_fixed, TKE_loss, dt, halo_size)

Calculates the energy lost from the propagating internal tide due to scattering over small-scale roughness along the lines of Jayne & St. Laurent (2001).

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Internal tide control structure

  • Nb [in]

    Near-bottom stratification [T-1 ~> s-1].

  • Rho_bot [in]

    Near-bottom density [R ~> kg m-3].

  • Ub [inout]

    RMS (over one period) near-bottom horizontal mode velocity [L T-1 ~> m s-1].

  • TKE_loss_fixed [in]

    Fixed part of energy loss [R Z4 H-1 L-2 ~> kg m-2 or m] (rho*kappa*h^2) or (kappa*h^2).

  • En [inout]

    Energy density of the internal waves [H Z2 T-2 ~> m3 s-2 or J m-2].

  • TKE_loss [out]

    Energy loss rate [H Z2 T-3 ~> m3 s-3 or W m-2] (q*rho*kappa*h^2*N*U^2).

  • dt [in]

    Time increment [T ~> s].

  • halo_size [in]

    The halo size over which to do the calculations

Callees call graph
Callees of mom_internal_tides::itidal_lowmode_loss calls cluster_mom_checksums MOM_checksums cluster_mom_internal_tides MOM_internal_tides mom_checksums::interface::hchksum hchksum (interface) mom_internal_tides::itidal_lowmode_loss itidal_lowmode_loss [private/internal] mom_internal_tides::itidal_lowmode_loss->mom_checksums::interface::hchksum
Text view
Callers call graph
Callers of mom_internal_tides::itidal_lowmode_loss calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::itidal_lowmode_loss itidal_lowmode_loss [private/internal] mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_internal_tides::itidal_lowmode_loss
Text view
subroutine get_lowmode_loss(i, j, G, CS, mechanism, TKE_loss_sum)

This subroutine extracts the energy lost from the propagating internal which has been summed across all angles, frequencies, and modes for a given mechanism and location.

It can be called from another module to get values from this module's (private) CS.

Parameters
  • i [in]

    The i-index of the value to be reported.

  • j [in]

    The j-index of the value to be reported.

  • G [in]

    The ocean's grid structure

  • CS [in]

    Internal tide control structure

  • mechanism [in]

    The named mechanism of loss to return

  • TKE_loss_sum [out]

    Total energy loss rate due to specified mechanism [H Z2 T-3 ~> m3 s-3 or W m-2].

Callers call graph
Callers of mom_internal_tides::get_lowmode_loss calls cluster_mom_internal_tides MOM_internal_tides cluster_mom_tidal_mixing MOM_tidal_mixing mom_internal_tides::get_lowmode_diffusivity get_lowmode_diffusivity mom_internal_tides::get_lowmode_loss get_lowmode_loss mom_internal_tides::get_lowmode_diffusivity->mom_internal_tides::get_lowmode_loss mom_tidal_mixing::add_int_tide_diffusivity add_int_tide_diffusivity [private/internal] mom_tidal_mixing::add_int_tide_diffusivity->mom_internal_tides::get_lowmode_loss
Text view
subroutine get_lowmode_diffusivity(G, GV, h, tv, US, h_bot, k_bot, j, N2_lay, N2_int, TKE_to_Kd, Kd_max, CS, Kd_leak, Kd_quad, Kd_itidal, Kd_Froude, Kd_slope, Kd_lay, Kd_int, profile_leak, profile_quad, profile_itidal, profile_Froude, profile_slope)

Returns the values of diffusivity corresponding to various mechanisms

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • h [in]

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

  • tv [in]

    Structure containing pointers to any available

  • US [in]

    A dimensional unit scaling type

  • h_bot [in]

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

  • k_bot [in]

    Bottom boundary layer top layer index

  • j [in]

    The j-index to work on

  • N2_lay [in]

    The squared buoyancy frequency of the layers [T-2 ~> s-2].

  • N2_int [in]

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

  • TKE_to_Kd [in]

    The conversion rate between the TKE dissipated within a layer and the diapycnal diffusivity within that layer, usually (~Rho_0 / (G_Earth * dRho_lay)) [T2 Z-1 ~> s2 m-1]

  • Kd_max [in]

    The maximum increment for diapycnal diffusivity due to TKE-based processes [H Z T-1 ~> m2 s-1 or kg m-1 s-1]. Set this to a negative value to have no limit. [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • CS [in]

    The control structure for this module

  • Kd_leak [out]

    Diffusivity due to background drag [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_quad [out]

    Diffusivity due to bottom drag [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_itidal [out]

    Diffusivity due to wave drag [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_Froude [out]

    Diffusivity due to high Froude breaking [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_slope [out]

    Diffusivity due to critical slopes [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_lay [inout]

    The diapycnal diffusivity in layers [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_int [inout]

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

  • profile_leak [out]

    Normalized profile for background drag [H-1 ~> m-1 or m2 kg-1]

  • profile_quad [out]

    Normalized profile for bottom drag [H-1 ~> m-1 or m2 kg-1]

  • profile_itidal [out]

    Normalized profile for wave drag [H-1 ~> m-1 or m2 kg-1]

  • profile_Froude [out]

    Normalized profile for Froude drag [H-1 ~> m-1 or m2 kg-1]

  • profile_slope [out]

    Normalized profile for critical slopes [H-1 ~> m-1 or m2 kg-1]

Callees call graph
Callees of mom_internal_tides::get_lowmode_diffusivity calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::get_lowmode_diffusivity get_lowmode_diffusivity mom_internal_tides::get_lowmode_diffusivity->mom_error_handler::mom_error mom_internal_tides::get_lowmode_loss get_lowmode_loss mom_internal_tides::get_lowmode_diffusivity->mom_internal_tides::get_lowmode_loss
Text view
Callers call graph
Callers of mom_internal_tides::get_lowmode_diffusivity calls cluster_mom_internal_tides MOM_internal_tides cluster_mom_set_diffusivity MOM_set_diffusivity mom_internal_tides::get_lowmode_diffusivity get_lowmode_diffusivity mom_set_diffusivity::set_diffusivity set_diffusivity mom_set_diffusivity::set_diffusivity->mom_internal_tides::get_lowmode_diffusivity
Text view
subroutine refract(En, cn, freq, dt, G, US, NAngle, use_PPMang)

Implements refraction on the internal waves at a single frequency.

Parameters
  • G [in]

    The ocean's grid structure.

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The internal gravity wave energy density as a function of space and angular resolution, [H Z2 T-2 ~> m3 s-2 or J m-2].

  • cn [in]

    Baroclinic mode speed [L T-1 ~> m s-1].

  • freq [in]

    Wave frequency [T-1 ~> s-1].

  • dt [in]

    Time step [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • use_PPMang [in]

    If true, use PPM for advection rather than upwind.

  • cn_u

    Internal wave group velocity at U-point [L T-1 ~> m s-1]

  • cn_v

    Internal wave group velocity at V-point [L T-1 ~> m s-1]

  • cnmask

    Local mask for group velocity [nondim]

Callees call graph
Callees of mom_internal_tides::refract calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::ppm_angular_advect PPM_angular_advect [private/internal] mom_internal_tides::refract refract [private/internal] mom_internal_tides::refract->mom_error_handler::mom_error mom_internal_tides::refract->mom_internal_tides::ppm_angular_advect
Text view
Callers call graph
Callers of mom_internal_tides::refract calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::refract refract [private/internal] mom_internal_tides::propagate_int_tide->mom_internal_tides::refract
Text view
subroutine PPM_angular_advect(En2d, CFL_ang, Flux_En, NAngle, dt, halo_ang)

This subroutine calculates the 1-d flux for advection in angular space using a monotonic piecewise parabolic scheme. This needs to be called from within i and j spatial loops.

Parameters
  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum [nondim]

  • dt [in]

    Time increment [T ~> s].

  • halo_ang [in]

    The halo size in angular space

  • En2d [in]

    The internal gravity wave energy density as a function of angular resolution [H Z2 T-2 ~> m3 s-2 or J m-2].

  • CFL_ang [in]

    The CFL number of the energy advection across angles [nondim]

  • Flux_En [out]

    The time integrated internal wave energy flux across angles [H Z2 T-2 ~> m3 s-2 or J m-2].

Callers call graph
Callers of mom_internal_tides::ppm_angular_advect calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::ppm_angular_advect PPM_angular_advect [private/internal] mom_internal_tides::refract refract [private/internal] mom_internal_tides::refract->mom_internal_tides::ppm_angular_advect
Text view
subroutine propagate(En, cn, freq, dt, G, GV, US, CS, NAngle, test, halo_size, residual_loss)

Propagates internal waves at a single frequency.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The internal gravity wave energy density as a function of space and angular resolution, [H Z2 T-2 ~> m3 s-2 or J m-2].

  • cn [in]

    Baroclinic mode speed [L T-1 ~> m s-1].

  • freq [in]

    Wave frequency [T-1 ~> s-1].

  • dt [in]

    Time step [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • test [in]

    test rotation vector

  • CS [inout]

    Internal tide control structure

  • halo_size [in]

    halo size for correct rotation

  • residual_loss [inout]

    internal tide energy loss due to the residual at slopes [H Z2 T-3 ~> m3 s-3 or W m-2].

Callees call graph
Callees of mom_internal_tides::propagate calls cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_infra MOM_error_infra cluster_mom_internal_tides MOM_internal_tides mom_domain_infra::interface::pass_var pass_var (interface) mom_error_infra::is_root_pe is_root_pe mom_internal_tides::correct_halo_rotation_2d correct_halo_rotation_2d [private/internal] mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate->mom_domain_infra::interface::pass_var mom_internal_tides::propagate->mom_error_infra::is_root_pe mom_internal_tides::propagate->mom_internal_tides::correct_halo_rotation_2d mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::propagate->mom_internal_tides::propagate_x mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate->mom_internal_tides::propagate_y mom_internal_tides::sum_en sum_En [private/internal] mom_internal_tides::propagate->mom_internal_tides::sum_en
Text view
Callers call graph
Callers of mom_internal_tides::propagate calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_internal_tides::propagate
Text view
subroutine propagate_x(En, speed_x, Cgx_av, dCgx, dt, G, US, Nangle, CS, LB, residual_loss, freq2)

Propagates the internal wave energy in the logical x-direction.

Parameters
  • G [in]

    The ocean's grid structure.

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The energy density integrated over an angular band [H Z2 T-2 ~> m3 s-2 or J m-2].

  • speed_x [in]

    The magnitude of the group velocity at the Cu points [L T-1 ~> m s-1].

  • Cgx_av [in]

    The average x-projection in each angular band [nondim]

  • dCgx [in]

    The difference in x-projections between the edges of each angular band [nondim].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Internal tide control structure

  • LB [in]

    A structure with the active energy loop bounds.

  • residual_loss [inout]

    internal tide energy loss due to the residual at slopes [H Z2 T-3 ~> m3 s-3 or W m-2].

  • freq2 [in]

    The square of internal tides frequency [T-2 ~> s-2].

Callees call graph
Callees of mom_internal_tides::propagate_x calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::ppm_reconstruction_x mom_internal_tides::reflect reflect [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::reflect mom_internal_tides::turning_latitude turning_latitude [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::turning_latitude mom_internal_tides::zonal_flux_en zonal_flux_En [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::zonal_flux_en
Text view
Callers call graph
Callers of mom_internal_tides::propagate_x calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::propagate->mom_internal_tides::propagate_x
Text view
subroutine propagate_y(En, speed_y, Cgy_av, dCgy, dt, G, US, Nangle, CS, LB, residual_loss, freq2)

Propagates the internal wave energy in the logical y-direction.

Parameters
  • G [in]

    The ocean's grid structure.

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The energy density integrated over an angular band [H Z2 T-2 ~> m3 s-2 or J m-2].

  • speed_y [in]

    The magnitude of the group velocity at the Cv points [L T-1 ~> m s-1].

  • Cgy_av [in]

    The average y-projection in each angular band [nondim]

  • dCgy [in]

    The difference in y-projections between the edges of each angular band [nondim]

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Internal tide control structure

  • LB [in]

    A structure with the active energy loop bounds.

  • residual_loss [inout]

    internal tide energy loss due to the residual at slopes [H Z2 T-3 ~> m3 s-3 or W m-2].

  • freq2 [in]

    The square of internal tides frequency [T-2 ~> s-2].

Callees call graph
Callees of mom_internal_tides::propagate_y calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::merid_flux_en merid_flux_En [private/internal] mom_internal_tides::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::merid_flux_en mom_internal_tides::propagate_y->mom_internal_tides::ppm_reconstruction_y mom_internal_tides::reflect reflect [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::reflect mom_internal_tides::turning_latitude turning_latitude [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::turning_latitude
Text view
Callers call graph
Callers of mom_internal_tides::propagate_y calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate->mom_internal_tides::propagate_y
Text view
subroutine zonal_flux_En(u, h, hL, hR, uh, dt, G, US, j, ish, ieh, vol_CFL)

Evaluates the zonal mass or volume fluxes in a layer.

Parameters
  • G [in]

    The ocean's grid structure.

  • u [in]

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

  • h [in]

    Energy density used to calculate the fluxes [H Z2 T-2 ~> m3 s-2 or J m-2].

  • hL [in]

    Left- Energy densities in the reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2].

  • hR [in]

    Right- Energy densities in the reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2].

  • uh [out]

    The zonal energy transport [H Z2 L2 T-3 ~> m5 s-3 or J s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • j [in]

    The j-index to work on.

  • ish [in]

    The start i-index range to work on.

  • ieh [in]

    The end i-index range to work on.

  • vol_CFL [in]

    If true, rescale the ratio of face areas to the cell areas when estimating the CFL number.

Callers call graph
Callers of mom_internal_tides::zonal_flux_en calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::zonal_flux_en zonal_flux_En [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::zonal_flux_en
Text view
subroutine merid_flux_En(v, h, hL, hR, vh, dt, G, US, J, ish, ieh, vol_CFL)

Evaluates the meridional mass or volume fluxes in a layer.

Parameters
  • G [in]

    The ocean's grid structure.

  • v [in]

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

  • h [in]

    Energy density used to calculate the fluxes [H Z2 T-2 ~> m3 s-2 or J m-2].

  • hL [in]

    Left- Energy densities in the reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2].

  • hR [in]

    Right- Energy densities in the reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2].

  • vh [out]

    The meridional energy transport [H Z2 L2 T-3 ~> m5 s-3 or J s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • J [in]

    The j-index to work on.

  • ish [in]

    The start i-index range to work on.

  • ieh [in]

    The end i-index range to work on.

  • vol_CFL [in]

    If true, rescale the ratio of face areas to the cell areas when estimating the CFL number.

Callers call graph
Callers of mom_internal_tides::merid_flux_en calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::merid_flux_en merid_flux_En [private/internal] mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::merid_flux_en
Text view
subroutine reflect(En, NAngle, CS, G, LB)

Reflection of the internal waves at a single frequency.

Parameters
  • G [in]

    The ocean's grid structure

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The internal gravity wave energy density as a function of space and angular resolution [H Z2 T-2 ~> m3 s-2 or J m-2].

  • CS [in]

    Internal tide control structure

  • LB [in]

    A structure with the active energy loop bounds.

Callers call graph
Callers of mom_internal_tides::reflect calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::reflect reflect [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::reflect mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::reflect
Text view

subroutine turning_latitude(En, NAngle, freq2, CS, G, LB)

Parameters
  • G [in]

    The ocean's grid structure

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The internal gravity wave energy density as a function of space and angular resolution [H Z2 T-2 ~> m3 s-2 or J m-2].

  • CS [in]

    Internal tide control structure

  • LB [in]

    A structure with the active energy loop bounds.

  • freq2 [in]

    The square of the internal tide frequency [T-2 ~> s-2]

Callers call graph
Callers of mom_internal_tides::turning_latitude calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::turning_latitude turning_latitude [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::turning_latitude mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::turning_latitude
Text view
subroutine teleport(En, NAngle, CS, G, LB)

Moves energy across lines of partial reflection to prevent reflection of energy that is supposed to get across.

Parameters
  • G [in]

    The ocean's grid structure.

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • En [inout]

    The internal gravity wave energy density as a function of space and angular resolution [H Z2 T-2 ~> m3 s-2 or J m-2].

  • CS [in]

    Internal tide control structure

  • LB [in]

    A structure with the active energy loop bounds.

Callees call graph
Callees of mom_internal_tides::teleport calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::teleport teleport [private/internal] mom_internal_tides::teleport->mom_error_handler::mom_error
Text view
subroutine correct_halo_rotation(En, test, G, NAngle, halo)

Rotates points in the halos where required to accommodate changes in grid orientation, such as at the tripolar fold.

Parameters
  • G [in]

    The ocean's grid structure

  • En [inout]

    The internal gravity wave energy density as a function of space, angular orientation, frequency, and vertical mode [H Z2 T-2 ~> m3 s-2 or J m-2].

  • test [in]

    An x-unit vector that has been passed through the halo updates, to enable the rotation of the wave energies in the halo region to be corrected [nondim].

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • halo [in]

    The halo size over which to do the calculations

Callees call graph
Callees of mom_internal_tides::correct_halo_rotation calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::correct_halo_rotation correct_halo_rotation [private/internal] mom_internal_tides::correct_halo_rotation->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_internal_tides::correct_halo_rotation calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::correct_halo_rotation correct_halo_rotation [private/internal] mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_internal_tides::correct_halo_rotation
Text view
subroutine correct_halo_rotation_2d(En, test, G, NAngle, halo)

Rotates points in the halos where required to accommodate changes in grid orientation, such as at the tripolar fold.

Parameters
  • G [in]

    The ocean's grid structure

  • En [inout]

    The internal gravity wave energy density as a function of space, angular orientation, frequency, and vertical mode [H Z2 T-2 ~> m3 s-2 or J m-2].

  • test [in]

    An x-unit vector that has been passed through the halo updates, to enable the rotation of the wave energies in the halo region to be corrected [nondim].

  • NAngle [in]

    The number of wave orientations in the discretized wave energy spectrum.

  • halo [in]

    The halo size over which to do the calculations

Callees call graph
Callees of mom_internal_tides::correct_halo_rotation_2d calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::correct_halo_rotation_2d correct_halo_rotation_2d [private/internal] mom_internal_tides::correct_halo_rotation_2d->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_internal_tides::correct_halo_rotation_2d calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::correct_halo_rotation_2d correct_halo_rotation_2d [private/internal] mom_internal_tides::propagate propagate [private/internal] mom_internal_tides::propagate->mom_internal_tides::correct_halo_rotation_2d
Text view
subroutine PPM_reconstruction_x(h_in, h_l, h_r, G, LB, simple_2nd, adv_limiter)

Calculates left/right edge values for PPM reconstruction in x-direction.

Parameters
  • G [in]

    The ocean's grid structure.

  • h_in [in]

    Energy density in a sector (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_l [out]

    Left edge value of reconstruction (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_r [out]

    Right edge value of reconstruction (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • LB [in]

    A structure with the active loop bounds.

  • simple_2nd [in]

    If true, use the arithmetic mean energy densities as default edge values for a simple 2nd order scheme.

  • adv_limiter [in]

    The type of limiter used

Callees call graph
Callees of mom_internal_tides::ppm_reconstruction_x calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::minmod_limiter minmod_limiter [private/internal] mom_internal_tides::ppm_limit_pos PPM_limit_pos [private/internal] mom_internal_tides::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_internal_tides::ppm_reconstruction_x->mom_error_handler::mom_error mom_internal_tides::ppm_reconstruction_x->mom_internal_tides::minmod_limiter mom_internal_tides::ppm_reconstruction_x->mom_internal_tides::ppm_limit_pos
Text view
Callers call graph
Callers of mom_internal_tides::ppm_reconstruction_x calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_internal_tides::propagate_x propagate_x [private/internal] mom_internal_tides::propagate_x->mom_internal_tides::ppm_reconstruction_x
Text view
subroutine PPM_reconstruction_y(h_in, h_l, h_r, G, LB, simple_2nd, adv_limiter)

Calculates left/right edge valus for PPM reconstruction in y-direction.

Parameters
  • G [in]

    The ocean's grid structure.

  • h_in [in]

    Energy density in a sector (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_l [out]

    Left edge value of reconstruction (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_r [out]

    Right edge value of reconstruction (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • LB [in]

    A structure with the active loop bounds.

  • simple_2nd [in]

    If true, use the arithmetic mean energy densities as default edge values for a simple 2nd order scheme.

  • adv_limiter [in]

    The type of limiter used

Callees call graph
Callees of mom_internal_tides::ppm_reconstruction_y calls cluster_mom_error_handler MOM_error_handler cluster_mom_internal_tides MOM_internal_tides mom_error_handler::mom_error MOM_error mom_internal_tides::minmod_limiter minmod_limiter [private/internal] mom_internal_tides::ppm_limit_pos PPM_limit_pos [private/internal] mom_internal_tides::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_internal_tides::ppm_reconstruction_y->mom_error_handler::mom_error mom_internal_tides::ppm_reconstruction_y->mom_internal_tides::minmod_limiter mom_internal_tides::ppm_reconstruction_y->mom_internal_tides::ppm_limit_pos
Text view
Callers call graph
Callers of mom_internal_tides::ppm_reconstruction_y calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_internal_tides::propagate_y propagate_y [private/internal] mom_internal_tides::propagate_y->mom_internal_tides::ppm_reconstruction_y
Text view
subroutine PPM_limit_pos(h_in, h_L, h_R, h_min, G, iis, iie, jis, jie)

Limits the left/right edge values of the PPM reconstruction to give a reconstruction that is positive-definite. Here this is reinterpreted as giving a constant value if the mean value is less than h_min, with a minimum of h_min otherwise.

Parameters
  • G [in]

    The ocean's grid structure.

  • h_in [in]

    Energy density in each sector (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_L [inout]

    Left edge value of reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_R [inout]

    Right edge value of reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_min [in]

    The minimum value that can be obtained by a concave parabolic fit [H Z2 T-2 ~> m3 s-2 or J m-2]

  • iis [in]

    Start i-index for computations

  • iie [in]

    End i-index for computations

  • jis [in]

    Start j-index for computations

  • jie [in]

    End j-index for computations

Callers call graph
Callers of mom_internal_tides::ppm_limit_pos calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::ppm_limit_pos PPM_limit_pos [private/internal] mom_internal_tides::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_internal_tides::ppm_reconstruction_x->mom_internal_tides::ppm_limit_pos mom_internal_tides::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_internal_tides::ppm_reconstruction_y->mom_internal_tides::ppm_limit_pos
Text view
subroutine minmod_limiter(h_in, h_L, h_R, G, iis, iie, jis, jie)

Limits the left/right edge values using the simple minmod limiter written in a way that avoids branching in favor of intrinsics

Parameters
  • G [in]

    The ocean's grid structure.

  • h_in [in]

    Energy density in each sector (2D) [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_L [inout]

    Left edge value of reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2]

  • h_R [inout]

    Right edge value of reconstruction [H Z2 T-2 ~> m3 s-2 or J m-2]

  • iis [in]

    Start i-index for computations

  • iie [in]

    End i-index for computations

  • jis [in]

    Start j-index for computations

  • jie [in]

    End j-index for computations

Callers call graph
Callers of mom_internal_tides::minmod_limiter calls cluster_mom_internal_tides MOM_internal_tides mom_internal_tides::minmod_limiter minmod_limiter [private/internal] mom_internal_tides::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_internal_tides::ppm_reconstruction_x->mom_internal_tides::minmod_limiter mom_internal_tides::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_internal_tides::ppm_reconstruction_y->mom_internal_tides::minmod_limiter
Text view

subroutine register_int_tide_restarts(G, GV, US, param_file, CS, restart_CS)

Parameters
  • 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

  • CS

    Internal tide control structure

  • restart_CS

    MOM restart control structure

Callees call graph
Callees of mom_internal_tides::register_int_tide_restarts calls cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_internal_tides MOM_internal_tides cluster_mom_io MOM_io cluster_mom_restart MOM_restart mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_internal_tides::register_int_tide_restarts register_int_tide_restarts mom_internal_tides::register_int_tide_restarts->mom_domain_infra::interface::create_group_pass mom_internal_tides::register_int_tide_restarts->mom_error_handler::mom_error mom_internal_tides::register_int_tide_restarts->mom_file_parser::interface::get_param mom_io::set_axis_info set_axis_info mom_internal_tides::register_int_tide_restarts->mom_io::set_axis_info mom_restart::interface::register_restart_field register_restart_field (interface) mom_internal_tides::register_int_tide_restarts->mom_restart::interface::register_restart_field
Text view
Callers call graph
Callers of mom_internal_tides::register_int_tide_restarts calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_internal_tides MOM_internal_tides mom_diabatic_driver::register_diabatic_restarts register_diabatic_restarts mom_internal_tides::register_int_tide_restarts register_int_tide_restarts mom_diabatic_driver::register_diabatic_restarts->mom_internal_tides::register_int_tide_restarts
Text view
subroutine internal_tides_init(Time, G, GV, US, param_file, diag, CS)

This subroutine initializes the internal tides module.

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 [in]

    A structure that is used to regulate diagnostic output.

  • CS

    Internal tide control structure

Callees call graph
Callees of mom_internal_tides::internal_tides_init calls cluster_mom_checksums MOM_checksums cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_internal_tides MOM_internal_tides cluster_mom_io MOM_io cluster_mom_io_infra MOM_io_infra cluster_mom_string_functions MOM_string_functions cluster_mom_wave_speed MOM_wave_speed mom_checksums::interface::is_nan is_NaN (interface) mom_diag_manager_infra::mom_diag_axis_init MOM_diag_axis_init mom_diag_mediator::define_axes_group define_axes_group mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::register_diag_field register_diag_field mom_domain_infra::interface::pass_var pass_var (interface) mom_error_handler::mom_error MOM_error mom_error_handler::mom_mesg MOM_mesg mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_file_parser::interface::read_param read_param (interface) mom_internal_tides::internal_tides_init internal_tides_init mom_internal_tides::internal_tides_init->mom_checksums::interface::is_nan mom_internal_tides::internal_tides_init->mom_diag_manager_infra::mom_diag_axis_init mom_internal_tides::internal_tides_init->mom_diag_mediator::define_axes_group mom_internal_tides::internal_tides_init->mom_diag_mediator::interface::post_data mom_internal_tides::internal_tides_init->mom_diag_mediator::register_diag_field mom_internal_tides::internal_tides_init->mom_domain_infra::interface::pass_var mom_internal_tides::internal_tides_init->mom_error_handler::mom_error mom_internal_tides::internal_tides_init->mom_error_handler::mom_mesg mom_internal_tides::internal_tides_init->mom_file_parser::interface::get_param mom_internal_tides::internal_tides_init->mom_file_parser::interface::log_param mom_internal_tides::internal_tides_init->mom_file_parser::interface::log_version mom_internal_tides::internal_tides_init->mom_file_parser::interface::read_param mom_io::interface::mom_read_data MOM_read_data (interface) mom_internal_tides::internal_tides_init->mom_io::interface::mom_read_data mom_io_infra::interface::file_exists file_exists (interface) mom_internal_tides::internal_tides_init->mom_io_infra::interface::file_exists mom_string_functions::extract_real extract_real mom_internal_tides::internal_tides_init->mom_string_functions::extract_real mom_string_functions::slasher slasher mom_internal_tides::internal_tides_init->mom_string_functions::slasher mom_string_functions::uppercase uppercase mom_internal_tides::internal_tides_init->mom_string_functions::uppercase mom_wave_speed::wave_speed_init wave_speed_init mom_internal_tides::internal_tides_init->mom_wave_speed::wave_speed_init
Text view
Callers call graph
Callers of mom_internal_tides::internal_tides_init calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_internal_tides MOM_internal_tides mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_internal_tides::internal_tides_init internal_tides_init mom_diabatic_driver::diabatic_driver_init->mom_internal_tides::internal_tides_init
Text view
subroutine internal_tides_end(CS)

This subroutine deallocates the memory associated with the internal tides control structure

Parameters
  • CS [inout]

    Internal tide control structure

API generated with Flint · Rendered from reStructuredText