MOM_continuity_PPM module reference

Solve the layer continuity equation using the PPM method for layer fluxes.

Data Types

continuity_PPM_CS

@}

cont_loop_bounds_type

A container for loop bounds

Generic Interfaces

continuity_fluxes

Finds the thickness fluxes from the continuity solver or their vertical sum without actually updating the layer thicknesses.

Functions/Subroutines

continuity_PPM

Time steps the layer thicknesses, using a monotonically limit, directionally split PPM scheme, based on Lin (1994).

continuity_3d_fluxes

Finds the thickness fluxes from the continuity solver without actually updating the layer thicknesses. Because the fluxes in the two directions are calculated based on the input thicknesses, which are not updated between the direcitons, the fluxes returned here are not the same as those that would be returned by a call to continuity.

continuity_2d_fluxes

Find the vertical sum of the thickness fluxes from the continuity solver without actually updating the layer thicknesses. Because the fluxes in the two directions are calculated based on the input thicknesses, which are not updated between the directions, the fluxes returned here are not the same as those that would be returned by a call to continuity.

continuity_adjust_vel

Correct the velocities to give the specified depth-integrated transports by applying a barotropic acceleration (subject to viscous drag) to the velocities.

continuity_zonal_convergence

Updates the thicknesses due to zonal thickness fluxes.

continuity_merdional_convergence

Updates the thicknesses due to meridional thickness fluxes.

zonal_edge_thickness

Set the reconstructed thicknesses at the eastern and western edges of tracer cells.

meridional_edge_thickness

Set the reconstructed thicknesses at the eastern and western edges of tracer cells.

zonal_mass_flux

Calculates the mass or volume fluxes through the zonal faces, and other related quantities.

zonal_BT_mass_flux

Calculates the vertically integrated mass or volume fluxes through the zonal faces.

flux_elem

Evaluate the mass or volume flux through a single face of an element.

flux_elem_OBC

Overrides the zonal or meridional mass or volume flux through a single face of an element with the value set by an open boundary condition.

zonal_flux_thickness

Sets the effective interface thickness associated with the fluxes at each zonal velocity point, optionally scaling back these thicknesses to account for viscosity and fractional open areas.

zonal_flux_adjust

Returns the barotropic velocity adjustment that gives the desired barotropic (layer-summed) transport.

set_zonal_BT_cont

Sets a structure that describes the zonal barotropic volume or mass fluxes as a function of barotropic flow to agree closely with the sum of the layer's transports.

meridional_mass_flux

Calculates the mass or volume fluxes through the meridional faces, and other related quantities.

meridional_BT_mass_flux

Calculates the vertically integrated mass or volume fluxes through the meridional faces.

meridional_flux_thickness

Sets the effective interface thickness associated with the fluxes at each meridional velocity point, optionally scaling back these thicknesses to account for viscosity and fractional open areas.

meridional_flux_adjust

Returns the barotropic velocity adjustment that gives the desired barotropic (layer-summed) transport.

set_merid_BT_cont

Sets of a structure that describes the meridional barotropic volume or mass fluxes as a function of barotropic flow to agree closely with the sum of the layer's transports.

PPM_reconstruction_x

Calculates left/right edge values for PPM reconstruction.

PPM_reconstruction_y

Calculates left/right edge values for PPM reconstruction.

PPM_limit_pos

This subroutine limits the left/right edge values of the PPM reconstruction to give a reconstruction that is positive-definite. Here this is reinterpreted as giving a constant thickness if the mean thickness is less than h_min, with a minimum of h_min otherwise.

PPM_limit_CW84

This subroutine limits the left/right edge values of the PPM reconstruction according to the monotonic prescription of Colella and Woodward, 1984.

ratio_max

Return the maximum ratio of a/b or maxrat.

continuity_PPM_init

Initializes continuity_ppm_cs

continuity_PPM_stencil

continuity_PPM_stencil returns the continuity solver stencil size

set_continuity_loop_bounds

Set up a structure that stores the sizes of the i- and j-loops to to work on in the continuity solver.

Detailed Description

This module contains the subroutines that advect layer thickness. The scheme here uses a Piecewise-Parabolic method with a positive definite limiter.

Type Documentation

type, public :: continuity_PPM_CS

@}

Control structure for mom_continuity_ppm

Parameters
  • initialized

    True if this control structure has been initialized.

  • diag

    Diagnostics control structure.

  • upwind_1st

    If true, use a first-order upwind scheme.

  • monotonic

    If true, use the Colella & Woodward monotonic limiter; otherwise use a simple positive definite limiter.

  • simple_2nd

    If true, use a simple second order (arithmetic mean) interpolation of the edge values instead of the higher order interpolation.

  • tol_eta

    The tolerance for free-surface height discrepancies between the barotropic solution and the sum of the layer thicknesses [H ~> m or kg m-2].

  • tol_vel

    The tolerance for barotropic velocity discrepancies between the barotropic solution and the sum of the layer thicknesses [L T-1 ~> m s-1].

  • CFL_limit_adjust

    The maximum CFL of the adjusted velocities [nondim]

  • h_marg_min

    Negligible floor on h_marg, the marginal thickness used to calculate the partial derivative of transports with velocities [H ~> m or kg m-2]

  • aggress_adjust

    If true, allow the adjusted velocities to have a relative CFL change up to 0.5. False by default.

  • vol_CFL

    If true, use the ratio of the open face lengths to the tracer cell areas when estimating CFL numbers. Without aggress_adjust, the default is false; it is always true with.

  • better_iter

    If true, stop corrective iterations using a velocity-based criterion and only stop if the iteration is better than all predecessors.

  • use_visc_rem_max

    If true, use more appropriate limiting bounds for corrections in strongly viscous columns.

  • marginal_faces

    If true, use the marginal face areas from the continuity solver for use as the weights in the barotropic solver. Otherwise use the transport averaged areas.

  • niblock

    The i block size used in array calculations.

  • njblock

    The j block size used in array calculations.

  • nkblock

    The k block size used in reconstruction calculations.

type, public :: cont_loop_bounds_type

A container for loop bounds

Parameters
  • ish

    Loop bounds

  • ieh

    Loop bounds

  • jsh

    Loop bounds

  • jeh

    Loop bounds

Generic Interface Documentation

interface continuity_fluxes

Finds the thickness fluxes from the continuity solver or their vertical sum without actually updating the layer thicknesses.

Functions/Subroutine Documentation

subroutine continuity_PPM(u, v, hin, h, uh, vh, dt, G, GV, US, CS, OBC, pbv, uhbt, vhbt, visc_rem_u, visc_rem_v, u_cor, v_cor, BT_cont, du_cor, dv_cor)

