MOM_diabatic_aux module reference

Provides functions for some diabatic processes such as frazil, brine rejection, tendency due to surface flux divergence.

Data Types

diabatic_aux_CS

Control structure for diabatic_aux

Functions/Subroutines

make_frazil

Frazil formation keeps the temperature above the freezing point. This subroutine warms any water that is colder than the (currently surface) freezing point up to the freezing point and accumulates the required heat (in [Q R Z ~> J m-2]) in tv%frazil.

differential_diffuse_T_S

This subroutine applies double diffusion to T & S, assuming no diapycnal mass fluxes, using a simple tridiagonal solver.

adjust_salt

This subroutine keeps salinity from falling below a small but positive threshold. This usually occurs when the ice model attempts to extract more salt then is actually available to it from the ocean.

triDiagTS

This is a simple tri-diagonal solver for T and S. "Simple" means it only uses arrays hold, ea and eb.

triDiagTS_Eulerian

This is a simple tri-diagonal solver for T and S, with mixing across interfaces but no net transfer of mass.

find_uv_at_h

This subroutine calculates u_h and v_h (velocities at thickness points), optionally using the entrainment amounts passed in as arguments.

set_pen_shortwave

Estimate the optical properties of the water column and determine the penetrating shortwave radiation by band, extracting the relevant information from the fluxes type and storing it in the optics type for later application. This routine is effectively a wrapper for set_opacity with added error handling and diagnostics.

applyBoundaryFluxesInOut

Update the thickness, temperature, and salinity due to thermodynamic boundary forcing (contained in fluxes type) applied to h, tv%T and tv%S, and calculate the TKE implications of this heating.

diabatic_aux_init

This subroutine initializes the parameters and control structure of the diabatic_aux module.

diabatic_aux_end

This subroutine initializes the control structure and any related memory for the diabatic_aux module.

Detailed Description

This module contains subroutines that apply various diabatic processes. Usually these subroutines are called from the MOM_diabatic module. All of these routines use appropriate limiters or logic to work properly with arbitrary layer thicknesses (including massless layers) and an arbitrarily large timestep.

The subroutine make_frazil facilitates the formation of frazil ice when the ocean water drops below the in situ freezing point by heating the water to the freezing point and accumulating the required heat for exchange with the sea-ice module.

The subroutine adjust_salt adds salt as necessary to keep the salinity above a specified minimum value, and keeps track of the cumulative additions. If the minimum salinity is the natural value of 0, this routine should never do anything.

The subroutine differential_diffuse_T_S solves a pair of tridiagonal equations for the diffusion of temperatures and salinities with differing diffusivities.

The subroutine triDiagTS solves a tridiagonal equations for the evolution of temperatures and salinities due to net entrainment by layers and a diffusion with the same diffusivity.

The subroutine triDiagTS_Eulerian solves a tridiagonal equations for the evolution of temperatures and salinities due to diffusion with the same diffusivity, but no net entrainment.

The subroutine find_uv_at_h interpolates velocities to thickness points, optionally also using tridiagonal equations to solve for the impacts of net entrainment or mixing of momentum between layers.

The subroutine set_pen_shortwave determines the optical properties of the water column and the net shortwave fluxes, and stores them in the optics type, working via calls to set_opacity.

The subroutine applyBoundaryFluxesInOut updates the layer thicknesses, temperatures and salinities due to the application of the surface forcing. It may also calculate the implied turbulent kinetic energy requirements for this forcing to be mixed over the model's finite vertical resolution in the surface layers.

Type Documentation

type, public :: diabatic_aux_CS

Control structure for diabatic_aux

