MOM_regularize_layers module reference

Provides regularization of layers in isopycnal mode

Data Types

regularize_layers_CS

This control structure holds parameters used by the MOM_regularize_layers module

Functions/Subroutines

regularize_layers

This subroutine partially steps the bulk mixed layer model. The following processes are executed, in the order listed.

regularize_surface

This subroutine ensures that there is a degree of horizontal smoothness in the depths of the near-surface interfaces.

find_deficit_ratios

This subroutine determines the amount by which the harmonic mean thickness at velocity points differ from the arithmetic means, relative to the arithmetic means, after eliminating thickness variations that are solely due to topography and aggregating all interior layers into one.

regularize_layers_init

Initializes the regularize_layers control structure

Type Documentation

type, public :: regularize_layers_CS

This control structure holds parameters used by the MOM_regularize_layers module

Parameters
  • initialized

    True if this control structure has been initialized.

  • regularize_surface_layers

    If true, vertically restructure the near-surface layers when they have too much lateral variations to allow for sensible lateral barotropic transports.

  • reg_sfc_detrain

    If true, allow the buffer layers to detrain into the interior as a part of the restructuring when regularize_surface_layers is true

  • density_match_tol

    A relative tolerance for how well the densities must match with the target densities during detrainment when regularizing the near-surface layers [nondim]

  • sufficient_adjustment

    The fraction of the target entrainment of mass to the mixed and buffer layers that is enough for one timestep when regularizing the near-surface layers [nondim]. No more mass will be sought from deeper layers in the interior after this fraction is exceeded.

  • h_def_tol1

    The value of the relative thickness deficit at which to start modifying the structure, 0.5 by default (or a thickness ratio of 5.83) [nondim].

  • h_def_tol2

    The value of the relative thickness deficit at which to the structure modification is in full force, now 20% of the way from h_def_tol1 to 1 [nondim].

  • h_def_tol3

    The value of the relative thickness deficit at which to start detrainment from the buffer layers to the interior, now 30% of the way from h_def_tol1 to 1 [nondim].

  • h_def_tol4

    The value of the relative thickness deficit at which to do detrainment from the buffer layers to the interior at full force, now 50% of the way from h_def_tol1 to 1 [nondim].

  • Hmix_min

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

  • Time

    A pointer to the ocean model's clock.

  • diag

    A structure that is used to regulate the timing of diagnostic output.

  • answer_date

    The vintage of the order of arithmetic and expressions in this module's calculations. Values below 20190101 recover the answers from the end of 2018, while higher values use updated and more robust forms of the same expressions.

  • debug

    If true, do more thorough checks for debugging purposes.

  • id_def_rat

    A diagnostic ID

Functions/Subroutine Documentation

subroutine regularize_layers(h, tv, dt, ea, eb, G, GV, US, CS)

This subroutine partially steps the bulk mixed layer model. The following processes are executed, in the order listed.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h [inout]

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

  • tv [inout]

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

  • dt [in]

    Time increment [T ~> s].

  • ea [inout]

    The amount of fluid moved downward into a layer; this should be increased due to mixed layer detrainment [H ~> m or kg m-2].

  • eb [inout]

    The amount of fluid moved upward into a layer this should be increased due to mixed layer entrainment [H ~> m or kg m-2].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Regularize layer control structure

Callees call graph
Callees of mom_regularize_layers::regularize_layers calls cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_regularize_layers MOM_regularize_layers mom_domain_infra::interface::pass_var pass_var (interface) mom_error_handler::mom_error MOM_error mom_regularize_layers::regularize_layers regularize_layers mom_regularize_layers::regularize_layers->mom_domain_infra::interface::pass_var mom_regularize_layers::regularize_layers->mom_error_handler::mom_error mom_regularize_layers::regularize_surface regularize_surface [private/internal] mom_regularize_layers::regularize_layers->mom_regularize_layers::regularize_surface
Text view
Callers call graph
Callers of mom_regularize_layers::regularize_layers calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_regularize_layers MOM_regularize_layers mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_regularize_layers::regularize_layers regularize_layers mom_diabatic_driver::layered_diabatic->mom_regularize_layers::regularize_layers
Text view
subroutine regularize_surface(h, tv, dt, ea, eb, G, GV, US, CS)