Time steps the layer thicknesses, using a monotonically limit, directionally split PPM scheme, based on Lin (1994).

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    Vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • hin [in]

    Initial layer thickness [H ~> m or kg m-2].

  • h [inout]

    Final layer thickness [H ~> m or kg m-2].

  • uh [out]

    Zonal volume flux, u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vh [out]

    Meridional volume flux, v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Module's control structure.

  • OBC

    Open boundaries control structure.

  • pbv [in]

    pointers to porous barrier fractional cell metrics

  • uhbt [in]

    The summed volume flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt [in]

    The summed volume flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • visc_rem_u [in]

    The fraction of zonal momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_u is between 0 (at the bottom) and 1 (far above the bottom).

  • visc_rem_v [in]

    The fraction of meridional momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_v is between 0 (at the bottom) and 1 (far above the bottom).

  • u_cor [out]

    The zonal velocities that give uhbt as the depth-integrated transport [L T-1 ~> m s-1].

  • v_cor [out]

    The meridional velocities that give vhbt as the depth-integrated transport [L T-1 ~> m s-1].

  • BT_cont

    A structure with elements that describe the effective open face areas as a function of barotropic flow.

  • du_cor [out]

    The zonal velocity increments from u that give uhbt as the depth-integrated transports [L T-1 ~> m s-1].

  • dv_cor [out]

    The meridional velocity increments from v that give vhbt as the depth-integrated transports [L T-1 ~> m s-1].

Callees call graph
Callees of mom_continuity_ppm::continuity_ppm calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_error_handler MOM_error_handler mom_continuity_ppm::continuity_merdional_convergence continuity_merdional_convergence mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::continuity_merdional_convergence mom_continuity_ppm::continuity_zonal_convergence continuity_zonal_convergence mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::continuity_zonal_convergence mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::meridional_mass_flux mom_continuity_ppm::set_continuity_loop_bounds set_continuity_loop_bounds mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::set_continuity_loop_bounds mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::zonal_mass_flux mom_error_handler::mom_error MOM_error mom_continuity_ppm::continuity_ppm->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_continuity_ppm::continuity_ppm calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 mom_continuity_ppm::continuity_ppm continuity_PPM mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_continuity_ppm::continuity_ppm mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_continuity_ppm::continuity_ppm mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_continuity_ppm::continuity_ppm mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_continuity_ppm::continuity_ppm mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 step_MOM_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2->mom_continuity_ppm::continuity_ppm
Text view
subroutine continuity_3d_fluxes(u, v, h, uh, vh, dt, G, GV, US, CS, OBC, pbv)

Finds the thickness fluxes from the continuity solver without actually updating the layer thicknesses. Because the fluxes in the two directions are calculated based on the input thicknesses, which are not updated between the direcitons, the fluxes returned here are not the same as those that would be returned by a call to continuity.

Parameters
  • G [inout]

    Ocean grid structure.

  • GV [in]

    Vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • h [in]

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

  • uh [out]

    Thickness fluxes through zonal faces, u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vh [out]

    Thickness fluxes through meridional faces, v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Control structure for mom_continuity.

  • OBC

    Open boundaries control structure.

  • pbv [in]

    porous barrier fractional cell metrics

Callees call graph
Callees of mom_continuity_ppm::continuity_3d_fluxes calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_3d_fluxes continuity_3d_fluxes [private/internal] mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::meridional_mass_flux mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::zonal_mass_flux
Text view
subroutine continuity_2d_fluxes(u, v, h, uhbt, vhbt, dt, G, GV, US, CS, OBC, pbv)

Find the vertical sum of the thickness fluxes from the continuity solver without actually updating the layer thicknesses. Because the fluxes in the two directions are calculated based on the input thicknesses, which are not updated between the directions, the fluxes returned here are not the same as those that would be returned by a call to continuity.

Parameters
  • G [inout]

    Ocean grid structure.

  • GV [in]

    Vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • h [in]

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

  • uhbt [out]

    Vertically summed thickness flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt [out]

    Vertically summed thickness flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Control structure for mom_continuity.

  • OBC

    Open boundaries control structure.

  • pbv [in]

    porous barrier fractional cell metrics

Callees call graph
Callees of mom_continuity_ppm::continuity_2d_fluxes calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_2d_fluxes continuity_2d_fluxes [private/internal] mom_continuity_ppm::meridional_bt_mass_flux meridional_BT_mass_flux mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::meridional_bt_mass_flux mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::zonal_bt_mass_flux zonal_BT_mass_flux mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::zonal_bt_mass_flux mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::zonal_edge_thickness
Text view
subroutine continuity_adjust_vel(u, v, h, dt, G, GV, US, CS, OBC, pbv, uhbt, vhbt, visc_rem_u, visc_rem_v)

Correct the velocities to give the specified depth-integrated transports by applying a barotropic acceleration (subject to viscous drag) to the velocities.

Parameters
  • G [inout]

    Ocean grid structure.

  • GV [in]

    Vertical grid structure.

  • u [inout]

    Zonal velocity, which will be adjusted to give uhbt as the depth-integrated transport [L T-1 ~> m s-1].

  • v [inout]

    Meridional velocity, which will be adjusted to give vhbt as the depth-integrated transport [L T-1 ~> m s-1].

  • h [in]

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

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Control structure for mom_continuity.

  • OBC

    Open boundaries control structure.

  • pbv [in]

    porous barrier fractional cell metrics

  • uhbt [in]

    The vertically summed thickness flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt [in]

    The vertically summed thickness flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • visc_rem_u [in]

    Both the fraction of the zonal momentum that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. This goes between 0 (at the bottom) and 1 (far above the bottom). When this column is under an ice shelf, this also goes to 0 at the top due to the no-slip boundary condition there.

  • visc_rem_v [in]

    Both the fraction of the meridional momentum that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. This goes between 0 (at the bottom) and 1 (far above the bottom). When this column is under an ice shelf, this also goes to 0 at the top due to the no-slip boundary condition there.

  • u_in

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

  • v_in

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

  • uh

    Volume flux through zonal faces = u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vh

    Volume flux through meridional faces = v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1].

Callees call graph
Callees of mom_continuity_ppm::continuity_adjust_vel calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_adjust_vel continuity_adjust_vel mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::meridional_mass_flux mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::zonal_mass_flux
Text view
subroutine continuity_zonal_convergence(h, uh, dt, G, GV, LB, hin, hmin)

Updates the thicknesses due to zonal thickness fluxes.