Parameters
  • do_rivermix

    Provide additional TKE to mix river runoff at the river mouths to a depth of "rivermix_depth"

  • rivermix_depth

    The depth to which rivers are mixed if do_rivermix = T [Z ~> m].

  • dSalt_frac_max

    An upper limit on the fraction of the salt in a layer that can be lost to the net surface salt fluxes within a timestep [nondim]

  • reclaim_frazil

    If true, try to use any frazil heat deficit to to cool the topmost layer down to the freezing point. The default is true.

  • pressure_dependent_frazil

    If true, use a pressure dependent freezing temperature when making frazil. The default is false, which will be faster but is inappropriate with ice-shelf cavities.

  • ignore_fluxes_over_land

    If true, the model does not check if fluxes are applied over land points. This flag must be used when the ocean is coupled with sea ice and ice shelves and use_ePBL = true.

  • use_river_heat_content

    If true, assumes that ice-ocean boundary has provided a river heat content. Otherwise, runoff is added with a temperature of the local SST.

  • use_calving_heat_content

    If true, assumes that ice-ocean boundary has provided a calving heat content. Otherwise, calving is added with a temperature of the local SST.

  • var_pen_sw

    If true, use one of the CHL_A schemes to determine the e-folding depth of incoming shortwave radiation.

  • sbc_chl

    A handle used in time interpolation of chlorophyll read from a file.

  • chl_from_file

    If true, chl_a is read from a file.

  • do_brine_plume

    If true, insert salt flux below the surface according to a parameterization by [60].

  • check_salt_bp

    A logical to check for salt conservation in the brine plume scheme

  • brine_plume_n

    The exponent in the brine plume parameterization.

  • plume_strength

    Fraction of the available brine to take to the bottom of the mixed layer [nondim].

  • plume_mld_fac

    Proportionality factor between the mixed/mixing layer depth and the vertical scale used for the brine plume parameterization [nondim].

  • check_salt_threshold

    The maximum relative salt change acceptable in a time step [nondim]

  • Time

    A pointer to the ocean model's clock.

  • diag

    Structure used to regulate timing of diagnostic output

  • id_createdH

    Diagnostic ID of mass added to avoid grounding

  • id_brine_input

    Diagnostic ID of which layer receives the brine salt flux

  • id_penSW_diag

    Diagnostic ID of Penetrative shortwave heating (flux convergence)

  • id_penSWflux_diag

    Diagnostic ID of Penetrative shortwave flux

  • id_nonpenSW_diag

    Diagnostic ID of Non-penetrative shortwave heating

  • id_Chl

    Diagnostic ID of chlorophyll-A handles for opacity

  • createdH

    The amount of volume added in order to avoid grounding [H T-1 ~> m s-1]

  • brine_input

    Brine input diagnostic indicating the resulting salt tendency [S T-1 ~> ppt s-1]

  • penSW_diag

    Heating in a layer from convergence of penetrative SW [Q R Z T-1 ~> W m-2]

  • penSWflux_diag

    Penetrative SW flux at base of grid layer [Q R Z T-1 ~> W m-2]

  • nonpenSW_diag

    Non-downwelling SW radiation at ocean surface [Q R Z T-1 ~> W m-2]

Functions/Subroutine Documentation

subroutine make_frazil(h, tv, G, GV, US, CS, p_surf, halo)

Frazil formation keeps the temperature above the freezing point. This subroutine warms any water that is colder than the (currently surface) freezing point up to the freezing point and accumulates the required heat (in [Q R Z ~> J m-2]) in tv%frazil.

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

    Structure containing pointers to any available thermodynamic fields.

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    The control structure returned by a previous call to diabatic_aux_init.

  • p_surf [in]

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

  • halo [in]

    Halo width over which to calculate frazil

Callees call graph
Callees of mom_diabatic_aux::make_frazil calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_eos MOM_EOS mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diabatic_aux::make_frazil make_frazil mom_diabatic_aux::make_frazil->mom_cpu_clock_infra::cpu_clock_begin mom_diabatic_aux::make_frazil->mom_cpu_clock_infra::cpu_clock_end mom_eos::interface::calculate_tfreeze calculate_TFreeze (interface) mom_diabatic_aux::make_frazil->mom_eos::interface::calculate_tfreeze
Text view
Callers call graph
Callers of mom_diabatic_aux::make_frazil calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::make_frazil make_frazil mom_diabatic_driver::diabatic diabatic mom_diabatic_driver::diabatic->mom_diabatic_aux::make_frazil
Text view
subroutine differential_diffuse_T_S(h, T, S, Kd_T, Kd_S, tv, dt, G, GV)

