MOM_porous_barriers module reference
Module for calculating curve fit for porous topography.
Data Types
The control structure for the MOM_porous_barriers module |
Functions/Subroutines
subroutine to assign porous barrier widths averaged over a layer |
|
subroutine to assign porous barrier widths at the layer interfaces |
|
subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013) |
|
subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013) |
|
Type Documentation
- type, public :: porous_barrier_CS
The control structure for the MOM_porous_barriers module
- Parameters
initialized
True if this control structure has been initialized.
diag
A structure to regulate diagnostic output timing
debug
If true, write verbose checksums for debugging purposes.
mask_depth
The depth shallower than which porous barrier is not applied [Z ~> m]
eta_interp
An integer indicating how the interface heights at the velocity points are calculated. Valid values are given by the parameters defined below: MAX, MIN, ARITHMETIC and HARMONIC.
id_por_layer_widthU
Diagnostic IDs
id_por_layer_widthV
Diagnostic IDs
id_por_face_areaU
Diagnostic IDs
id_por_face_areaV
Diagnostic IDs
Functions/Subroutine Documentation
- subroutine porous_widths_layer(h, tv, G, GV, US, pbv, CS, eta_bt)
subroutine to assign porous barrier widths averaged over a layer
- Parameters
G [in]
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]
A structure pointing to various thermodynamic variables.
eta_bt [in]
optional barotropic variable used to dilate the layer thicknesses [H ~> m or kg m-2].
pbv [inout]
porous barrier fractional cell metrics
CS [in]
Control structure for porous barrier
Callees call graph
Text view
mom_porous_barriers::porous_widths_layer → mom_checksums::interface::uvchksum
mom_porous_barriers::porous_widths_layer → mom_cpu_clock_infra::cpu_clock_begin
mom_porous_barriers::porous_widths_layer → mom_cpu_clock_infra::cpu_clock_end
mom_porous_barriers::porous_widths_layer → mom_diag_mediator::interface::post_data
mom_porous_barriers::porous_widths_layer → mom_error_handler::mom_error
mom_porous_barriers::porous_widths_layer → mom_porous_barriers::calc_eta_at_uv
mom_porous_barriers::porous_widths_layer → mom_porous_barriers::calc_por_layer
- subroutine porous_widths_interface(h, tv, G, GV, US, pbv, CS, eta_bt)
subroutine to assign porous barrier widths at the layer interfaces
- Parameters
G [in]
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]
A structure pointing to various thermodynamic variables.
eta_bt [in]
optional barotropic variable used to dilate the layer thicknesses [H ~> m or kg m-2].
pbv [inout]
porous barrier fractional cell metrics
CS [in]
Control structure for porous barrier
Callees call graph
Text view
mom_porous_barriers::porous_widths_interface → mom_checksums::interface::uvchksum
mom_porous_barriers::porous_widths_interface → mom_cpu_clock_infra::cpu_clock_begin
mom_porous_barriers::porous_widths_interface → mom_cpu_clock_infra::cpu_clock_end
mom_porous_barriers::porous_widths_interface → mom_diag_mediator::interface::post_data
mom_porous_barriers::porous_widths_interface → mom_error_handler::mom_error
mom_porous_barriers::porous_widths_interface → mom_porous_barriers::calc_eta_at_uv
mom_porous_barriers::porous_widths_interface → mom_porous_barriers::calc_por_interface
subroutine calc_eta_at_uv(eta_u, eta_v, interp, dmask, h, tv, G, GV, US, eta_bt)
- Parameters
G [in]
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]
A structure pointing to various thermodynamic variables.
eta_bt [in]
optional barotropic variable used to dilate the layer thicknesses [H ~> m or kg m-2].
dmask [in]
The depth shallower than which porous barrier is not applied [Z ~> m]
interp [in]
eta interpolation method
eta_u [out]
Layer interface heights at u points [Z ~> m]
eta_v [out]
Layer interface heights at v points [Z ~> m]
Callees call graph
- subroutine calc_por_layer(D_min, D_max, D_avg, eta_layer, A_layer, do_next)
subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013)
- Parameters
D_min [in]
minimum topographic height (deepest) [Z ~> m]
D_max [in]
maximum topographic height (shallowest) [Z ~> m]
D_avg [in]
mean topographic height [Z ~> m]
eta_layer [in]
height of interface [Z ~> m]
A_layer [out]
frac. open face area of below eta_layer [Z ~> m]
do_next [out]
False if eta_layer>D_max
Callers call graph
- subroutine calc_por_interface(D_min, D_max, D_avg, eta_layer, w_layer, do_next)
subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013)
- Parameters
D_min [in]
minimum topographic height (deepest) [Z ~> m]
D_max [in]
maximum topographic height (shallowest) [Z ~> m]
D_avg [in]
mean topographic height [Z ~> m]
eta_layer [in]
height of interface [Z ~> m]
w_layer [out]
frac. open interface width at eta_layer [nondim]
do_next [out]
False if eta_layer>D_max
Callers call graph
subroutine porous_barriers_init(Time, GV, US, param_file, diag, CS)
- Parameters
Time [in]
Current model time
GV [in]
The ocean's vertical grid structure.
US [in]
A dimensional unit scaling type
param_file [in]
structure indicating parameter file to parse
diag [inout]
Diagnostics control structure
CS [inout]
Module control structure
default_answer_date
This include declares and sets the variable "version".
Callees call graph
Text view
mom_porous_barriers::porous_barriers_init → mom_cpu_clock_infra::cpu_clock_id
mom_porous_barriers::porous_barriers_init → mom_diag_mediator::register_diag_field
mom_porous_barriers::porous_barriers_init → mom_error_handler::mom_error
mom_porous_barriers::porous_barriers_init → mom_file_parser::interface::get_param
mom_porous_barriers::porous_barriers_init → mom_file_parser::interface::log_version