Parameters
  • G [in]

    Ocean's grid structure

  • GV [in]

    Ocean's vertical grid structure

  • h [inout]

    Final layer thickness [H ~> m or kg m-2]

  • uh [in]

    Zonal thickness flux, u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1]

  • dt [in]

    Time increment [T ~> s]

  • LB [in]

    Loop bounds structure

  • hin [in]

    Initial layer thickness [H ~> m or kg m-2]. If hin is absent, h is also the initial thickness.

  • hmin [in]

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

Callees call graph
Callees of mom_continuity_ppm::continuity_zonal_convergence calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::continuity_zonal_convergence continuity_zonal_convergence mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::continuity_zonal_convergence->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::continuity_zonal_convergence->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::continuity_zonal_convergence calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_zonal_convergence continuity_zonal_convergence mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::continuity_zonal_convergence
Text view
subroutine continuity_merdional_convergence(h, vh, dt, G, GV, LB, hin, hmin)

Updates the thicknesses due to meridional thickness fluxes.

Parameters
  • G [in]

    Ocean's grid structure

  • GV [in]

    Ocean's vertical grid structure

  • h [inout]

    Final layer thickness [H ~> m or kg m-2]

  • vh [in]

    Meridional thickness flux, v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1]

  • dt [in]

    Time increment [T ~> s]

  • LB [in]

    Loop bounds structure

  • hin [in]

    Initial layer thickness [H ~> m or kg m-2]. If hin is absent, h is also the initial thickness.

  • hmin [in]

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

Callees call graph
Callees of mom_continuity_ppm::continuity_merdional_convergence calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::continuity_merdional_convergence continuity_merdional_convergence mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::continuity_merdional_convergence->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::continuity_merdional_convergence->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::continuity_merdional_convergence calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_merdional_convergence continuity_merdional_convergence mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::continuity_merdional_convergence
Text view
subroutine zonal_edge_thickness(h_in, h_W, h_E, G, GV, US, CS, OBC, LB_in)

Set the reconstructed thicknesses at the eastern and western edges of tracer cells.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

    Tracer cell layer thickness [H ~> m or kg m-2].

  • h_W [out]

    Western edge layer thickness [H ~> m or kg m-2].

  • h_E [out]

    Eastern edge layer thickness [H ~> m or kg m-2].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • OBC

    Open boundaries control structure.

  • LB_in [in]

    Loop bounds structure.

Callees call graph
Callees of mom_continuity_ppm::zonal_edge_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::zonal_edge_thickness->mom_continuity_ppm::ppm_reconstruction_x mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::zonal_edge_thickness->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::zonal_edge_thickness->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::zonal_edge_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_2d_fluxes continuity_2d_fluxes [private/internal] mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::continuity_3d_fluxes continuity_3d_fluxes [private/internal] mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::continuity_adjust_vel continuity_adjust_vel mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::zonal_edge_thickness mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::zonal_edge_thickness
Text view
subroutine meridional_edge_thickness(h_in, h_S, h_N, G, GV, US, CS, OBC, LB_in)

Set the reconstructed thicknesses at the eastern and western edges of tracer cells.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

    Tracer cell layer thickness [H ~> m or kg m-2].

  • h_S [out]

    Southern edge layer thickness [H ~> m or kg m-2].

  • h_N [out]

    Northern edge layer thickness [H ~> m or kg m-2].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • OBC

    Open boundaries control structure.

  • LB_in [in]

    Loop bounds structure.

Callees call graph
Callees of mom_continuity_ppm::meridional_edge_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_continuity_ppm::meridional_edge_thickness->mom_continuity_ppm::ppm_reconstruction_y mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::meridional_edge_thickness->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::meridional_edge_thickness->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::meridional_edge_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_2d_fluxes continuity_2d_fluxes [private/internal] mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::continuity_3d_fluxes continuity_3d_fluxes [private/internal] mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::continuity_adjust_vel continuity_adjust_vel mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::meridional_edge_thickness mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::meridional_edge_thickness
Text view
subroutine zonal_mass_flux(u, h_in, h_W, h_E, uh, dt, G, GV, US, CS, OBC, por_face_areaU, nIIB, njj, LB_in, uhbt, visc_rem_u, u_cor, BT_cont, du_cor)

Calculates the mass or volume fluxes through the zonal faces, and other related quantities.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_W [in]

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

  • h_E [in]

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

  • uh [out]

    Volume flux through zonal faces = u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • OBC

    Open boundaries control structure.

  • por_face_areaU [in]

    fractional open area of U-faces [nondim]

  • nIIB [in]

    I block size for array calculations.

  • njj [in]

    j block size for array calculations.

  • LB_in [in]

    Loop bounds structure.

  • uhbt [in]

    The summed volume flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • visc_rem_u [in]

    The fraction of zonal momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_u is between 0 (at the bottom) and 1 (far above the bottom).

  • u_cor [out]

    The zonal velocities (u with a barotropic correction) that give uhbt as the depth-integrated transport [L T-1 ~> m s-1]

  • BT_cont

    A structure with elements that describe the effective open face areas as a function of barotropic flow.

  • du_cor [out]

    The zonal velocity increments from u that give uhbt as the depth-integrated transports [L T-1 ~> m s-1].

  • jsb

    The j-index bounds of the current block.

  • jeb

    The j-index bounds of the current block.

  • IsbB

    The I-index bounds of the current block.

  • IebB

    The I-index bounds of the current block.

  • jje

    The block-local j- and I-index end bounds.

  • IIe

    The block-local j- and I-index end bounds.

Callees call graph
Callees of mom_continuity_ppm::zonal_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::ratio_max ratio_max [private/internal] mom_continuity_ppm::set_zonal_bt_cont set_zonal_BT_cont [private/internal] mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::zonal_flux_thickness zonal_flux_thickness mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::ratio_max mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::set_zonal_bt_cont mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::zonal_flux_adjust mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::zonal_flux_thickness mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::zonal_mass_flux->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::zonal_mass_flux->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::zonal_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_3d_fluxes continuity_3d_fluxes [private/internal] mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::zonal_mass_flux mom_continuity_ppm::continuity_adjust_vel continuity_adjust_vel mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::zonal_mass_flux mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::zonal_mass_flux
Text view
subroutine zonal_BT_mass_flux(u, h_in, h_W, h_E, uhbt, dt, G, GV, US, CS, OBC, por_face_areaU, LB_in)

Calculates the vertically integrated mass or volume fluxes through the zonal faces.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1]

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2]

  • h_W [in]

    Western edge thickness in the PPM reconstruction [H ~> m or kg m-2].

  • h_E [in]

    Eastern edge thickness in the PPM reconstruction [H ~> m or kg m-2].

  • uhbt [out]

    The summed volume flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.G

  • OBC

    Open boundary condition type specifies whether, where, and what open boundary conditions are used.

  • por_face_areaU [in]

    fractional open area of U-faces [nondim]

  • LB_in [in]

    Loop bounds structure.