This subroutine applies double diffusion to T & S, assuming no diapycnal mass fluxes, using a simple tridiagonal solver.

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]

  • T [inout]

    Potential temperature [C ~> degC].

  • S [inout]

    Salinity [PSU] or [gSalt/kg], generically [S ~> ppt].

  • Kd_T [in]

    The extra diffusivity of temperature due to double diffusion relative to the diffusivity of density [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • Kd_S [in]

    The extra diffusivity of salinity due to double diffusion relative to the diffusivity of density [H Z T-1 ~> m2 s-1 or kg m-1 s-1].

  • tv [in]

    Structure containing pointers to any available thermodynamic fields.

  • dt [in]

    Time increment [T ~> s].

Callees call graph
Callees of mom_diabatic_aux::differential_diffuse_t_s calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_interface_heights MOM_interface_heights mom_diabatic_aux::differential_diffuse_t_s differential_diffuse_T_S mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_diabatic_aux::differential_diffuse_t_s->mom_interface_heights::interface::thickness_to_dz
Text view
Callers call graph
Callers of mom_diabatic_aux::differential_diffuse_t_s calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::differential_diffuse_t_s differential_diffuse_T_S mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::differential_diffuse_t_s mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diabatic_aux::differential_diffuse_t_s
Text view
subroutine adjust_salt(h, tv, G, GV, CS)

This subroutine keeps salinity from falling below a small but positive threshold. This usually occurs when the ice model attempts to extract more salt then is actually available to it from the ocean.

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

    Structure containing pointers to any available thermodynamic fields.

  • CS [in]

    The control structure returned by a previous call to diabatic_aux_init.

  • salt_add_col

    The accumulated salt requirement [S R Z ~> gSalt m-2]

  • S_min

    The minimum salinity [S ~> ppt].

  • mc

    A layer's mass [R Z ~> kg m-2].

Callers call graph
Callers of mom_diabatic_aux::adjust_salt calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::adjust_salt adjust_salt mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diabatic_aux::adjust_salt mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::adjust_salt mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diabatic_aux::adjust_salt
Text view
subroutine triDiagTS(G, GV, is, ie, js, je, hold, ea, eb, T, S)

This is a simple tri-diagonal solver for T and S. "Simple" means it only uses arrays hold, ea and eb.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • is [in]

    The start i-index to work on.

  • ie [in]

    The end i-index to work on.

  • js [in]

    The start j-index to work on.

  • je [in]

    The end j-index to work on.

  • hold [in]

    The layer thicknesses before entrainment, [H ~> m or kg m-2].

  • ea [in]

    The amount of fluid entrained from the layer above within this time step [H ~> m or kg m-2]

  • eb [in]

    The amount of fluid entrained from the layer below within this time step [H ~> m or kg m-2]

  • T [inout]

    Layer potential temperatures [C ~> degC].

  • S [inout]

    Layer salinities [S ~> ppt].

Callers call graph
Callers of mom_diabatic_aux::tridiagts calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::tridiagts triDiagTS mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diabatic_aux::tridiagts
Text view
subroutine triDiagTS_Eulerian(G, GV, is, ie, js, je, hold, ent, T, S)

This is a simple tri-diagonal solver for T and S, with mixing across interfaces but no net transfer of mass.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • is [in]

    The start i-index to work on.

  • ie [in]

    The end i-index to work on.

  • js [in]

    The start j-index to work on.

  • je [in]

    The end j-index to work on.

  • hold [in]

    The layer thicknesses before entrainment, [H ~> m or kg m-2].

  • ent [in]

    The amount of fluid mixed across an interface within this time step [H ~> m or kg m-2]

  • T [inout]

    Layer potential temperatures [C ~> degC].

  • S [inout]

    Layer salinities [S ~> ppt].

Callers call graph
Callers of mom_diabatic_aux::tridiagts_eulerian calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::tridiagts_eulerian triDiagTS_Eulerian mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::tridiagts_eulerian
Text view
subroutine find_uv_at_h(u, v, h, u_h, v_h, G, GV, US, ea, eb, zero_mix)

This subroutine calculates u_h and v_h (velocities at thickness points), optionally using the entrainment amounts passed in as arguments.

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]

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

  • v [in]

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

  • h [in]

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

  • u_h [out]

    Zonal velocity interpolated to h points [L T-1 ~> m s-1].

  • v_h [out]

    Meridional velocity interpolated to h points [L T-1 ~> m s-1].

  • ea [in]

    The amount of fluid entrained from the layer above within this time step [H ~> m or kg m-2]. Omitting ea is the same as setting it to 0.

  • eb [in]

    The amount of fluid entrained from the layer below within this time step [H ~> m or kg m-2]. Omitting eb is the same as setting it to 0.

  • zero_mix [in]

    If true, do the calculation of u_h and v_h as though ea and eb were being supplied with uniformly zero values.

Callees call graph
Callees of mom_diabatic_aux::find_uv_at_h calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_error_handler MOM_error_handler mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diabatic_aux::find_uv_at_h find_uv_at_h mom_diabatic_aux::find_uv_at_h->mom_cpu_clock_infra::cpu_clock_begin mom_diabatic_aux::find_uv_at_h->mom_cpu_clock_infra::cpu_clock_end mom_error_handler::mom_error MOM_error mom_diabatic_aux::find_uv_at_h->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diabatic_aux::find_uv_at_h calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::find_uv_at_h find_uv_at_h mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diabatic_aux::find_uv_at_h mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::find_uv_at_h mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diabatic_aux::find_uv_at_h
Text view
subroutine set_pen_shortwave(optics, fluxes, G, GV, US, CS, opacity, tracer_flow_CSp)