This subroutine ensures that there is a degree of horizontal smoothness in the depths of the near-surface interfaces.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h [inout]

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

  • tv [inout]

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

  • dt [in]

    Time increment [T ~> s].

  • ea [inout]

    The amount of fluid moved downward into a layer; this should be increased due to mixed layer detrainment [H ~> m or kg m-2].

  • eb [inout]

    The amount of fluid moved upward into a layer this should be increased due to mixed layer entrainment [H ~> m or kg m-2].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Regularize layer control structure

Callees call graph
Callees of mom_regularize_layers::regularize_surface calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_eos MOM_EOS cluster_mom_error_handler MOM_error_handler cluster_mom_regularize_layers MOM_regularize_layers mom_diag_mediator::interface::post_data post_data (interface) mom_eos::eos_domain EOS_domain mom_eos::interface::calculate_density calculate_density (interface) mom_error_handler::mom_error MOM_error mom_regularize_layers::find_deficit_ratios find_deficit_ratios [private/internal] mom_regularize_layers::regularize_surface regularize_surface [private/internal] mom_regularize_layers::regularize_surface->mom_diag_mediator::interface::post_data mom_regularize_layers::regularize_surface->mom_eos::eos_domain mom_regularize_layers::regularize_surface->mom_eos::interface::calculate_density mom_regularize_layers::regularize_surface->mom_error_handler::mom_error mom_regularize_layers::regularize_surface->mom_regularize_layers::find_deficit_ratios
Text view
Callers call graph
Callers of mom_regularize_layers::regularize_surface calls cluster_mom_regularize_layers MOM_regularize_layers mom_regularize_layers::regularize_layers regularize_layers mom_regularize_layers::regularize_surface regularize_surface [private/internal] mom_regularize_layers::regularize_layers->mom_regularize_layers::regularize_surface
Text view
subroutine find_deficit_ratios(e, def_rat_u, def_rat_v, G, GV, CS, h)

This subroutine determines the amount by which the harmonic mean thickness at velocity points differ from the arithmetic means, relative to the arithmetic means, after eliminating thickness variations that are solely due to topography and aggregating all interior layers into one.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • e [in]

    Interface depths [H ~> m or kg m-2]

  • def_rat_u [out]

    The thickness deficit ratio at u points, [nondim].

  • def_rat_v [out]

    The thickness deficit ratio at v points, [nondim].

  • CS [in]

    Regularize layer control structure

  • h [in]

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

Callers call graph
Callers of mom_regularize_layers::find_deficit_ratios calls cluster_mom_regularize_layers MOM_regularize_layers mom_regularize_layers::find_deficit_ratios find_deficit_ratios [private/internal] mom_regularize_layers::regularize_surface regularize_surface [private/internal] mom_regularize_layers::regularize_surface->mom_regularize_layers::find_deficit_ratios
Text view
subroutine regularize_layers_init(Time, G, GV, param_file, diag, CS)

Initializes the regularize_layers control structure

Parameters
  • Time [in]

    The current model time.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • param_file [in]

    A structure to parse for run-time parameters.

  • diag [inout]

    A structure that is used to regulate diagnostic output.

  • CS [inout]

    Regularize layer control structure

Callees call graph
Callees of mom_regularize_layers::regularize_layers_init calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_file_parser MOM_file_parser cluster_mom_regularize_layers MOM_regularize_layers mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_diag_mediator::register_diag_field register_diag_field mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_regularize_layers::regularize_layers_init regularize_layers_init mom_regularize_layers::regularize_layers_init->mom_cpu_clock_infra::cpu_clock_id mom_regularize_layers::regularize_layers_init->mom_diag_mediator::register_diag_field mom_regularize_layers::regularize_layers_init->mom_file_parser::interface::get_param mom_regularize_layers::regularize_layers_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_regularize_layers::regularize_layers_init calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_regularize_layers MOM_regularize_layers mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_regularize_layers::regularize_layers_init regularize_layers_init mom_diabatic_driver::diabatic_driver_init->mom_regularize_layers::regularize_layers_init
Text view
API generated with Flint · Rendered from reStructuredText