Callees call graph
Callees of mom_continuity_ppm::zonal_bt_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::zonal_bt_mass_flux zonal_BT_mass_flux mom_continuity_ppm::zonal_bt_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_bt_mass_flux->mom_continuity_ppm::flux_elem_obc mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::zonal_bt_mass_flux->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::zonal_bt_mass_flux->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::zonal_bt_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_2d_fluxes continuity_2d_fluxes [private/internal] mom_continuity_ppm::zonal_bt_mass_flux zonal_BT_mass_flux mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::zonal_bt_mass_flux
Text view
elemental subroutine flux_elem(u, h, h_p1, h_L, h_L_p1, h_R, h_R_p1, uh, duhdu, visc_rem, G_dy_Cu, G_IareaT, G_IareaT_p1, G_IdxT, G_IdxT_p1, dt, vol_CFL, por_face_area, h_marg_min)

Evaluate the mass or volume flux through a single face of an element.

Parameters
  • u [in]

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

  • h [in]

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

  • h_p1 [in]

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

  • h_L [in]

    West/South edge thickness [H ~> m or kg m-2]

  • h_L_p1 [in]

    West/South edge thickness - offset by 1 [H ~> m or kg m-2]

  • h_R [in]

    East/North edge thickness [H ~> m or kg m-2]

  • h_R_p1 [in]

    East/North edge thickness - offset by 1 [H ~> m or kg m-2]

  • uh [out]

    Zonal or meridional mass or volume transport [H L2 T-1 ~> m3 s-1 or kg s-1]

  • duhdu [out]

    Partial derivative of uh with u [H L ~> m2 or kg m-1]

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom). [nondim]

  • G_dy_Cu [in]

    The grid cell's unblocked lengths of u/v-faces of the h-cell [L ~> m]

  • G_IareaT [in]

    The grid cell's 1/areaT [L-2 ~> m-2]

  • G_IareaT_p1 [in]

    The grid cell's 1/areaT - offset by 1 [L-2 ~> m-2]

  • G_IdxT [in]

    The grid cell's 1/dxT [L-1 ~> m-1]

  • G_IdxT_p1 [in]

    The grid cell's 1/dxT - offset by 1 [L-1 ~> m-1]

  • dt [in]

    Time increment [T ~> s]

  • vol_CFL [in]

    If true, rescale the ratio of face areas to the cell areas when estimating the CFL number

  • por_face_area [in]

    fractional open area of U/V-faces [nondim]

  • h_marg_min [in]

    Negligible floor on h_marg [H ~> m or kg m-2]

Callers call graph
Callers of mom_continuity_ppm::flux_elem calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::meridional_bt_mass_flux meridional_BT_mass_flux mom_continuity_ppm::meridional_bt_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::meridional_flux_adjust->mom_continuity_ppm::flux_elem mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::set_merid_bt_cont set_merid_BT_cont [private/internal] mom_continuity_ppm::set_merid_bt_cont->mom_continuity_ppm::flux_elem mom_continuity_ppm::set_zonal_bt_cont set_zonal_BT_cont [private/internal] mom_continuity_ppm::set_zonal_bt_cont->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_bt_mass_flux zonal_BT_mass_flux mom_continuity_ppm::zonal_bt_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::zonal_flux_adjust->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::flux_elem
Text view
elemental subroutine flux_elem_OBC(u, h, h_p1, uh, duhdu, visc_rem, por_face_area, G_dy_Cu, OBC, l_seg, h_marg_min)

Overrides the zonal or meridional mass or volume flux through a single face of an element with the value set by an open boundary condition.

Parameters
  • u [in]

    Zonal/meridional velocity [L T-1 ~> m s-1].

  • h [in]

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

  • h_p1 [in]

    Layer thickness offset by 1 [H ~> m or kg m-2].

  • uh [inout]

    Zonal/meridional mass or volume transport [H L2 T-1 ~> m3 s-1 or kg s-1].

  • duhdu [inout]

    Partial derivative of uh with u [H L ~> m2 or kg m-1].

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom). [nondim]

  • por_face_area [in]

    fractional open area of U/V-faces [nondim].

  • G_dy_Cu [in]

    The grid cell's unblocked lengths of the u/v-faces of the h-cell [L ~> m]. ratio of face areas to the cell areas when estimating the CFL number.

  • OBC [in]

    Open boundaries control structure.

  • l_seg [in]

    Segment index.

  • h_marg_min [in]

    Negligible floor on h [H ~> m or kg m-2]

Callers call graph
Callers of mom_continuity_ppm::flux_elem_obc calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::meridional_bt_mass_flux meridional_BT_mass_flux mom_continuity_ppm::meridional_bt_mass_flux->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::meridional_flux_adjust->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::zonal_bt_mass_flux zonal_BT_mass_flux mom_continuity_ppm::zonal_bt_mass_flux->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::zonal_flux_adjust->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::flux_elem_obc
Text view
subroutine zonal_flux_thickness(u, h, h_W, h_E, h_u, dt, G, GV, US, LB, vol_CFL, marginal, OBC, por_face_areaU, visc_rem_u)