Estimate the optical properties of the water column and determine the penetrating shortwave radiation by band, extracting the relevant information from the fluxes type and storing it in the optics type for later application. This routine is effectively a wrapper for set_opacity with added error handling and diagnostics.

Parameters
  • optics

    An optics structure that has will contain information about shortwave fluxes and absorption.

  • fluxes [inout]

    points to forcing fields unused fields have NULL pointers

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS

    Control structure for diabatic_aux

  • opacity

    The control structure for the opacity module.

  • tracer_flow_CSp

    A pointer to the control structure organizing the tracer modules.

  • chl_2d

    Vertically uniform chlorophyll-A concentrations [mg m-3]

  • chl_3d

    The chlorophyll-A concentrations of each layer [mg m-3]

Callees call graph
Callees of mom_diabatic_aux::set_pen_shortwave calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_interpolate MOM_interpolate cluster_mom_opacity MOM_opacity cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_diabatic_aux::set_pen_shortwave set_pen_shortwave mom_diag_mediator::interface::post_data post_data (interface) mom_diabatic_aux::set_pen_shortwave->mom_diag_mediator::interface::post_data mom_error_handler::mom_error MOM_error mom_diabatic_aux::set_pen_shortwave->mom_error_handler::mom_error mom_interpolate::interface::time_interp_external time_interp_external (interface) mom_diabatic_aux::set_pen_shortwave->mom_interpolate::interface::time_interp_external mom_opacity::set_opacity set_opacity mom_diabatic_aux::set_pen_shortwave->mom_opacity::set_opacity mom_tracer_flow_control::get_chl_from_model get_chl_from_model mom_diabatic_aux::set_pen_shortwave->mom_tracer_flow_control::get_chl_from_model
Text view
Callers call graph
Callers of mom_diabatic_aux::set_pen_shortwave calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_offline_main MOM_offline_main mom_diabatic_aux::set_pen_shortwave set_pen_shortwave mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diabatic_aux::set_pen_shortwave mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::set_pen_shortwave mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diabatic_aux::set_pen_shortwave mom_offline_main::offline_diabatic_ale offline_diabatic_ale mom_offline_main::offline_diabatic_ale->mom_diabatic_aux::set_pen_shortwave
Text view
subroutine applyBoundaryFluxesInOut(CS, G, GV, US, dt, fluxes, optics, nsw, h, tv, aggregate_FW_forcing, evap_CFL_limit, minimum_forcing_depth, cTKE, dSV_dT, dSV_dS, SkinBuoyFlux, MLD_h)

Update the thickness, temperature, and salinity due to thermodynamic boundary forcing (contained in fluxes type) applied to h, tv%T and tv%S, and calculate the TKE implications of this heating.

Parameters
  • CS

    Control structure for diabatic_aux

  • G [in]

    Grid structure

  • GV [in]

    ocean vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • dt [in]

    Time-step over which forcing is applied [T ~> s]

  • fluxes [inout]

    Surface fluxes container

  • optics

    Optical properties container

  • nsw [in]

    The number of frequency bands of penetrating shortwave radiation

  • h [inout]

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

  • tv [inout]

    Structure containing pointers to any available thermodynamic fields.

  • aggregate_FW_forcing [in]

    If False, treat in/out fluxes separately.

  • evap_CFL_limit [in]

    The largest fraction of a layer that can be evaporated in one time-step [nondim].

  • minimum_forcing_depth [in]

    The smallest depth over which heat and freshwater fluxes is applied [H ~> m or kg m-2].

  • cTKE [out]

    Turbulent kinetic energy requirement to mix forcing through each layer [R Z3 T-2 ~> J m-2]

  • dSV_dT [out]

    Partial derivative of specific volume with potential temperature [R-1 C-1 ~> m3 kg-1 degC-1].

  • dSV_dS [out]

    Partial derivative of specific volume with salinity [R-1 S-1 ~> m3 kg-1 ppt-1].

  • SkinBuoyFlux [out]

    Buoyancy flux at surface [Z2 T-3 ~> m2 s-3].

  • MLD_h

    Mixed layer thickness for brine plumes [H ~> m or kg m-2]

