MOM_porous_barriers module reference

Module for calculating curve fit for porous topography.

Data Types

porous_barrier_CS

The control structure for the MOM_porous_barriers module

Functions/Subroutines

porous_widths_layer

subroutine to assign porous barrier widths averaged over a layer

porous_widths_interface

subroutine to assign porous barrier widths at the layer interfaces

calc_eta_at_uv

calc_por_layer

subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013)

calc_por_interface

subroutine to calculate the profile fit (the three parameter fit from Adcroft 2013)

porous_barriers_init

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
Callees of mom_porous_barriers::porous_widths_layer calls cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_porous_barriers MOM_porous_barriers mom_checksums::interface::uvchksum uvchksum (interface) mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_mediator::interface::post_data post_data (interface) mom_error_handler::mom_error MOM_error mom_porous_barriers::calc_eta_at_uv calc_eta_at_uv [private/internal] mom_porous_barriers::calc_por_layer calc_por_layer [private/internal] mom_porous_barriers::porous_widths_layer porous_widths_layer 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
Text view
Callers call graph
Callers of mom_porous_barriers::porous_widths_layer calls cluster_mom MOM cluster_mom_porous_barriers MOM_porous_barriers mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom_porous_barriers::porous_widths_layer porous_widths_layer mom::step_mom_dynamics->mom_porous_barriers::porous_widths_layer
Text view
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
Callees of mom_porous_barriers::porous_widths_interface calls cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_porous_barriers MOM_porous_barriers mom_checksums::interface::uvchksum uvchksum (interface) mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_mediator::interface::post_data post_data (interface) mom_error_handler::mom_error MOM_error mom_porous_barriers::calc_eta_at_uv calc_eta_at_uv [private/internal] mom_porous_barriers::calc_por_interface calc_por_interface [private/internal] mom_porous_barriers::porous_widths_interface porous_widths_interface 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
Text view
Callers call graph
Callers of mom_porous_barriers::porous_widths_interface calls cluster_mom MOM cluster_mom_porous_barriers MOM_porous_barriers mom::step_mom_thermo step_MOM_thermo [private/internal] mom_porous_barriers::porous_widths_interface porous_widths_interface mom::step_mom_thermo->mom_porous_barriers::porous_widths_interface
Text view

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
Callees of mom_porous_barriers::calc_eta_at_uv calls cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights cluster_mom_porous_barriers MOM_porous_barriers mom_error_handler::mom_error MOM_error mom_interface_heights::interface::find_eta find_eta (interface) mom_porous_barriers::calc_eta_at_uv calc_eta_at_uv [private/internal] mom_porous_barriers::calc_eta_at_uv->mom_error_handler::mom_error mom_porous_barriers::calc_eta_at_uv->mom_interface_heights::interface::find_eta
Text view
Callers call graph
Callers of mom_porous_barriers::calc_eta_at_uv calls cluster_mom_porous_barriers MOM_porous_barriers mom_porous_barriers::calc_eta_at_uv calc_eta_at_uv [private/internal] mom_porous_barriers::porous_widths_interface porous_widths_interface mom_porous_barriers::porous_widths_interface->mom_porous_barriers::calc_eta_at_uv mom_porous_barriers::porous_widths_layer porous_widths_layer mom_porous_barriers::porous_widths_layer->mom_porous_barriers::calc_eta_at_uv
Text view
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
Callers of mom_porous_barriers::calc_por_layer calls cluster_mom_porous_barriers MOM_porous_barriers mom_porous_barriers::calc_por_layer calc_por_layer [private/internal] mom_porous_barriers::porous_widths_layer porous_widths_layer mom_porous_barriers::porous_widths_layer->mom_porous_barriers::calc_por_layer
Text view
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
Callers of mom_porous_barriers::calc_por_interface calls cluster_mom_porous_barriers MOM_porous_barriers mom_porous_barriers::calc_por_interface calc_por_interface [private/internal] mom_porous_barriers::porous_widths_interface porous_widths_interface mom_porous_barriers::porous_widths_interface->mom_porous_barriers::calc_por_interface
Text view

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
Callees of mom_porous_barriers::porous_barriers_init calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_porous_barriers MOM_porous_barriers mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_porous_barriers::porous_barriers_init porous_barriers_init 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
Text view
Callers call graph
Callers of mom_porous_barriers::porous_barriers_init calls cluster_mom MOM cluster_mom_porous_barriers MOM_porous_barriers mom::initialize_mom initialize_MOM mom_porous_barriers::porous_barriers_init porous_barriers_init mom::initialize_mom->mom_porous_barriers::porous_barriers_init
Text view
API generated with Flint · Rendered from reStructuredText