Sets the effective interface thickness associated with the fluxes at each zonal velocity point, optionally scaling back these thicknesses to account for viscosity and fractional open areas.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • h [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_W [in]

    West edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_E [in]

    East edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_u [inout]

    Effective thickness at zonal faces, scaled down to account for the effects of viscosity and the fractional open area [H ~> m or kg m-2].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • LB [in]

    Loop bounds structure.

  • vol_CFL [in]

    If true, rescale the ratio of face areas to the cell areas when estimating the CFL number.

  • marginal [in]

    If true, report the marginal face thicknesses; otherwise report transport-averaged thicknesses.

  • por_face_areaU [in]

    fractional open area of U-faces [nondim]

  • OBC

    Open boundaries control structure.

  • visc_rem_u [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_u is between 0 (at the bottom) and 1 (far above the bottom).

Callers call graph
Callers of mom_continuity_ppm::zonal_flux_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::zonal_flux_thickness zonal_flux_thickness mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::zonal_flux_thickness
Text view
subroutine zonal_flux_adjust(u, h_in, h_W, h_E, uhbt, uh_tot_0, duhdu_tot_0, du, du_max_CFL, du_min_CFL, dt, G, GV, US, CS, visc_rem, IsbB, IebB, jsb, jeb, do_ij_in, por_face_areaU, nIIB, njj, uh_3d, OBC)

Returns the barotropic velocity adjustment that gives the desired barotropic (layer-summed) transport.

Parameters
  • nIIB [in]

    I block size for array calculations.

  • njj [in]

    j block size for array calculations.

  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_W [in]

    West edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_E [in]

    East edge thickness in the reconstruction [H ~> m or kg m-2].

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom).

  • uhbt [in]

    The summed volume flux through zonal faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • du_max_CFL [in]

    Maximum acceptable value of du [L T-1 ~> m s-1].

  • du_min_CFL [in]

    Minimum acceptable value of du [L T-1 ~> m s-1].

  • uh_tot_0 [in]

    The summed transport with 0 adjustment [H L2 T-1 ~> m3 s-1 or kg s-1].

  • duhdu_tot_0 [in]

    The partial derivative of du_err with du at 0 adjustment [H L ~> m2 or kg m-1].

  • du [out]

    The barotropic velocity adjustment [L T-1 ~> m s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • IsbB [in]

    Start of I index range.

  • IebB [in]

    End of I index range.

  • jsb [in]

    Start of j index range.

  • jeb [in]

    End of j index range.

  • do_ij_in [in]

    A logical flag indicating which block points to work on.

  • por_face_areaU [in]

    fractional open area of U-faces [nondim]

  • uh_3d [inout]

    Volume flux through zonal faces = u*h*dy [H L2 T-1 ~> m3 s-1 or kg s-1].

  • OBC

    Open boundaries control structure.

Callees call graph
Callees of mom_continuity_ppm::zonal_flux_adjust calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::zonal_flux_adjust->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_flux_adjust->mom_continuity_ppm::flux_elem_obc
Text view
Callers call graph
Callers of mom_continuity_ppm::zonal_flux_adjust calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::set_zonal_bt_cont set_zonal_BT_cont [private/internal] mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::set_zonal_bt_cont->mom_continuity_ppm::zonal_flux_adjust mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::zonal_flux_adjust
Text view
subroutine set_zonal_BT_cont(u, h_in, h_W, h_E, BT_cont, uh_tot_0, duhdu_tot_0, du_max_CFL, du_min_CFL, dt, G, GV, US, CS, visc_rem, visc_rem_max, IsbB, IebB, jsb, jeb, do_ij, por_face_areaU, nIIB, njj)

Sets a structure that describes the zonal barotropic volume or mass fluxes as a function of barotropic flow to agree closely with the sum of the layer's transports.

Parameters
  • nIIB [in]

    I block size for array calculations.

  • njj [in]

    j block size for array calculations.

  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • u [in]

    Zonal velocity [L T-1 ~> m s-1].

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_W [in]

    West edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_E [in]

    East edge thickness in the reconstruction [H ~> m or kg m-2].

  • BT_cont [inout]

    A structure with elements that describe the effective open face areas as a function of barotropic flow.

  • uh_tot_0 [in]

    The summed transport with 0 adjustment [H L2 T-1 ~> m3 s-1 or kg s-1].

  • duhdu_tot_0 [in]

    The partial derivative of du_err with du at 0 adjustment [H L ~> m2 or kg m-1].

  • du_max_CFL [in]

    Maximum acceptable value of du [L T-1 ~> m s-1].

  • du_min_CFL [in]

    Minimum acceptable value of du [L T-1 ~> m s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom).

  • visc_rem_max [in]

    Maximum allowable visc_rem [nondim].

  • IsbB [in]

    Start of I index range.

  • IebB [in]

    End of I index range.

  • jsb [in]

    Start of j index range.

  • jeb [in]

    End of j index range.

  • do_ij [in]

    A logical flag indicating which block points to work on.

  • por_face_areaU [in]

    fractional open area of U-faces [nondim]

  • i

    Tile loop indices.

  • j

    Tile loop indices.

  • k

    Tile loop indices.

  • nz

    Tile loop indices.

  • II

    Tile loop indices.

  • jj

    Tile loop indices.

  • IIe

    Tile loop indices.

  • jje

    Tile loop indices.

Callees call graph
Callees of mom_continuity_ppm::set_zonal_bt_cont calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::set_zonal_bt_cont set_zonal_BT_cont [private/internal] mom_continuity_ppm::set_zonal_bt_cont->mom_continuity_ppm::flux_elem mom_continuity_ppm::zonal_flux_adjust zonal_flux_adjust [private/internal] mom_continuity_ppm::set_zonal_bt_cont->mom_continuity_ppm::zonal_flux_adjust
Text view
Callers call graph
Callers of mom_continuity_ppm::set_zonal_bt_cont calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::set_zonal_bt_cont set_zonal_BT_cont [private/internal] mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::set_zonal_bt_cont
Text view
subroutine meridional_mass_flux(v, h_in, h_S, h_N, vh, dt, G, GV, US, CS, OBC, por_face_areaV, nii, nJJB, LB_in, vhbt, visc_rem_v, v_cor, BT_cont, dv_cor)

Calculates the mass or volume fluxes through the meridional faces, and other related quantities.

Parameters
  • nii [in]

    i block size for array calculations.

  • nJJB [in]

    J block size for array calculations.

  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • v [in]

    Meridional velocity [L T-1 ~> m s-1]

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2]

  • h_S [in]

    South edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_N [in]

    North edge thickness in the reconstruction [H ~> m or kg m-2].

  • vh [out]

    Volume flux through meridional faces = v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1]

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.G

  • OBC

    Open boundary condition type specifies whether, where, and what open boundary conditions are used.

  • por_face_areaV [in]

    fractional open area of V-faces [nondim]

  • LB_in [in]

    Loop bounds structure.

  • vhbt [in]

    The summed volume flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • visc_rem_v [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_v is between 0 (at the bottom) and 1 (far above the bottom).

  • v_cor [out]

    The meridional velocities (v with a barotropic correction) that give vhbt as the depth-integrated transport [L T-1 ~> m s-1].

  • BT_cont

    A structure with elements that describe the effective open face areas as a function of barotropic flow.

  • dv_cor [out]

    The meridional velocity increments from v that give vhbt as the depth-integrated transports [L T-1 ~> m s-1].

Callees call graph
Callees of mom_continuity_ppm::meridional_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::meridional_flux_thickness meridional_flux_thickness mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::flux_elem_obc mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::meridional_flux_adjust mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::meridional_flux_thickness mom_continuity_ppm::ratio_max ratio_max [private/internal] mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::ratio_max mom_continuity_ppm::set_merid_bt_cont set_merid_BT_cont [private/internal] mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::set_merid_bt_cont mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::meridional_mass_flux->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::meridional_mass_flux->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::meridional_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_3d_fluxes continuity_3d_fluxes [private/internal] mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::continuity_3d_fluxes->mom_continuity_ppm::meridional_mass_flux mom_continuity_ppm::continuity_adjust_vel continuity_adjust_vel mom_continuity_ppm::continuity_adjust_vel->mom_continuity_ppm::meridional_mass_flux mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::meridional_mass_flux
Text view
subroutine meridional_BT_mass_flux(v, h_in, h_S, h_N, vhbt, dt, G, GV, US, CS, OBC, por_face_areaV, LB_in)

Calculates the vertically integrated mass or volume fluxes through the meridional faces.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • v [in]

    Meridional velocity [L T-1 ~> m s-1]

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2]

  • h_S [in]

    Southern edge thickness in the PPM reconstruction [H ~> m or kg m-2].

  • h_N [in]

    Northern edge thickness in the PPM reconstruction [H ~> m or kg m-2].

  • vhbt [out]

    The summed volume flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • OBC

    Open boundary condition type specifies whether, where, and what open boundary conditions are used.

  • por_face_areaV [in]

    fractional open area of V-faces [nondim]

  • LB_in [in]

    Loop bounds structure.