Callees call graph
Callees of mom_diabatic_aux::applyboundaryfluxesinout calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_forcing_type MOM_forcing_type cluster_mom_opacity MOM_opacity mom_diabatic_aux::applyboundaryfluxesinout applyBoundaryFluxesInOut mom_diag_mediator::interface::post_data post_data (interface) mom_diabatic_aux::applyboundaryfluxesinout->mom_diag_mediator::interface::post_data mom_eos::eos_domain EOS_domain mom_diabatic_aux::applyboundaryfluxesinout->mom_eos::eos_domain mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) mom_diabatic_aux::applyboundaryfluxesinout->mom_eos::interface::calculate_density_derivs mom_eos::interface::calculate_specific_vol_derivs calculate_specific_vol_derivs (interface) mom_diabatic_aux::applyboundaryfluxesinout->mom_eos::interface::calculate_specific_vol_derivs mom_error_handler::mom_error MOM_error mom_diabatic_aux::applyboundaryfluxesinout->mom_error_handler::mom_error mom_forcing_type::extractfluxes1d extractFluxes1d mom_diabatic_aux::applyboundaryfluxesinout->mom_forcing_type::extractfluxes1d mom_forcing_type::forcing_singlepointprint forcing_SinglePointPrint mom_diabatic_aux::applyboundaryfluxesinout->mom_forcing_type::forcing_singlepointprint mom_opacity::absorbremainingsw absorbRemainingSW mom_diabatic_aux::applyboundaryfluxesinout->mom_opacity::absorbremainingsw mom_opacity::extract_optics_slice extract_optics_slice mom_diabatic_aux::applyboundaryfluxesinout->mom_opacity::extract_optics_slice
Text view
Callers call graph
Callers of mom_diabatic_aux::applyboundaryfluxesinout calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::applyboundaryfluxesinout applyBoundaryFluxesInOut mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diabatic_aux::applyboundaryfluxesinout mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diabatic_aux::applyboundaryfluxesinout
Text view
subroutine diabatic_aux_init(Time, G, GV, US, param_file, diag, CS, useALEalgorithm, use_ePBL)

This subroutine initializes the parameters and control structure of the diabatic_aux 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 [inout]

    A structure used to regulate diagnostic output

  • CS

    A pointer to the control structure for the diabatic_aux module, which is initialized here.

  • useALEalgorithm [in]

    If true, use the ALE algorithm rather than layered mode.

  • use_ePBL [in]

    If true, use the implicit energetics planetary boundary layer scheme to determine the diffusivity in the surface boundary layer.

Callees call graph
Callees of mom_diabatic_aux::diabatic_aux_init calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_interp_infra MOM_interp_infra cluster_mom_string_functions MOM_string_functions mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_diabatic_aux::diabatic_aux_init diabatic_aux_init mom_diabatic_aux::diabatic_aux_init->mom_cpu_clock_infra::cpu_clock_id mom_diag_mediator::register_diag_field register_diag_field mom_diabatic_aux::diabatic_aux_init->mom_diag_mediator::register_diag_field mom_error_handler::mom_error MOM_error mom_diabatic_aux::diabatic_aux_init->mom_error_handler::mom_error mom_file_parser::interface::get_param get_param (interface) mom_diabatic_aux::diabatic_aux_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_param log_param (interface) mom_diabatic_aux::diabatic_aux_init->mom_file_parser::interface::log_param mom_file_parser::interface::log_version log_version (interface) mom_diabatic_aux::diabatic_aux_init->mom_file_parser::interface::log_version mom_interp_infra::init_extern_field init_extern_field mom_diabatic_aux::diabatic_aux_init->mom_interp_infra::init_extern_field mom_interp_infra::time_interp_extern_init time_interp_extern_init mom_diabatic_aux::diabatic_aux_init->mom_interp_infra::time_interp_extern_init mom_string_functions::slasher slasher mom_diabatic_aux::diabatic_aux_init->mom_string_functions::slasher
Text view
Callers call graph
Callers of mom_diabatic_aux::diabatic_aux_init calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::diabatic_aux_init diabatic_aux_init mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_diabatic_driver::diabatic_driver_init->mom_diabatic_aux::diabatic_aux_init
Text view
subroutine diabatic_aux_end(CS)

This subroutine initializes the control structure and any related memory for the diabatic_aux module.

Parameters
  • CS

    The control structure returned by a previous call to diabatic_aux_init; it is deallocated here.

Callers call graph
Callers of mom_diabatic_aux::diabatic_aux_end calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver mom_diabatic_aux::diabatic_aux_end diabatic_aux_end mom_diabatic_driver::diabatic_driver_end diabatic_driver_end mom_diabatic_driver::diabatic_driver_end->mom_diabatic_aux::diabatic_aux_end
Text view
API generated with Flint · Rendered from reStructuredText