MOM_regularize_layers module reference
Provides regularization of layers in isopycnal mode
Data Types
This control structure holds parameters used by the MOM_regularize_layers module |
Functions/Subroutines
This subroutine partially steps the bulk mixed layer model. The following processes are executed, in the order listed. |
|
This subroutine ensures that there is a degree of horizontal smoothness in the depths of the near-surface interfaces. |
|
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. |
|
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
Callers call graph
- 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
Text view
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
Callers call graph
- 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
- 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
Text view
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