Callees call graph
Callees of mom_continuity_ppm::meridional_bt_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::meridional_bt_mass_flux meridional_BT_mass_flux mom_continuity_ppm::meridional_bt_mass_flux->mom_continuity_ppm::flux_elem mom_continuity_ppm::meridional_bt_mass_flux->mom_continuity_ppm::flux_elem_obc mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_continuity_ppm::meridional_bt_mass_flux->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_continuity_ppm::meridional_bt_mass_flux->mom_cpu_clock_infra::cpu_clock_end
Text view
Callers call graph
Callers of mom_continuity_ppm::meridional_bt_mass_flux calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_2d_fluxes continuity_2d_fluxes [private/internal] mom_continuity_ppm::meridional_bt_mass_flux meridional_BT_mass_flux mom_continuity_ppm::continuity_2d_fluxes->mom_continuity_ppm::meridional_bt_mass_flux
Text view
subroutine meridional_flux_thickness(v, h, h_S, h_N, h_v, dt, G, GV, US, LB, vol_CFL, marginal, OBC, por_face_areaV, visc_rem_v)

Sets the effective interface thickness associated with the fluxes at each meridional velocity point, optionally scaling back these thicknesses to account for viscosity and fractional open areas.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • h [in]

    Layer thickness used to calculate fluxes, [H ~> m or kg m-2].

  • h_S [in]

    South edge thickness in the reconstruction, [H ~> m or kg m-2].

  • h_N [in]

    North edge thickness in the reconstruction, [H ~> m or kg m-2].

  • h_v [inout]

    Effective thickness at meridional faces, scaled down to account for the effects of viscosity and the fractional open area [H ~> m or kg m-2].

  • dt [in]

    Time increment [T ~> s].

  • LB [in]

    Loop bounds structure.

  • US [in]

    A dimensional unit scaling type

  • vol_CFL [in]

    If true, rescale the ratio of face areas to the cell areas when estimating the CFL number.

  • marginal [in]

    If true, report the marginal face thicknesses; otherwise report transport-averaged thicknesses.

  • OBC

    Open boundaries control structure.

  • por_face_areaV [in]

    fractional open area of V-faces [nondim]

  • visc_rem_v [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem_v is between 0 (at the bottom) and 1 (far above the bottom).

Callers call graph
Callers of mom_continuity_ppm::meridional_flux_thickness calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::meridional_flux_thickness meridional_flux_thickness mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::meridional_flux_thickness
Text view
subroutine meridional_flux_adjust(v, h_in, h_S, h_N, vhbt, vh_tot_0, dvhdv_tot_0, dv, dv_max_CFL, dv_min_CFL, dt, G, GV, US, CS, visc_rem, isb, ieb, JsbB, JebB, do_ij_in, por_face_areaV, nii, nJJB, vh_3d, OBC)

Returns the barotropic velocity adjustment that gives the desired barotropic (layer-summed) transport.

Parameters
  • nii [in]

    i block size for array calculations.

  • nJJB [in]

    J block size for array calculations.

  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_S [in]

    South edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_N [in]

    North edge thickness in the reconstruction [H ~> m or kg m-2].

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom).

  • vhbt [in]

    The summed volume flux through meridional faces [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dv_max_CFL [in]

    Maximum acceptable value of dv [L T-1 ~> m s-1].

  • dv_min_CFL [in]

    Minimum acceptable value of dv [L T-1 ~> m s-1].

  • vh_tot_0 [in]

    The summed transport with 0 adjustment [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dvhdv_tot_0 [in]

    The partial derivative of dv_err with dv at 0 adjustment [H L ~> m2 or kg m-1].

  • dv [out]

    The barotropic velocity adjustment [L T-1 ~> m s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • JsbB [in]

    Start of J index range.

  • JebB [in]

    End of J index range.

  • isb [in]

    Start of i index range.

  • ieb [in]

    End of i index range.

  • do_ij_in [in]

    A flag indicating which block points to work on.

  • por_face_areaV [in]

    fractional open area of V-faces [nondim]

  • vh_3d [inout]

    Volume flux through meridional faces = v*h*dx [H L2 T-1 ~> m3 s-1 or kg s-1].

  • OBC

    Open boundaries control structure.

Callees call graph
Callees of mom_continuity_ppm::meridional_flux_adjust calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::flux_elem_obc flux_elem_OBC [private/internal] mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::meridional_flux_adjust->mom_continuity_ppm::flux_elem mom_continuity_ppm::meridional_flux_adjust->mom_continuity_ppm::flux_elem_obc
Text view
Callers call graph
Callers of mom_continuity_ppm::meridional_flux_adjust calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::meridional_flux_adjust mom_continuity_ppm::set_merid_bt_cont set_merid_BT_cont [private/internal] mom_continuity_ppm::set_merid_bt_cont->mom_continuity_ppm::meridional_flux_adjust
Text view
subroutine set_merid_BT_cont(v, h_in, h_S, h_N, BT_cont, vh_tot_0, dvhdv_tot_0, dv_max_CFL, dv_min_CFL, dt, G, GV, US, CS, visc_rem, visc_rem_max, isb, ieb, JsbB, JebB, do_ij, por_face_areaV, nii, nJJB)

Sets of a structure that describes the meridional barotropic volume or mass fluxes as a function of barotropic flow to agree closely with the sum of the layer's transports.

Parameters
  • nii [in]

    i block size for array calculations.

  • nJJB [in]

    J block size for array calculations.

  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • v [in]

    Meridional velocity [L T-1 ~> m s-1].

  • h_in [in]

    Layer thickness used to calculate fluxes [H ~> m or kg m-2].

  • h_S [in]

    South edge thickness in the reconstruction [H ~> m or kg m-2].

  • h_N [in]

    North edge thickness in the reconstruction [H ~> m or kg m-2].

  • BT_cont [inout]

    A structure with elements that describe the effective open face areas as a function of barotropic flow.

  • vh_tot_0 [in]

    The summed transport with 0 adjustment [H L2 T-1 ~> m3 s-1 or kg s-1].

  • dvhdv_tot_0 [in]

    The partial derivative of du_err with dv at 0 adjustment [H L ~> m2 or kg m-1].

  • dv_max_CFL [in]

    Maximum acceptable value of dv [L T-1 ~> m s-1].

  • dv_min_CFL [in]

    Minimum acceptable value of dv [L T-1 ~> m s-1].

  • dt [in]

    Time increment [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    This module's control structure.

  • visc_rem [in]

    Both the fraction of the momentum originally in a layer that remains after a time-step of viscosity, and the fraction of a time-step's worth of a barotropic acceleration that a layer experiences after viscosity is applied [nondim]. Visc_rem is between 0 (at the bottom) and 1 (far above the bottom).

  • visc_rem_max [in]

    Maximum allowable visc_rem [nondim].

  • JsbB [in]

    Start of J index range.

  • JebB [in]

    End of J index range.

  • isb [in]

    Start of i index range.

  • ieb [in]

    End of i index range.

  • do_ij [in]

    A logical flag indicating which block points to work on.

  • por_face_areaV [in]

    fractional open area of V-faces [nondim]

Callees call graph
Callees of mom_continuity_ppm::set_merid_bt_cont calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::flux_elem flux_elem [private/internal] mom_continuity_ppm::meridional_flux_adjust meridional_flux_adjust [private/internal] mom_continuity_ppm::set_merid_bt_cont set_merid_BT_cont [private/internal] mom_continuity_ppm::set_merid_bt_cont->mom_continuity_ppm::flux_elem mom_continuity_ppm::set_merid_bt_cont->mom_continuity_ppm::meridional_flux_adjust
Text view
Callers call graph
Callers of mom_continuity_ppm::set_merid_bt_cont calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::set_merid_bt_cont set_merid_BT_cont [private/internal] mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::set_merid_bt_cont
Text view
subroutine PPM_reconstruction_x(h_in, h_W, h_E, G, GV, LB, nkk, h_min, monotonic, simple_2nd, OBC)

Calculates left/right edge values for PPM reconstruction.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

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

  • h_W [out]

    West edge thickness in the reconstruction, [H ~> m or kg m-2].

  • h_E [out]

    East edge thickness in the reconstruction, [H ~> m or kg m-2].

  • LB [in]

    Active loop bounds structure.

  • nkk [in]

    k block size for reconstruction calculations.

  • h_min [in]

    The minimum thickness that can be obtained by a concave parabolic fit [H ~> m or kg m-2]

  • monotonic [in]

    If true, use the Colella & Woodward monotonic limiter. Otherwise use a simple positive-definite limiter.

  • simple_2nd [in]

    If true, use the arithmetic mean thicknesses as the default edge values for a simple 2nd order scheme.

  • OBC

    Open boundaries control structure.

  • k

    vertical grid and k-block indices

  • kk

    vertical grid and k-block indices

Callees call graph
Callees of mom_continuity_ppm::ppm_reconstruction_x calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_error_handler MOM_error_handler mom_continuity_ppm::ppm_limit_cw84 PPM_limit_CW84 [private/internal] mom_continuity_ppm::ppm_limit_pos PPM_limit_pos [private/internal] mom_continuity_ppm::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_continuity_ppm::ppm_reconstruction_x->mom_continuity_ppm::ppm_limit_cw84 mom_continuity_ppm::ppm_reconstruction_x->mom_continuity_ppm::ppm_limit_pos mom_error_handler::mom_error MOM_error mom_continuity_ppm::ppm_reconstruction_x->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_continuity_ppm::ppm_reconstruction_x calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_continuity_ppm::zonal_edge_thickness zonal_edge_thickness mom_continuity_ppm::zonal_edge_thickness->mom_continuity_ppm::ppm_reconstruction_x
Text view
subroutine PPM_reconstruction_y(h_in, h_S, h_N, G, GV, LB, nkk, h_min, monotonic, simple_2nd, OBC)

Calculates left/right edge values for PPM reconstruction.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

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

  • h_S [out]

    South edge thickness in the reconstruction, [H ~> m or kg m-2].

  • h_N [out]

    North edge thickness in the reconstruction, [H ~> m or kg m-2].

  • LB [in]

    Active loop bounds structure.

  • nkk [in]

    k block size for reconstruction calculations.

  • h_min [in]

    The minimum thickness that can be obtained by a concave parabolic fit [H ~> m or kg m-2]

  • monotonic [in]

    If true, use the Colella & Woodward monotonic limiter. Otherwise use a simple positive-definite limiter.

  • simple_2nd [in]

    If true, use the arithmetic mean thicknesses as the default edge values for a simple 2nd order scheme.

  • OBC

    Open boundaries control structure.

  • k

    vertical grid and k-block indices

  • kk

    vertical grid and k-block indices

Callees call graph
Callees of mom_continuity_ppm::ppm_reconstruction_y calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_error_handler MOM_error_handler mom_continuity_ppm::ppm_limit_cw84 PPM_limit_CW84 [private/internal] mom_continuity_ppm::ppm_limit_pos PPM_limit_pos [private/internal] mom_continuity_ppm::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_continuity_ppm::ppm_reconstruction_y->mom_continuity_ppm::ppm_limit_cw84 mom_continuity_ppm::ppm_reconstruction_y->mom_continuity_ppm::ppm_limit_pos mom_error_handler::mom_error MOM_error mom_continuity_ppm::ppm_reconstruction_y->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_continuity_ppm::ppm_reconstruction_y calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::meridional_edge_thickness meridional_edge_thickness mom_continuity_ppm::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_continuity_ppm::meridional_edge_thickness->mom_continuity_ppm::ppm_reconstruction_y
Text view
subroutine PPM_limit_pos(h_in, h_L, h_R, h_min, G, GV, iis, iie, jis, jie, ks, ke)

This subroutine limits the left/right edge values of the PPM reconstruction to give a reconstruction that is positive-definite. Here this is reinterpreted as giving a constant thickness if the mean thickness is less than h_min, with a minimum of h_min otherwise.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

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

  • h_L [inout]

    Left thickness in the reconstruction [H ~> m or kg m-2].

  • h_R [inout]

    Right thickness in the reconstruction [H ~> m or kg m-2].

  • h_min [in]

    The minimum thickness that can be obtained by a concave parabolic fit [H ~> m or kg m-2]

  • iis [in]

    Start of i index range.

  • iie [in]

    End of i index range.

  • jis [in]

    Start of j index range.

  • jie [in]

    End of j index range.

  • ks [in]

    Start of k index range.

  • ke [in]

    End of k index range.

Callers call graph
Callers of mom_continuity_ppm::ppm_limit_pos calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::ppm_limit_pos PPM_limit_pos [private/internal] mom_continuity_ppm::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_continuity_ppm::ppm_reconstruction_x->mom_continuity_ppm::ppm_limit_pos mom_continuity_ppm::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_continuity_ppm::ppm_reconstruction_y->mom_continuity_ppm::ppm_limit_pos
Text view
subroutine PPM_limit_CW84(h_in, h_L, h_R, G, GV, iis, iie, jis, jie, ks, ke)

This subroutine limits the left/right edge values of the PPM reconstruction according to the monotonic prescription of Colella and Woodward, 1984.

Parameters
  • G [in]

    Ocean's grid structure.

  • GV [in]

    Ocean's vertical grid structure.

  • h_in [in]

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

  • h_L [inout]

    Left thickness in the reconstruction, [H ~> m or kg m-2].

  • h_R [inout]

    Right thickness in the reconstruction, [H ~> m or kg m-2].

  • iis [in]

    Start of i index range.

  • iie [in]

    End of i index range.

  • jis [in]

    Start of j index range.

  • jie [in]

    End of j index range.

  • ks [in]

    Start of k index range.

  • ke [in]

    End of k index range.

Callers call graph
Callers of mom_continuity_ppm::ppm_limit_cw84 calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::ppm_limit_cw84 PPM_limit_CW84 [private/internal] mom_continuity_ppm::ppm_reconstruction_x PPM_reconstruction_x [private/internal] mom_continuity_ppm::ppm_reconstruction_x->mom_continuity_ppm::ppm_limit_cw84 mom_continuity_ppm::ppm_reconstruction_y PPM_reconstruction_y [private/internal] mom_continuity_ppm::ppm_reconstruction_y->mom_continuity_ppm::ppm_limit_cw84
Text view
pure function ratio_max(a, b, maxrat) result(ratio)

Return the maximum ratio of a/b or maxrat.

Parameters
  • a [in]

    Numerator, in arbitrary units [A]

  • b [in]

    Denominator, in arbitrary units [B]

  • maxrat [in]

    Maximum value of ratio [A B-1]

  • ratio

    Return value [A B-1]

Callers call graph
Callers of mom_continuity_ppm::ratio_max calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::meridional_mass_flux meridional_mass_flux mom_continuity_ppm::ratio_max ratio_max [private/internal] mom_continuity_ppm::meridional_mass_flux->mom_continuity_ppm::ratio_max mom_continuity_ppm::zonal_mass_flux zonal_mass_flux mom_continuity_ppm::zonal_mass_flux->mom_continuity_ppm::ratio_max
Text view
subroutine continuity_PPM_init(Time, G, GV, US, param_file, diag, CS, OBC)

Initializes continuity_ppm_cs

Parameters
  • Time [in]

    The current model time.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    Vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure indicating the open file to parse for model parameter values.

  • diag [inout]

    A structure that is used to regulate diagnostic output.

  • CS [inout]

    Module's control structure.

  • OBC

    Open boundaries control structure.

  • n

    This include declares and sets the variable "version".

Callees call graph
Callees of mom_continuity_ppm::continuity_ppm_init calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser mom_continuity_ppm::continuity_ppm_init continuity_PPM_init mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_continuity_ppm::continuity_ppm_init->mom_cpu_clock_infra::cpu_clock_id mom_error_handler::mom_error MOM_error mom_continuity_ppm::continuity_ppm_init->mom_error_handler::mom_error mom_file_parser::interface::get_param get_param (interface) mom_continuity_ppm::continuity_ppm_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_version log_version (interface) mom_continuity_ppm::continuity_ppm_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_continuity_ppm::continuity_ppm_init calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 mom_continuity_ppm::continuity_ppm_init continuity_PPM_init mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_continuity_ppm::continuity_ppm_init mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_continuity_ppm::continuity_ppm_init mom_dynamics_unsplit::initialize_dyn_unsplit initialize_dyn_unsplit mom_dynamics_unsplit::initialize_dyn_unsplit->mom_continuity_ppm::continuity_ppm_init mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 initialize_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2->mom_continuity_ppm::continuity_ppm_init
Text view
function continuity_PPM_stencil(CS) result(stencil)

continuity_PPM_stencil returns the continuity solver stencil size

Parameters
  • CS [in]

    Module's control structure.

  • stencil

    The continuity solver stencil size with the current settings.

Callers call graph
Callers of mom_continuity_ppm::continuity_ppm_stencil calls cluster_mom_continuity_ppm MOM_continuity_PPM cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 mom_continuity_ppm::continuity_ppm_stencil continuity_PPM_stencil mom_continuity_ppm::set_continuity_loop_bounds set_continuity_loop_bounds mom_continuity_ppm::set_continuity_loop_bounds->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_unsplit::initialize_dyn_unsplit initialize_dyn_unsplit mom_dynamics_unsplit::initialize_dyn_unsplit->mom_continuity_ppm::continuity_ppm_stencil mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 initialize_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2->mom_continuity_ppm::continuity_ppm_stencil
Text view
function set_continuity_loop_bounds(G, CS, i_stencil, j_stencil) result(LB)

Set up a structure that stores the sizes of the i- and j-loops to to work on in the continuity solver.

Parameters
  • G [in]

    The ocean's grid structure.

  • CS [in]

    Module's control structure.

  • i_stencil [in]

    If present and true, extend the i-loop bounds by the stencil width of the continuity scheme.

  • j_stencil [in]

    If present and true, extend the j-loop bounds by the stencil width of the continuity scheme.

  • LB

    A type storing the array sizes to work on in the continuity routines.

Callees call graph
Callees of mom_continuity_ppm::set_continuity_loop_bounds calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_ppm_stencil continuity_PPM_stencil mom_continuity_ppm::set_continuity_loop_bounds set_continuity_loop_bounds mom_continuity_ppm::set_continuity_loop_bounds->mom_continuity_ppm::continuity_ppm_stencil
Text view
Callers call graph
Callers of mom_continuity_ppm::set_continuity_loop_bounds calls cluster_mom_continuity_ppm MOM_continuity_PPM mom_continuity_ppm::continuity_ppm continuity_PPM mom_continuity_ppm::set_continuity_loop_bounds set_continuity_loop_bounds mom_continuity_ppm::continuity_ppm->mom_continuity_ppm::set_continuity_loop_bounds
Text view
API generated with Flint · Rendered from reStructuredText