MOM_barotropic module reference

Barotropic solver

Data Types

BT_OBC_type

The barotropic stepping open boundary condition type

barotropic_CS

An integer used to encode a gradient OBC point

local_BT_cont_u_type

A description of the functional dependence of transport at a u-point

local_BT_cont_v_type

A description of the functional dependence of transport at a v-point

memory_size_type

A container for passing around active tracer point memory limits

Functions/Subroutines

btstep

This subroutine time steps the barotropic equations explicitly. For gravity waves, anything between a forwards-backwards scheme and a simulated backwards Euler scheme is used, with bebt between 0.0 and 1.0 determining the scheme. In practice, bebt must be of order 0.2 or greater. A forwards-backwards treatment of the Coriolis terms is always used.

btstep_timeloop

Update the barotropic solver through multiple time steps.

btstep_find_Cor

Find the Coriolis force terms _zon and _mer.

truncate_velocities

Do a CFL-based truncation of any excessively large batotropic velocities. This should only be used as desperate debugging measure.

btloop_eta_predictor

A routine to set eta_pred and the running time integral of uhbt and vhbt.

btloop_find_PF

btloop_add_dyn_PF

This routine adds a dynamic pressure force based on the temporal changes in the predicted value of eta, perhaps as an effective divergence damping to emulate the rigidity of an ice-sheet.

btloop_update_v

Update meridional velocity.

btloop_update_u

Update zonal velocity.

btstep_ubt_from_layer

Calculate the zonal and meridional velocity from the 3-D velocity.

btstep_layer_accel

Calculate the zonal and meridional acceleration of each layer due to the barotropic calculation.

set_dtbt

This subroutine automatically determines an optimal value for dtbt based on some state of the ocean. Either pbce or gtot_est is required to calculate gravitational acceleration. Column thickness can be estimated using BT_cont, eta, and SSH_add (default=0), with priority given in that order. The subroutine sets CS%dtbt_max and CS%dtbt.

apply_u_velocity_OBCs

This subroutine applies the open boundary conditions on barotropic zonal velocities and mass transports, as developed by Mehmet Ilicak.

apply_v_velocity_OBCs

This subroutine applies the open boundary conditions on barotropic meridional velocities and mass transports, as developed by Mehmet Ilicak.

initialize_BT_OBC

This subroutine sets up the time-invariant control information about the open boundary conditions on the full wide halo domain used by the barotropic solver.

set_up_BT_OBC

This subroutine sets up the time-varying fields in the private structure used to apply the open boundary conditions, as developed by Mehmet Ilicak.

destroy_BT_OBC

Clean up the BT_OBC memory.

btcalc

btcalc determines the fraction of the total water column in each layer at velocity points.

find_uhbt

The function find_uhbt determines the zonal transport for a given velocity, or with INTEGRAL_BT_CONT=True it determines the time-integrated zonal transport for a given time-integrated velocity.

find_duhbt_du

The function find_duhbt_du determines the marginal zonal face area for a given velocity, or with INTEGRAL_BT_CONT=True for a given time-integrated velocity.

uhbt_to_ubt

This function inverts the transport function to determine the barotopic velocity that is consistent with a given transport, or if INTEGRAL_BT_CONT=True this finds the time-integrated velocity that is consistent with a time-integrated transport.

find_vhbt

The function find_vhbt determines the meridional transport for a given velocity, or with INTEGRAL_BT_CONT=True it determines the time-integrated meridional transport for a given time-integrated velocity.

find_dvhbt_dv

The function find_dvhbt_dv determines the marginal meridional face area for a given velocity, or with INTEGRAL_BT_CONT=True for a given time-integrated velocity.

vhbt_to_vbt

This function inverts the transport function to determine the barotopic velocity that is consistent with a given transport, or if INTEGRAL_BT_CONT=True this finds the time-integrated velocity that is consistent with a time-integrated transport.

set_local_BT_cont_types

This subroutine sets up reordered versions of the BT_cont type in the local_BT_cont types, which have wide halos properly filled in.

adjust_local_BT_cont_types

Adjust_local_BT_cont_types expands the range of velocities with a cubic curve translating velocities into transports to match the initial values of velocities and summed transports when the velocities are larger than the first guesses of the cubic transition velocities used to set up the local_BT_cont types.

BT_cont_to_face_areas

This subroutine uses the BT_cont_type to find the maximum face areas, which can then be used for finding wave speeds, etc.

swap

Swap the values of two real variables

find_face_areas

This subroutine determines the open face areas of cells for calculating the barotropic transport.

bt_mass_source

bt_mass_source determines the appropriately limited mass source for the barotropic solver, along with a corrective fictitious mass source that will drive the barotropic estimate of the free surface height toward the baroclinic estimate.

barotropic_init

barotropic_init initializes a number of time-invariant fields used in the barotropic calculation and initializes any barotropic fields that have not already been initialized.

barotropic_get_tav

Copies ubtav and vbtav from private type into arrays

barotropic_end

Clean up the barotropic control structure.

register_barotropic_restarts

This subroutine is used to register any fields from MOM_barotropic.F90 that should be written to or read from the restart file.

Detailed Description

By Robert Hallberg, April 1994 - January 2007

This program contains the subroutines that time steps the linearized barotropic equations. btstep is used to actually time step the barotropic equations, and contains most of the substance of this module.

btstep uses a forwards-backwards based scheme to time step the barotropic equations, returning the layers' accelerations due to the barotropic changes in the ocean state, the final free surface height (or column mass), and the volume (or mass) fluxes summed through the layers and averaged over the baroclinic time step. As input, btstep takes the initial 3-D velocities, the initial free surface height, the 3-D accelerations of the layers, and the external forcing. Everything in btstep is cast in terms of anomalies, so if everything is in balance, there is explicitly no acceleration due to btstep.

The spatial discretization of the continuity equation is second order accurate. A flux conservative form is used to guarantee global conservation of volume. The spatial discretization of the momentum equation is second order accurate. The Coriolis force is written in a form which does not contribute to the energy tendency and which conserves linearized potential vorticity, f/D. These terms are exactly removed from the baroclinic momentum equations, so the linearization of vorticity advection will not degrade the overall solution.

btcalc calculates the fractional thickness of each layer at the velocity points, for later use in calculating the barotropic velocities and the averaged accelerations. Harmonic mean thicknesses (i.e. 2*h_L*h_R/(h_L + h_R)) are used to avoid overly strong weighting of overly thin layers. This may later be relaxed to use thicknesses determined from the continuity equations.

bt_mass_source determines the real mass sources for the barotropic solver, along with the corrective pseudo-fluxes that keep the barotropic and baroclinic estimates of the free surface height close to each other. Given the layer thicknesses and the free surface height that correspond to each other, it calculates a corrective mass source that is added to the barotropic continuity* equation, and optionally adjusts a slowly varying correction rate. Newer algorithmic changes have deemphasized the need for this, but it is still here to add net water sources to the barotropic solver.*

barotropic_init allocates and initializes any barotropic arrays that have not been read from a restart file, reads parameters from the inputfile, and sets up diagnostic fields.

barotropic_end deallocates anything allocated in barotropic_init or register_barotropic_restarts.

register_barotropic_restarts is used to indicate any fields that are private to the barotropic solver that need to be included in the restart files, and to ensure that they are read.

Type Documentation

type, private :: BT_OBC_type

The barotropic stepping open boundary condition type

Parameters
  • Cg_u

    The external wave speed at u-points [L T-1 ~> m s-1].

  • Cg_v

    The external wave speed at u-points [L T-1 ~> m s-1].

  • dZ_u

    The total vertical column extent at the u-points [Z ~> m].

  • dZ_v

    The total vertical column extent at the v-points [Z ~> m].

  • uhbt

    The zonal barotropic thickness fluxes specified for open boundary conditions (if any) [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt

    The meridional barotropic thickness fluxes specified for open boundary conditions (if any) [H L2 T-1 ~> m3 s-1 or kg s-1].

  • ubt_outer

    The zonal velocities just outside the domain, as set by the open boundary conditions [L T-1 ~> m s-1].

  • vbt_outer

    The meridional velocities just outside the domain, as set by the open boundary conditions [L T-1 ~> m s-1].

  • SSH_outer_u

    The surface height outside of the domain at a u-point with an open boundary condition [Z ~> m].

  • SSH_outer_v

    The surface height outside of the domain at a v-point with an open boundary condition [Z ~> m].

  • u_OBC_type

    An integer encoding the type and direction of u-point OBCs

  • v_OBC_type

    An integer encoding the type and direction of v-point OBCs

  • u_OBCs_on_PE

    True if this PE has an open boundary at any u-points.

  • Is_u_W_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Ie_u_W_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • js_u_W_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • je_u_W_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Is_u_E_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Ie_u_E_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • js_u_E_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • je_u_E_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • is_v_S_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • ie_v_S_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Js_v_S_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Je_v_S_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • is_v_N_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • ie_v_N_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Js_v_N_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • Je_v_N_obc

    Index ranges on the local PE for the open boundary conditions in various directions

  • pass_uv

    Structure for group halo pass of vectors

  • scalar_pass

    Structure for group halo pass of scalars

type, public :: barotropic_CS

An integer used to encode a gradient OBC point

The barotropic stepping control structure

Parameters
  • frhatu

    The fraction of the total column thickness interpolated to u grid points in each layer [nondim].

  • frhatv

    The fraction of the total column thickness interpolated to v grid points in each layer [nondim].

  • IDatu

    Inverse of the total thickness at u grid points [H-1 ~> m-1 or m2 kg-1].

  • lin_drag_u

    A spatially varying linear drag coefficient acting on the zonal barotropic flow [H T-1 ~> m s-1 or kg m-2 s-1].

  • ubt_IC

    The barotropic solvers estimate of the zonal velocity that will be the initial condition for the next call to btstep [L T-1 ~> m s-1].

  • ubtav

    The barotropic zonal velocity averaged over the baroclinic time step [L T-1 ~> m s-1].

  • IDatv

    Inverse of the basin depth at v grid points [Z-1 ~> m-1].

  • lin_drag_v

    A spatially varying linear drag coefficient acting on the zonal barotropic flow [H T-1 ~> m s-1 or kg m-2 s-1].

  • vbt_IC

    The barotropic solvers estimate of the zonal velocity that will be the initial condition for the next call to btstep [L T-1 ~> m s-1].

  • vbtav

    The barotropic meridional velocity averaged over the baroclinic time step [L T-1 ~> m s-1].

  • eta_cor

    The difference between the free surface height from the barotropic calculation and the sum of the layer thicknesses. This difference is imposed as a forcing term in the barotropic calculation over a baroclinic timestep [H ~> m or kg m-2].

  • eta_cor_bound

    A limit on the rate at which eta_cor can be applied while avoiding instability [H T-1 ~> m s-1 or kg m-2 s-1]. This is only used if CS%bound_BT_corr is true.

  • ua_polarity

    Test vector components for checking grid polarity [nondim]

  • va_polarity

    Test vector components for checking grid polarity [nondim]

  • bathyT

    A copy of bathyT (ocean bottom depth) with wide halos [Z ~> m]

  • IareaT

    This is a copy of G%IareaT with wide halos, but will still utilize the macro IareaT when referenced, [L-2 ~> m-2].

  • dy_Cu

    A copy of G%dy_Cu with wide halos [L ~> m].

  • IdxCu

    A copy of G%IdxCu with wide halos [L-1 ~> m-1].

  • OBCmask_u

    An array to multiplicatively mask out changes at OBC points, 0 or 1 [nondim]

  • dx_Cv

    A copy of G%dx_Cv with wide halos [L ~> m].

  • IdyCv

    A copy of G%IdyCv with wide halos [L-1 ~> m-1].

  • OBCmask_v

    An array to multiplicatively mask out changes at OBC points, 0 or 1 [nondim]

  • D_u_Cor

    A simply averaged depth at u points recast as a thickness [H ~> m or kg m-2]

  • D_v_Cor

    A simply averaged depth at v points recast as a thickness [H ~> m or kg m-2]

  • q_D

    f / D at PV points [T-1 H-1 ~> s-1 m-1 or m2 s-1 kg-1]

  • q_wt

    The area weights for the thicknesses around a corner point to be used when calculating PV for use in the Coriolis term, taking OBCs into account [L2 ~> m2]. The order of the 4 values at a point is the order in which the neighboring tracer points occur in memory, i.e. SW, SE, NW then NE.

  • frhatu1

    Predictor step values of frhatu stored for diagnostics [nondim]

  • frhatv1

    Predictor step values of frhatv stored for diagnostics [nondim]

  • IareaT_OBCmask

    If non-zero, work on given points [L-2 ~> m-2].

  • BT_OBC

    A structure with all of this modules fields for applying open boundary conditions.

  • dtbt

    The barotropic time step [T ~> s].

  • dtbt_fraction

    The fraction of the maximum time-step that should used [nondim]. The default is 0.98.

  • dtbt_max

    The maximum stable barotropic time step [T ~> s].

  • dt_bt_filter

    The time-scale over which the barotropic mode solutions are filtered [T ~> s] if positive, or as a fraction of DT if negative [nondim]. This can never be taken to be longer than 2*dt. Set this to 0 to apply no filtering.

  • nstep_last

    The number of barotropic timesteps per baroclinic time step the last time btstep was called.

  • bebt

    A nondimensional number, from 0 to 1, that determines the gravity wave time stepping scheme [nondim]. 0.0 gives a forward-backward scheme, while 1.0 give backward Euler. In practice, bebt should be of order 0.2 or greater.

  • Rho_BT_lin

    A density that is used to convert total water column thicknesses into mass in non-Boussinesq mode with linearized options in the barotropic solver or when estimating the stable barotropic timestep without access to the full baroclinic model state [R ~> kg m-3]

  • split

    If true, use the split time stepping scheme.

  • bound_BT_corr

    If true, the magnitude of the fake mass source in the barotropic equation that drives the two estimates of the free surface height toward each other is bounded to avoid driving corrective velocities that exceed MAXCFL_BT_CONT.

  • gradual_BT_ICs

    If true, adjust the initial conditions for the barotropic solver to the values from the layered solution over a whole timestep instead of instantly. This is a decent approximation to the inclusion of sum(u dh_dt) while also correcting for truncation errors.

  • Sadourny

    If true, the Coriolis terms are discretized with Sadourny's energy conserving scheme, otherwise the Arakawa & Hsu scheme is used. If the deformation radius is not resolved Sadourny's scheme should probably be used.

  • integral_bt_cont

    If true, use the time-integrated velocity over the barotropic steps to determine the integrated transports used to update the continuity equation. Otherwise the transports are the sum of the transports based on a series of instantaneous velocities and the BT_CONT_TYPE for transports. This is only valid if a BT_CONT_TYPE is used.

  • bt_adjust_src_for_filter

    If true, increases the rate at which BT mass sources are applied so that they are all used up before the steps within the filtering period start. This avoids the mass sink driving the SSH below the bottom during the period of filtering.

  • bt_limit_integral_transport

    If true, limit the time-integrated transports by the initial volume accounting for sinks of mass.

  • integral_OBCs

    This is true if integral_bt_cont is true and there are open boundary conditions being applied somewhere in the global domain.

  • Nonlinear_continuity

    If true, the barotropic continuity equation uses the full ocean thickness for transport.

  • Nonlin_cont_update_period

    The number of barotropic time steps between updates to the face area, or 0 only to update at the start of a call to btstep. The default is 1.

  • BT_project_velocity

    If true, step the barotropic velocity first and project out the velocity tendency by 1+BEBT when calculating the transport. The default (false) is to use a predictor continuity step to find the pressure field, and then do a corrector continuity step using a weighted average of the old and new velocities, with weights of (1-BEBT) and BEBT.

  • nonlin_stress

    If true, use the full depth of the ocean at the start of the barotropic step when calculating the surface stress contribution to the barotropic accelerations. Otherwise use the depth based on bathyT.

  • BT_Coriolis_scale

    A factor by which the barotropic Coriolis acceleration anomaly terms are scaled [nondim].

  • answer_date

    The vintage of the expressions in the barotropic solver. Values below 20190101 recover the answers from the end of 2018, while higher values use more efficient or general expressions.

  • dynamic_psurf

    If true, add a dynamic pressure due to a viscous ice shelf, for instance.

  • Dmin_dyn_psurf

    The minimum total thickness to use in limiting the size of the dynamic surface pressure for stability [H ~> m or kg m-2].

  • ice_strength_length

    The length scale at which the damping rate due to the ice strength should be the same as if a Laplacian were applied [L ~> m].

  • const_dyn_psurf

    The constant that scales the dynamic surface pressure [nondim]. Stable values are < ~1.0. The default is 0.9.

  • calculate_SAL

    If true, calculate self-attraction and loading.

  • tidal_sal_bug

    If true, the tidal self-attraction and loading anomaly in the barotropic solver has the wrong sign, replicating a long-standing bug.

  • G_extra

    A nondimensional factor by which gtot is enhanced [nondim].

  • hvel_scheme

    An integer indicating how the thicknesses at velocity points are calculated. Valid values are given by the parameters defined below: HARMONIC, ARITHMETIC, HYBRID, and FROM_BT_CONT

  • strong_drag

    If true, use a stronger estimate of the retarding effects of strong bottom drag.

  • rescale_strong_drag

    If true, reduce the barotropic contribution to the layer accelerations to account for the difference between the forces that can be counteracted by the stronger drag with BT_STRONG_DRAG and the average of the layer viscous remnants after a baroclinic timestep.

  • linear_wave_drag

    If true, apply a linear drag to the barotropic velocities, using rates set by lin_drag_u & _v divided by the depth of the ocean.

  • linearized_BT_PV

    If true, the PV and interface thicknesses used in the barotropic Coriolis calculation is time invariant and linearized.

  • use_filter

    If true, use streaming band-pass filter to detect the instantaneous tidal signals in the simulation.

  • linear_freq_drag

    If true, apply a linear frequency-dependent drag to the tidal velocities. The streaming band-pass filter must be turned on.

  • use_wide_halos

    If true, use wide halos and march in during the barotropic time stepping for efficiency.

  • min_stencil

    The minimum stencil width to use with the wide halo iterations. A nonzero value may reflect the distribution of OBC faces or it may be useful for debugging purposes.

  • clip_velocity

    If true, limit any velocity components that are are large enough for a CFL number to exceed CFL_trunc. This should only be used as a desperate debugging measure.

  • debug

    If true, write verbose checksums for debugging purposes.

  • debug_bt

    If true, write verbose checksums from within the barotropic time-stepping loop for debugging purposes.

  • debug_wide_halos

    If true, write the checksums on the full wide halos. Otherwise only the output for the final computational domain is written.

  • vel_underflow

    Velocity components smaller than vel_underflow are set to 0 [L T-1 ~> m s-1].

  • maxvel

    Velocity components greater than maxvel are truncated to maxvel [L T-1 ~> m s-1].

  • CFL_trunc

    If clip_velocity is true, velocity components will be truncated when they are large enough that the corresponding CFL number exceeds this value [nondim].

  • maxCFL_BT_cont

    The maximum permitted CFL number associated with the barotropic accelerations from the summed velocities times the time-derivatives of thicknesses [nondim]. The default is 0.1, and there will probably be real problems if this were set close to 1.

  • BT_cont_bounds

    If true, use the BT_cont_type variables to set limits on the magnitude of the corrective mass fluxes.

  • visc_rem_u_uh0

    If true, use the viscous remnants when estimating the barotropic velocities that were used to calculate uh0 and vh0. False is probably the better choice.

  • adjust_BT_cont

    If true, adjust the curve fit to the BT_cont type that is used by the barotropic solver to match the transport about which the flow is being linearized.

  • use_old_coriolis_bracket_bug

    If True, use an order of operations that is not bitwise rotationally symmetric in the meridional Coriolis term of the barotropic solver.

  • tidal_sal_flather

    Apply adjustment to external gravity wave speed consistent with tidal self-attraction and loading used within the barotropic solver

  • wt_uv_bug

    If true, recover a bug that wt_[uv] that is not normalized.

  • exterior_OBC_bug

    If true, recover a bug with boundary conditions inside the domain.

  • interior_OBC_PV

    If true, use only interior ocean points at OBCs to specify the PV used in the barotropic Coriolis anomalies. Otherwise the calculation relies on bathymetry and eta being projected outward across OBCs. Unfortunately, this option does change answers near convex (peninsula-type) pairs of OBC segments.

  • Time

    A pointer to the ocean models clock.

  • diag

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

  • BT_Domain

    Barotropic MOM domain

  • debug_BT_HI

    debugging copy of horizontal index_type

  • SAL_CSp

    Control structure for SAL

  • HA_CSp

    Control structure for harmonic analysis

  • Filt_CS_u

    Control structures for the streaming band-pass filter of ubt

  • Filt_CS_v

    Control structures for the streaming band-pass filter of vbt

  • Drag_CS

    Control structures for the frequency-dependent drag

  • module_is_initialized

    If true, module has been initialized

  • isdw

    The lower i-memory limit for the wide halo arrays.

  • iedw

    The upper i-memory limit for the wide halo arrays.

  • jsdw

    The lower j-memory limit for the wide halo arrays.

  • jedw

    The upper j-memory limit for the wide halo arrays.

  • pass_q_DCor

    Handle for a group halo pass

  • pass_gtot

    Handle for a group halo pass

  • pass_tmp_uv

    Handle for a group halo pass

  • pass_eta_bt_rem

    Handle for a group halo pass

  • pass_force_hbt0_Cor_ref

    Handle for a group halo pass

  • pass_Dat_uv

    Handle for a group halo pass

  • pass_eta_ubt

    Handle for a group halo pass

  • pass_etaav

    Handle for a group halo pass

  • pass_ubt_Cor

    Handle for a group halo pass

  • pass_ubta_uhbta

    Handle for a group halo pass

  • pass_e_anom

    Handle for a group halo pass

  • id_PFu_bt

    Diagnostic IDs

  • id_PFv_bt

    Diagnostic IDs

  • id_Coru_bt

    Diagnostic IDs

  • id_Corv_bt

    Diagnostic IDs

  • id_LDu_bt

    Diagnostic IDs

  • id_LDv_bt

    Diagnostic IDs

  • id_eta_cor

    Diagnostic IDs

  • id_ubtforce

    Diagnostic IDs

  • id_vbtforce

    Diagnostic IDs

  • id_uaccel

    Diagnostic IDs

  • id_vaccel

    Diagnostic IDs

  • id_visc_rem_u

    Diagnostic IDs

  • id_visc_rem_v

    Diagnostic IDs

  • id_bt_rem_u

    Diagnostic IDs

  • id_bt_rem_v

    Diagnostic IDs

  • id_ubt

    Diagnostic IDs

  • id_vbt

    Diagnostic IDs

  • id_eta_bt

    Diagnostic IDs

  • id_ubtav

    Diagnostic IDs

  • id_vbtav

    Diagnostic IDs

  • id_ubt_st

    Diagnostic IDs

  • id_vbt_st

    Diagnostic IDs

  • id_eta_st

    Diagnostic IDs

  • id_ubtdt

    Diagnostic IDs

  • id_vbtdt

    Diagnostic IDs

  • id_ubt_hifreq

    Diagnostic IDs

  • id_vbt_hifreq

    Diagnostic IDs

  • id_eta_hifreq

    Diagnostic IDs

  • id_uhbt_hifreq

    Diagnostic IDs

  • id_vhbt_hifreq

    Diagnostic IDs

  • id_eta_pred_hifreq

    Diagnostic IDs

  • id_etaPF_hifreq

    Diagnostic IDs

  • id_etaPF_anom

    Diagnostic IDs

  • id_gtotn

    Diagnostic IDs

  • id_gtots

    Diagnostic IDs

  • id_gtote

    Diagnostic IDs

  • id_gtotw

    Diagnostic IDs

  • id_uhbt

    Diagnostic IDs

  • id_frhatu

    Diagnostic IDs

  • id_vhbt

    Diagnostic IDs

  • id_frhatv

    Diagnostic IDs

  • id_frhatu1

    Diagnostic IDs

  • id_frhatv1

    Diagnostic IDs

  • id_BTC_FA_u_EE

    Diagnostic IDs

  • id_BTC_FA_u_E0

    Diagnostic IDs

  • id_BTC_FA_u_W0

    Diagnostic IDs

  • id_BTC_FA_u_WW

    Diagnostic IDs

  • id_BTC_ubt_EE

    Diagnostic IDs

  • id_BTC_ubt_WW

    Diagnostic IDs

  • id_BTC_FA_v_NN

    Diagnostic IDs

  • id_BTC_FA_v_N0

    Diagnostic IDs

  • id_BTC_FA_v_S0

    Diagnostic IDs

  • id_BTC_FA_v_SS

    Diagnostic IDs

  • id_BTC_vbt_NN

    Diagnostic IDs

  • id_BTC_vbt_SS

    Diagnostic IDs

  • id_BTC_FA_u_rat0

    Diagnostic IDs

  • id_BTC_FA_v_rat0

    Diagnostic IDs

  • id_BTC_FA_h_rat0

    Diagnostic IDs

  • id_uhbt0

    Diagnostic IDs

  • id_vhbt0

    Diagnostic IDs

  • id_SSH_u_OBC

    Diagnostic IDs

  • id_SSH_v_OBC

    Diagnostic IDs

  • id_ubt_OBC

    Diagnostic IDs

  • id_vbt_OBC

    Diagnostic IDs

type, private :: local_BT_cont_u_type

A description of the functional dependence of transport at a u-point

Parameters
  • FA_u_EE

    The effective open face area for zonal barotropic transport drawing from locations far to the east [H L ~> m2 or kg m-1].

  • FA_u_E0

    The effective open face area for zonal barotropic transport drawing from nearby to the east [H L ~> m2 or kg m-1].

  • FA_u_W0

    The effective open face area for zonal barotropic transport drawing from nearby to the west [H L ~> m2 or kg m-1].

  • FA_u_WW

    The effective open face area for zonal barotropic transport drawing from locations far to the west [H L ~> m2 or kg m-1].

  • uBT_WW

    uBT_WW is the barotropic velocity [L T-1 ~> m s-1], or with INTEGRAL_BT_CONTINUITY the time-integrated barotropic velocity [L ~> m], beyond which the marginal open face area is FA_u_WW. uBT_WW must be non-negative.

  • uBT_EE

    uBT_EE is a barotropic velocity [L T-1 ~> m s-1], or with INTEGRAL_BT_CONTINUITY the time-integrated barotropic velocity [L ~> m], beyond which the marginal open face area is FA_u_EE. uBT_EE must be non-positive.

  • uh_crvW

    The curvature of face area with velocity for flow from the west [H T2 L-1 ~> s2 or kg s2 m-3] or [H L-1 ~> nondim or kg m-3] with INTEGRAL_BT_CONTINUITY.

  • uh_crvE

    The curvature of face area with velocity for flow from the east [H T2 L-1 ~> s2 or kg s2 m-3] or [H L-1 ~> nondim or kg m-3] with INTEGRAL_BT_CONTINUITY.

  • uh_WW

    The zonal transport when ubt=ubt_WW [H L2 T-1 ~> m3 s-1 or kg s-1], or the equivalent time-integrated transport with INTEGRAL_BT_CONTINUITY [H L2 ~> m3 or kg].

  • uh_EE

    The zonal transport when ubt=ubt_EE [H L2 T-1 ~> m3 s-1 or kg s-1], or the equivalent time-integrated transport with INTEGRAL_BT_CONTINUITY [H L2 ~> m3 or kg].

type, private :: local_BT_cont_v_type

A description of the functional dependence of transport at a v-point

Parameters
  • FA_v_NN

    The effective open face area for meridional barotropic transport drawing from locations far to the north [H L ~> m2 or kg m-1].

  • FA_v_N0

    The effective open face area for meridional barotropic transport drawing from nearby to the north [H L ~> m2 or kg m-1].

  • FA_v_S0

    The effective open face area for meridional barotropic transport drawing from nearby to the south [H L ~> m2 or kg m-1].

  • FA_v_SS

    The effective open face area for meridional barotropic transport drawing from locations far to the south [H L ~> m2 or kg m-1].

  • vBT_SS

    vBT_SS is the barotropic velocity [L T-1 ~> m s-1], or with INTEGRAL_BT_CONTINUITY the time-integrated barotropic velocity [L ~> m], beyond which the marginal open face area is FA_v_SS. vBT_SS must be non-negative.

  • vBT_NN

    vBT_NN is the barotropic velocity [L T-1 ~> m s-1], or with INTEGRAL_BT_CONTINUITY the time-integrated barotropic velocity [L ~> m], beyond which the marginal open face area is FA_v_NN. vBT_NN must be non-positive.

  • vh_crvS

    The curvature of face area with velocity for flow from the south [H T2 L-1 ~> s2 or kg s2 m-3] or [H L-1 ~> nondim or kg m-3] with INTEGRAL_BT_CONTINUITY.

  • vh_crvN

    The curvature of face area with velocity for flow from the north [H T2 L-1 ~> s2 or kg s2 m-3] or [H L-1 ~> nondim or kg m-3] with INTEGRAL_BT_CONTINUITY.

  • vh_SS

    The meridional transport when vbt=vbt_SS [H L2 T-1 ~> m3 s-1 or kg s-1], or the equivalent time-integrated transport with INTEGRAL_BT_CONTINUITY [H L2 ~> m3 or kg].

  • vh_NN

    The meridional transport when vbt=vbt_NN [H L2 T-1 ~> m3 s-1 or kg s-1], or the equivalent time-integrated transport with INTEGRAL_BT_CONTINUITY [H L2 ~> m3 or kg].

type, private :: memory_size_type

A container for passing around active tracer point memory limits

Parameters
  • isdw

    Currently active memory limits

  • iedw

    Currently active memory limits

  • jsdw

    Currently active memory limits

  • jedw

    Currently active memory limits

Functions/Subroutine Documentation

subroutine btstep(U_in, V_in, eta_in, dt, bc_accel_u, bc_accel_v, forces, pbce, eta_PF_in, U_Cor, V_Cor, accel_layer_u, accel_layer_v, eta_out, uhbtav, vhbtav, G, GV, US, CS, visc_rem_u, visc_rem_v, SpV_avg, ADp, OBC, BT_cont, eta_PF_start, taux_bot, tauy_bot, uh0, vh0, u_uh0, v_vh0, etaav)

This subroutine time steps the barotropic equations explicitly. For gravity waves, anything between a forwards-backwards scheme and a simulated backwards Euler scheme is used, with bebt between 0.0 and 1.0 determining the scheme. In practice, bebt must be of order 0.2 or greater. A forwards-backwards treatment of the Coriolis terms is always used.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • U_in [in]

    The initial (3-D) zonal velocity [L T-1 ~> m s-1].

  • V_in [in]

    The initial (3-D) meridional velocity [L T-1 ~> m s-1].

  • eta_in [in]

    The initial barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • dt [in]

    The time increment to integrate over [T ~> s].

  • bc_accel_u [in]

    The zonal baroclinic accelerations, [L T-2 ~> m s-2].

  • bc_accel_v [in]

    The meridional baroclinic accelerations, [L T-2 ~> m s-2].

  • forces [in]

    A structure with the driving mechanical forces

  • pbce [in]

    The baroclinic pressure anomaly in each layer due to free surface height anomalies [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • eta_PF_in [in]

    The 2-D eta field (either SSH anomaly or column mass anomaly) that was used to calculate the input pressure gradient accelerations (or its final value if eta_PF_start is provided [H ~> m or kg m-2]. Note: eta_in, pbce, and eta_PF_in must have up-to-date values in the first point of their halos.

  • U_Cor [in]

    The (3-D) zonal velocities used to calculate the Coriolis terms in bc_accel_u [L T-1 ~> m s-1].

  • V_Cor [in]

    The (3-D) meridional velocities used to calculate the Coriolis terms in bc_accel_u [L T-1 ~> m s-1].

  • accel_layer_u [out]

    The zonal acceleration of each layer due to the barotropic calculation [L T-2 ~> m s-2].

  • accel_layer_v [out]

    The meridional acceleration of each layer due to the barotropic calculation [L T-2 ~> m s-2].

  • eta_out [out]

    The final barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • uhbtav [out]

    the barotropic zonal volume or mass fluxes averaged through the barotropic steps [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbtav [out]

    the barotropic meridional volume or mass fluxes averaged through the barotropic steps [H L2 T-1 ~> m3 s-1 or kg s-1].

  • CS [inout]

    Barotropic 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, in the zonal direction [nondim]. Visc_rem_u is between 0 (at the bottom) and 1 (far above).

  • visc_rem_v [in]

    Ditto for meridional direction [nondim].

  • SpV_avg [in]

    The column average specific volume, used in non-Boussinesq OBC calculations [R-1 ~> m3 kg-1]

  • ADp

    Acceleration diagnostic pointers

  • OBC

    The open boundary condition structure.

  • BT_cont

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

  • eta_PF_start

    The eta field consistent with the pressure gradient at the start of the barotropic stepping [H ~> m or kg m-2].

  • taux_bot

    The zonal bottom frictional stress from ocean to the seafloor [R L Z T-2 ~> Pa].

  • tauy_bot

    The meridional bottom frictional stress from ocean to the seafloor [R L Z T-2 ~> Pa].

  • uh0

    The zonal layer transports at reference velocities [H L2 T-1 ~> m3 s-1 or kg s-1].

  • u_uh0

    The velocities used to calculate uh0 [L T-1 ~> m s-1]

  • vh0

    The zonal layer transports at reference velocities [H L2 T-1 ~> m3 s-1 or kg s-1].

  • v_vh0

    The velocities used to calculate vh0 [L T-1 ~> m s-1]

  • etaav [out]

    The free surface height or column mass averaged over the barotropic integration [H ~> m or kg m-2].

  • f_4_u

    The terms giving the contribution to the Coriolis acceleration at a zonal velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at v points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for v-velocities to the southwest, southeast, northwest and northeast.

  • f_4_v

    The terms giving the contribution to the Coriolis acceleration at a meridional velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at u points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for u-velocities to the southwest, southeast, northwest and northeast.

Callees call graph
Callees of mom_barotropic::btstep calls cluster_mom_barotropic MOM_barotropic cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_harmonic_analysis MOM_harmonic_analysis cluster_mom_open_boundary MOM_open_boundary cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_streaming_filter MOM_streaming_filter cluster_mom_wave_drag MOM_wave_drag mom_barotropic::adjust_local_bt_cont_types adjust_local_BT_cont_types [private/internal] mom_barotropic::bt_cont_to_face_areas BT_cont_to_face_areas [private/internal] mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::adjust_local_bt_cont_types mom_barotropic::btstep->mom_barotropic::bt_cont_to_face_areas mom_barotropic::btstep_find_cor btstep_find_Cor [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_find_cor mom_barotropic::btstep_layer_accel btstep_layer_accel [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_layer_accel mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_timeloop mom_barotropic::btstep_ubt_from_layer btstep_ubt_from_layer [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_ubt_from_layer mom_barotropic::find_duhbt_du find_duhbt_du [private/internal] mom_barotropic::btstep->mom_barotropic::find_duhbt_du mom_barotropic::find_dvhbt_dv find_dvhbt_dv [private/internal] mom_barotropic::btstep->mom_barotropic::find_dvhbt_dv mom_barotropic::find_face_areas find_face_areas [private/internal] mom_barotropic::btstep->mom_barotropic::find_face_areas mom_barotropic::find_uhbt find_uhbt [private/internal] mom_barotropic::btstep->mom_barotropic::find_uhbt mom_barotropic::find_vhbt find_vhbt [private/internal] mom_barotropic::btstep->mom_barotropic::find_vhbt mom_barotropic::set_local_bt_cont_types set_local_BT_cont_types [private/internal] mom_barotropic::btstep->mom_barotropic::set_local_bt_cont_types mom_barotropic::set_up_bt_obc set_up_BT_OBC [private/internal] mom_barotropic::btstep->mom_barotropic::set_up_bt_obc mom_barotropic::swap swap [private/internal] mom_barotropic::btstep->mom_barotropic::swap mom_checksums::interface::bchksum Bchksum (interface) mom_barotropic::btstep->mom_checksums::interface::bchksum mom_checksums::interface::hchksum hchksum (interface) mom_barotropic::btstep->mom_checksums::interface::hchksum mom_checksums::interface::uvchksum uvchksum (interface) mom_barotropic::btstep->mom_checksums::interface::uvchksum mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_barotropic::btstep->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_barotropic::btstep->mom_cpu_clock_infra::cpu_clock_end mom_diag_mediator::interface::post_data post_data (interface) mom_barotropic::btstep->mom_diag_mediator::interface::post_data mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_barotropic::btstep->mom_diag_mediator::query_averaging_enabled mom_domain_infra::complete_group_pass complete_group_pass mom_barotropic::btstep->mom_domain_infra::complete_group_pass mom_domain_infra::do_group_pass do_group_pass mom_barotropic::btstep->mom_domain_infra::do_group_pass mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_barotropic::btstep->mom_domain_infra::interface::create_group_pass mom_domain_infra::interface::pass_vector pass_vector (interface) mom_barotropic::btstep->mom_domain_infra::interface::pass_vector mom_domain_infra::start_group_pass start_group_pass mom_barotropic::btstep->mom_domain_infra::start_group_pass mom_error_handler::mom_error MOM_error mom_barotropic::btstep->mom_error_handler::mom_error mom_error_handler::mom_mesg MOM_mesg mom_barotropic::btstep->mom_error_handler::mom_mesg mom_error_infra::is_root_pe is_root_pe mom_barotropic::btstep->mom_error_infra::is_root_pe mom_harmonic_analysis::ha_accum HA_accum mom_barotropic::btstep->mom_harmonic_analysis::ha_accum mom_open_boundary::open_boundary_query open_boundary_query mom_barotropic::btstep->mom_open_boundary::open_boundary_query mom_self_attr_load::scalar_sal_sensitivity scalar_SAL_sensitivity mom_barotropic::btstep->mom_self_attr_load::scalar_sal_sensitivity mom_streaming_filter::filt_accum Filt_accum mom_barotropic::btstep->mom_streaming_filter::filt_accum mom_wave_drag::wave_drag_calc wave_drag_calc mom_barotropic::btstep->mom_wave_drag::wave_drag_calc
Text view
Callers call graph
Callers of mom_barotropic::btstep calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::btstep btstep mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_barotropic::btstep mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_barotropic::btstep
Text view
subroutine btstep_timeloop(eta, ubt, vbt, uhbt0, Datu, BTCL_u, vhbt0, Datv, BTCL_v, eta_IC, eta_PF_1, d_eta_PF, eta_src, dyn_coef_eta, uhbtav, vhbtav, u_accel_bt, v_accel_bt, f_4_u, f_4_v, bt_rem_u, bt_rem_v, BT_force_u, BT_force_v, Cor_ref_u, Cor_ref_v, Rayleigh_u, Rayleigh_v, eta_PF, gtot_E, gtot_W, gtot_N, gtot_S, SpV_col_avg, dgeo_de, eta_sum, eta_wtd, ubt_wtd, vbt_wtd, Coru_avg, PFu_avg, LDu_avg, Corv_avg, PFv_avg, LDv_avg, use_BT_cont, interp_eta_PF, find_etaav, dt, dtbt, nstep, nfilter, wt_vel, wt_eta, wt_accel, wt_trans, wt_accel2, ADp, BT_OBC, CS, G, MS, GV, US)

Update the barotropic solver through multiple time steps.

Parameters
  • CS [inout]

    Barotropic control structure

  • G [inout]

    The ocean's grid structure (inout to allow for halo updates)

  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • eta [inout]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2]

  • ubt [inout]

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

  • vbt [inout]

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

  • uhbt0 [in]

    The difference between the sum of the layer zonal thickness flux and the barotropic thickness flux using the same velocity [H L2 T-1 ~> m3 s-1 or kg s-1]

  • Datu [inout]

    Basin depth at u-velocity grid points times the y-grid spacing [H L ~> m2 or kg m-1]

  • BTCL_u [in]

    Structure of information used for a dynamic estimate of the face areas at u-points.

  • vhbt0 [in]

    The difference between the sum of the layer meridional thickness flux and the barotropic thickness flux using the same velocity [H L2 T-1 ~> m3 s-1 or kg s-1]

  • Datv [inout]

    Basin depth at v-velocity grid points times the x-grid spacing [H L ~> m2 or kg m-1]

  • BTCL_v [in]

    Structure of information used for a dynamic estimate of the face areas at v-points

  • eta_IC [in]

    A local copy of the initial 2-D eta field (eta_in) [H ~> m or kg m-2]

  • eta_PF_1 [in]

    The initial value of eta_PF, when interp_eta_PF is true [H ~> m or kg m-2]

  • d_eta_PF [in]

    The change in eta_PF over the barotropic time stepping when interp_eta_PF is true [H ~> m or kg m-2]

  • eta_src [in]

    The source of eta per barotropic timestep [H ~> m or kg m-2]

  • dyn_coef_eta [in]

    The coefficient relating the changes in eta to the dynamic surface pressure under rigid ice [L2 T-2 H-1 ~> m s-2 or m4 s-2 kg-1].

  • uhbtav [out]

    the barotropic zonal volume or mass fluxes averaged through the barotropic steps [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbtav [out]

    the barotropic meridional volume or mass fluxes averaged through the barotropic steps [H L2 T-1 ~> m3 s-1 or kg s-1].

  • u_accel_bt [inout]

    The difference between the zonal acceleration from the barotropic calculation and BT_force_v [L T-2 ~> m s-2].

  • v_accel_bt [inout]

    The difference between the meridional acceleration from the barotropic calculation and BT_force_v [L T-2 ~> m s-2].

  • f_4_u [inout]

    The terms giving the contribution to the Coriolis acceleration at a zonal velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at v points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for v-velocities to the southwest, southeast, northwest and northeast.

  • f_4_v [in]

    The terms giving the contribution to the Coriolis acceleration at a meridional velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at u points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for u-velocities to the southwest, southeast, northwest and northeast.

  • bt_rem_u [in]

    The fraction of the barotropic zonal velocity that remains after a time step, the rest being lost to bottom drag [nondim]. bt_rem_v is between 0 and 1.

  • bt_rem_v [in]

    The fraction of the barotropic meridional velocity that remains after a time step, the rest being lost to bottom drag [nondim]. bt_rem_v is between 0 and 1.

  • BT_force_u [in]

    The vertical average of all of the v-accelerations that are not explicitly included in the barotropic equation [L T-2 ~> m s-2]

  • BT_force_v [in]

    The vertical average of all of the v-accelerations that are not explicitly included in the barotropic equation [L T-2 ~> m s-2]

  • Cor_ref_u [in]

    The meridional barotropic Coriolis acceleration due to the reference velocities [L T-2 ~> m s-2].

  • Cor_ref_v [in]

    The meridional barotropic Coriolis acceleration due to the reference velocities [L T-2 ~> m s-2].

  • Rayleigh_u [in]

    A Rayleigh drag timescale operating at u-points for drag parameterizations that introduced directly into the barotropic solver rather than coming in via the visc_rem_u arrays from the layered equations [T-1 ~> s-1]

  • Rayleigh_v [in]

    A Rayleigh drag timescale operating at v-points for drag parameterizations that introduced directly into the barotropic solver rather than coming in via the visc_rem_v arrays from the layered equations [T-1 ~> s-1]

  • eta_PF [inout]

    The 2-D eta field (either SSH anomaly or column mass anomaly) that was used to calculate the input pressure gradient accelerations [H ~> m or kg m-2]

  • gtot_E [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the east of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_W [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the west of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2] (See Hallberg, J Comp Phys 1997 for a discussion of gtot_E and gtot_W.)

  • gtot_N [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the north of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2]

  • gtot_S [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the south of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2] (See Hallberg, J Comp Phys 1997 for a discussion of gtot_E and gtot_W.)

  • SpV_col_avg [in]

    The column average specific volume [R-1 ~> m3 kg-1]

  • dgeo_de [in]

    The constant of proportionality between geopotential and sea surface height [nondim]. It is of order 1, but for stability this may be made larger than the physical problem would suggest.

  • eta_sum [out]

    eta summed across the timesteps [H ~> m or kg m-2]

  • eta_wtd [out]

    A weighted estimate used to calculate eta_out [H ~> m or kg m-2]

  • ubt_wtd [out]

    A weighted sum used to find the filtered final ubt [L T-1 ~> m s-1]

  • vbt_wtd [out]

    A weighted sum used to find the filtered final vbt [L T-1 ~> m s-1]

  • Coru_avg [out]

    The average zonal barotropic Coriolis acceleration [L T-2 ~> m s-2]

  • PFu_avg [out]

    The average zonal barotropic pressure gradient force [L T-2 ~> m s-2]

  • LDu_avg [out]

    The average zonal barotropic linear wave drag acceleration [L T-2 ~> m s-2]

  • Corv_avg [out]

    The average meridional barotropic Coriolis acceleration [L T-2 ~> m s-2]

  • PFv_avg [out]

    The average meridional barotropic pressure gradient force [L T-2 ~> m s-2]

  • LDv_avg [out]

    The average meridional barotropic linear wave drag acceleration [L T-2 ~> m s-2]

  • use_BT_cont [in]

    If true, use the information in the bt_cont_types to calculate the mass transports

  • interp_eta_PF [in]

    If true, interpolate the reference value of eta used to calculate the pressure force with time.

  • find_etaav [in]

    If true, diagnose the time mean value of eta

  • dt [in]

    The time increment to integrate over [T ~> s]

  • dtbt [in]

    The barotropic time step [T ~> s]

  • nstep [in]

    The number of barotropic time steps to take to cover the specified time interval

  • nfilter [in]

    The number of extra barotropic steps to take to allow for time filtering

  • wt_vel [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average velocities [nondim]

  • wt_eta [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average eta [nondim]

  • wt_accel [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average accelerations [nondim]

  • wt_trans [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average transports [nondim]

  • wt_accel2 [in]

    Potentially un-normalized relative weights of each of the barotropic timesteps in determining the average accelerations [nondim]

  • ADp

    Acceleration diagnostic pointers

  • BT_OBC [in]

    A structure with the private barotropic arrays related to the open boundary conditions, with time evolving data stored via set_up_BT_OBC

  • GV [in]

    The ocean's vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • p_surf_dyn

    A dynamic surface pressure under rigid ice [L2 T-2 ~> m2 s-2]

  • cfl_ltd_vol

    The volume available after removing sinks used to limit uhbt_int and vhbt_int [H L2 ~> m3 or kg]

Callees call graph
Callees of mom_barotropic::btstep_timeloop calls cluster_mom_barotropic MOM_barotropic cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_time_manager MOM_time_manager mom_barotropic::apply_u_velocity_obcs apply_u_velocity_OBCs [private/internal] mom_barotropic::apply_v_velocity_obcs apply_v_velocity_OBCs [private/internal] mom_barotropic::btloop_add_dyn_pf btloop_add_dyn_PF [private/internal] mom_barotropic::btloop_eta_predictor btloop_eta_predictor [private/internal] mom_barotropic::btloop_find_pf btloop_find_PF [private/internal] mom_barotropic::btloop_update_u btloop_update_u [private/internal] mom_barotropic::btloop_update_v btloop_update_v [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::apply_u_velocity_obcs mom_barotropic::btstep_timeloop->mom_barotropic::apply_v_velocity_obcs mom_barotropic::btstep_timeloop->mom_barotropic::btloop_add_dyn_pf mom_barotropic::btstep_timeloop->mom_barotropic::btloop_eta_predictor mom_barotropic::btstep_timeloop->mom_barotropic::btloop_find_pf mom_barotropic::btstep_timeloop->mom_barotropic::btloop_update_u mom_barotropic::btstep_timeloop->mom_barotropic::btloop_update_v mom_barotropic::find_face_areas find_face_areas [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_face_areas mom_barotropic::find_uhbt find_uhbt [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_uhbt mom_barotropic::find_vhbt find_vhbt [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_vhbt mom_barotropic::truncate_velocities truncate_velocities [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::truncate_velocities mom_checksums::interface::hchksum hchksum (interface) mom_barotropic::btstep_timeloop->mom_checksums::interface::hchksum mom_checksums::interface::uvchksum uvchksum (interface) mom_barotropic::btstep_timeloop->mom_checksums::interface::uvchksum mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_barotropic::btstep_timeloop->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_barotropic::btstep_timeloop->mom_cpu_clock_infra::cpu_clock_end mom_diag_mediator::enable_averages enable_averages mom_barotropic::btstep_timeloop->mom_diag_mediator::enable_averages mom_diag_mediator::enable_averaging enable_averaging mom_barotropic::btstep_timeloop->mom_diag_mediator::enable_averaging mom_diag_mediator::interface::post_data post_data (interface) mom_barotropic::btstep_timeloop->mom_diag_mediator::interface::post_data mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_barotropic::btstep_timeloop->mom_diag_mediator::query_averaging_enabled mom_domain_infra::do_group_pass do_group_pass mom_barotropic::btstep_timeloop->mom_domain_infra::do_group_pass mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_barotropic::btstep_timeloop->mom_domain_infra::interface::create_group_pass mom_error_handler::mom_error MOM_error mom_barotropic::btstep_timeloop->mom_error_handler::mom_error mom_time_manager::real_to_time real_to_time mom_barotropic::btstep_timeloop->mom_time_manager::real_to_time
Text view
Callers call graph
Callers of mom_barotropic::btstep_timeloop calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_timeloop
Text view
subroutine btstep_find_Cor(q, DCor_u, DCor_v, f_4_u, f_4_v, isvf, ievf, jsvf, jevf, CS)

Find the Coriolis force terms _zon and _mer.

Parameters
  • CS [inout]

    Barotropic control structure

  • q [in]

    A pseudo potential vorticity [T-1 Z-1 ~> s-1 m-1] or [T-1 H-1 ~> s-1 m-1 or m2 s-1 kg-1]

  • DCor_u [in]

    An averaged depth or total thickness at u points [Z ~> m] or [H ~> m or kg m-2].

  • DCor_v [in]

    An averaged depth or total thickness at v points [Z ~> m] or [H ~> m or kg m-2].

  • f_4_u [inout]

    The terms giving the contribution to the Coriolis acceleration at a zonal velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at v points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for v-velocities to the southwest, southeast, northwest and northeast.

  • f_4_v [inout]

    The terms giving the contribution to the Coriolis acceleration at a meridional velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at u points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for u-velocities to the southwest, southeast, northwest and northeast.

  • isvf [in]

    The starting i-index of the largest valid range for tracer points

  • ievf [in]

    The ending i-index of the largest valid range for tracer points

  • jsvf [in]

    The starting j-index of the largest valid range for tracer points

  • jevf [in]

    The ending j-index of the largest valid range for tracer points

Callers call graph
Callers of mom_barotropic::btstep_find_cor calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::btstep_find_cor btstep_find_Cor [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_find_cor
Text view
subroutine truncate_velocities(ubt, vbt, dt, G, CS, isv, iev, jsv, jev)

Do a CFL-based truncation of any excessively large batotropic velocities. This should only be used as desperate debugging measure.

Parameters
  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

  • ubt [inout]

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

  • vbt [inout]

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

  • dt [in]

    The time increment to integrate over [T ~> s].

  • isv [in]

    The starting valid tracer array i-index that is being worked on

  • iev [in]

    The ending valid tracer array i-index that is being worked on

  • jsv [in]

    The starting valid tracer array j-index that is being worked on

  • jev [in]

    The ending valid tracer array j-index being that is worked on

Callers call graph
Callers of mom_barotropic::truncate_velocities calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::truncate_velocities truncate_velocities [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::truncate_velocities
Text view
subroutine btloop_eta_predictor(n, dtbt, ubt, vbt, eta, ubt_int, vbt_int, uhbt, vhbt, uhbt0, vhbt0, uhbt_int, vhbt_int, BTCL_u, BTCL_v, Datu, Datv, eta_IC, eta_src, eta_pred, isv, iev, jsv, jev, integral_BT_cont, use_BT_cont, G, US, CS)

A routine to set eta_pred and the running time integral of uhbt and vhbt.

Parameters
  • G [in]

    The ocean's grid structure

  • CS [in]

    Barotropic control structure

  • n [in]

    The current step in loop of timesteps

  • dtbt [in]

    The barotropic time step [T ~> s]

  • ubt [in]

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

  • vbt [in]

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

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2]

  • ubt_int [in]

    The running time integral of ubt over the time steps [L ~> m].

  • vbt_int [in]

    The running time integral of vbt over the time steps [L ~> m].

  • uhbt0 [in]

    The difference between the sum of the layer zonal thickness fluxes and the barotropic thickness flux using the same velocity [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt0 [in]

    The difference between the sum of the layer meridional thickness fluxes and the barotropic thickness flux using the same velocities [H L2 T-1 ~> m3 s-1 or kg s-1].

  • BTCL_u [in]

    A repackaged version of the u-point information in BT_cont.

  • BTCL_v [in]

    A repackaged version of the v-point information in BT_cont.

  • Datu [in]

    Basin depth at u-velocity grid points times the y-grid spacing [H L ~> m2 or kg m-1].

  • Datv [in]

    Basin depth at v-velocity grid points times the x-grid spacing [H L ~> m2 or kg m-1].

  • eta_IC [in]

    A local copy of the initial 2-D eta field (eta_in) [H ~> m or kg m-2]

  • eta_src [in]

    The source of eta per barotropic timestep [H ~> m or kg m-2].

  • uhbt [inout]

    The zonal barotropic thickness fluxes [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vhbt [inout]

    The meridional barotropic thickness fluxes [H L2 T-1 ~> m3 s-1 or kg s-1].

  • uhbt_int [inout]

    The running time integral of uhbt over the time steps [H L2 ~> m3 or kg].

  • vhbt_int [inout]

    The running time integral of vhbt over the time steps [H L2 ~> m3 or kg].

  • eta_pred [inout]

    A predictor value of eta [H ~> m or kg m-2] like eta.

  • isv [in]

    The starting i-index of eta_pred to calculate

  • iev [in]

    The ending i-index of eta_pred to calculate

  • jsv [in]

    The starting j-index of eta_pred to calculate

  • jev [in]

    The ending j-index of eta_pred to calculate

  • integral_BT_cont [in]

    If true, update the barotropic continuity equation directly from the initial condition using the time-integrated barotropic velocity.

  • use_BT_cont [in]

    If true, use the information in the BT_cont_type to determine barotropic transports as a function of the barotropic velocities.

  • US [in]

    A dimensional unit scaling type

Callees call graph
Callees of mom_barotropic::btloop_eta_predictor calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_eta_predictor btloop_eta_predictor [private/internal] mom_barotropic::find_uhbt find_uhbt [private/internal] mom_barotropic::btloop_eta_predictor->mom_barotropic::find_uhbt mom_barotropic::find_vhbt find_vhbt [private/internal] mom_barotropic::btloop_eta_predictor->mom_barotropic::find_vhbt
Text view
Callers call graph
Callers of mom_barotropic::btloop_eta_predictor calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_eta_predictor btloop_eta_predictor [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::btloop_eta_predictor
Text view

subroutine btloop_find_PF(PFu, PFv, isv, iev, jsv, jev, eta_PF_BT, eta_PF, gtot_N, gtot_S, gtot_E, gtot_W, dgeo_de, find_etaav, wt_accel2_n, eta_sum, v_first, G, US, CS)

Parameters
  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

  • PFu [inout]

    The anomalous zonal pressure force acceleration [L T-2 ~> m s-2].

  • PFv [inout]

    The meridional pressure force acceleration [L T-2 ~> m s-2].

  • isv [in]

    The starting i-index of eta being set in ths loop

  • iev [in]

    The ending i-index of eta_pred being set in ths loop

  • jsv [in]

    The starting j-index of eta_pred being set in ths loop

  • jev [in]

    The ending j-index of eta_pred being set in ths loop

  • eta_PF_BT [in]

    The eta array (either the SSH anomaly or column mass anomaly) that determines the barotropic pressure force [H ~> m or kg m-2]

  • eta_PF [in]

    The input 2-D eta field (either SSH anomaly or column mass anomaly) that was used to calculate the input pressure gradient accelerations [H ~> m or kg m-2].

  • gtot_N [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the north of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_S [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the south of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2]. (See Hallberg, J Comp Phys 1997 for a discussion of gtot_E and gtot_W.)

  • gtot_E [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the east of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_W [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the west of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2]. (See Hallberg, J Comp Phys 1997 for a discussion of gtot_E and gtot_W.)

  • dgeo_de [in]

    The constant of proportionality between geopotential and sea surface height [nondim]. It is of order 1, but for stability this may be made larger than the physical problem would suggest.

  • find_etaav [in]

    If true, diagnose the time mean value of eta

  • wt_accel2_n [in]

    The weighting value of wt_accel2 at step n.

  • eta_sum [inout]

    A weighted running sum of eta summed across the timesteps [H ~> m or kg m-2]

  • v_first [in]

    If true, update the v-velocity first with the present loop iteration

  • US [in]

    A dimensional unit scaling type

Callers call graph
Callers of mom_barotropic::btloop_find_pf calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_find_pf btloop_find_PF [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::btloop_find_pf
Text view
subroutine btloop_add_dyn_PF(PFu, PFv, eta_pred, eta, dyn_coef_eta, p_surf_dyn, isv, iev, jsv, jev, v_first, G, US, CS)

This routine adds a dynamic pressure force based on the temporal changes in the predicted value of eta, perhaps as an effective divergence damping to emulate the rigidity of an ice-sheet.

Parameters
  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

  • PFu [inout]

    The anomalous zonal pressure force acceleration [L T-2 ~> m s-2].

  • PFv [inout]

    The meridional pressure force acceleration [L T-2 ~> m s-2].

  • eta_pred [in]

    The updated eta field (either SSH anomaly or column mass anomaly) that is used to estimate the divergence that is to be damped [H ~> m or kg m-2].

  • eta [in]

    The previous eta field (either SSH anomaly or column mass anomaly) that is used to estimate the divergence that is to be damped [H ~> m or kg m-2].

  • dyn_coef_eta [in]

    The coefficient relating the changes in eta to the dynamic surface pressure under rigid ice [L2 T-2 H-1 ~> m s-2 or m4 s-2 kg-1].

  • p_surf_dyn [inout]

    A dynamic surface pressure under rigid ice [L2 T-2 ~> m2 s-2].

  • isv [in]

    The starting i-index of eta being set in ths loop

  • iev [in]

    The ending i-index of eta_pred being set in ths loop

  • jsv [in]

    The starting j-index of eta_pred being set in ths loop

  • jev [in]

    The ending j-index of eta_pred being set in ths loop

  • v_first [in]

    If true, update the v-velocity first with the present loop iteration

  • US [in]

    A dimensional unit scaling type

Callers call graph
Callers of mom_barotropic::btloop_add_dyn_pf calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_add_dyn_pf btloop_add_dyn_PF [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::btloop_add_dyn_pf
Text view
subroutine btloop_update_v(dtbt, ubt, vbt, v_accel_bt, Cor_v, PFv, is_v, ie_v, Js_v, Je_v, f_4_v, bt_rem_v, BT_force_v, Cor_ref_v, Rayleigh_v, wt_accel_n, G, US, CS, Cor_bracket_bug)

Update meridional velocity.

Parameters
  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

  • ubt [in]

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

  • vbt [inout]

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

  • v_accel_bt [inout]

    The difference between the meridional acceleration from the barotropic calculation and BT_force_v [L T-2 ~> m s-2].

  • Cor_v [inout]

    The meridional Coriolis acceleration [L T-2 ~> m s-2]

  • PFv [in]

    The meridional pressure force acceleration [L T-2 ~> m s-2].

  • f_4_v [in]

    The terms giving the contribution to the Coriolis acceleration at a meridional velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at u points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for u-velocities to the southwest, southeast, northwest and northeast.

  • is_v [in]

    The starting i-index of the range of v-point values to calculate

  • ie_v [in]

    The ending i-index of the range of v-point values to calculate

  • Js_v [in]

    The starting j-index of the range of v-point values to calculate

  • Je_v [in]

    The ending j-index of the range of v-point values to calculate

  • bt_rem_v [in]

    The fraction of the barotropic meridional velocity that remains after a time step, the rest being lost to bottom drag [nondim]. bt_rem_v is between 0 and 1.

  • BT_force_v [in]

    The vertical average of all of the v-accelerations that are not explicitly included in the barotropic equation [L T-2 ~> m s-2].

  • Cor_ref_v [in]

    The meridional barotropic Coriolis acceleration due to the reference velocities [L T-2 ~> m s-2].

  • Rayleigh_v [in]

    A Rayleigh drag timescale operating at v-points for drag parameterizations that introduced directly into the barotropic solver rather than coming in via the visc_rem_v arrays from the layered equations [T-1 ~> s-1]

  • wt_accel_n [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average accelerations [nondim]

  • dtbt [in]

    The barotropic time step [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • Cor_bracket_bug [in]

    If present and true, use an order of operations that is not bitwise rotationally symmetric in the meridional Coriolis term

Callers call graph
Callers of mom_barotropic::btloop_update_v calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_update_v btloop_update_v [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::btloop_update_v
Text view
subroutine btloop_update_u(dtbt, ubt, vbt, u_accel_bt, Cor_u, PFu, Is_u, Ie_u, js_u, je_u, f_4_u, bt_rem_u, BT_force_u, Cor_ref_u, Rayleigh_u, wt_accel_n, G, US, CS)

Update zonal velocity.

Parameters
  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

  • dtbt [in]

    The barotropic time step [T ~> s].

  • ubt [inout]

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

  • vbt [in]

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

  • u_accel_bt [inout]

    The difference between the zonal acceleration from the barotropic calculation and BT_force_v [L T-2 ~> m s-2].

  • Cor_u [inout]

    The anomalous zonal Coriolis acceleration [L T-2 ~> m s-2]

  • PFu [in]

    The anomalous zonal pressure force acceleration [L T-2 ~> m s-2].

  • Is_u [in]

    The starting i-index of the range of u-point values to calculate

  • Ie_u [in]

    The ending i-index of the range of u-point values to calculate

  • js_u [in]

    The starting j-index of the range of u-point values to calculate

  • je_u [in]

    The ending j-index of the range of u-point values to calculate

  • f_4_u [in]

    The terms giving the contribution to the Coriolis acceleration at a zonal velocity point from the neighboring meridional velocity anomalies [T-1 ~> s-1]. These are the products of thicknesses at v points and appropriately staggered averaged pseudo potential vorticities, but with sufficiently smooth topography they are approximately f / 4. The 4 values on the innermost loop are for v-velocities to the southwest, southeast, northwest and northeast.

  • bt_rem_u [in]

    The fraction of the barotropic meridional velocity that remains after a time step, the rest being lost to bottom drag [nondim]. bt_rem_v is between 0 and 1.

  • BT_force_u [in]

    The vertical average of all of the v-accelerations that are not explicitly included in the barotropic equation [L T-2 ~> m s-2].

  • Cor_ref_u [in]

    The meridional barotropic Coriolis acceleration due to the reference velocities [L T-2 ~> m s-2].

  • Rayleigh_u [in]

    A Rayleigh drag timescale operating at u-points for drag parameterizations that introduced directly into the barotropic solver rather than coming in via the visc_rem_u arrays from the layered equations [T-1 ~> s-1].

  • wt_accel_n [in]

    The raw or relative weights of each of the barotropic timesteps in determining the average accelerations [nondim]

  • US [in]

    A dimensional unit scaling type

Callers call graph
Callers of mom_barotropic::btloop_update_u calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btloop_update_u btloop_update_u [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::btloop_update_u
Text view
subroutine btstep_ubt_from_layer(U_in, V_in, wt_u, wt_v, ubt, vbt, G, GV, CS)

Calculate the zonal and meridional velocity from the 3-D velocity.

Parameters
  • GV [in]

    The ocean's vertical grid structure.

  • CS [inout]

    Barotropic control structure

  • G [inout]

    The ocean's grid structure.

  • U_in [in]

    The initial (3-D) zonal velocity [L T-1 ~> m s-1]

  • V_in [in]

    The initial (3-D) meridional velocity [L T-1 ~> m s-1]

  • wt_u [in]

    The normalized weights to be used in calculating zonal barotropic velocities, possibly with sums less than one due to viscous losses [nondim]

  • wt_v [in]

    The normalized weights to be used in calculating meridional barotropic velocities, possibly with sums less than one due to viscous losses [nondim]

  • ubt [out]

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

  • vbt [out]

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

Callers call graph
Callers of mom_barotropic::btstep_ubt_from_layer calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::btstep_ubt_from_layer btstep_ubt_from_layer [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_ubt_from_layer
Text view
subroutine btstep_layer_accel(dt, u_accel_bt, v_accel_bt, pbce, gtot_E, gtot_W, gtot_N, gtot_S, e_anom, G, GV, CS, accel_layer_u, accel_layer_v)

Calculate the zonal and meridional acceleration of each layer due to the barotropic calculation.

Parameters
  • CS [inout]

    Barotropic control structure

  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • dt [in]

    The time increment to integrate over [T ~> s].

  • u_accel_bt [in]

    The difference between the zonal acceleration from the barotropic calculation and BT_force_u [L T-2 ~> m s-2].

  • v_accel_bt [in]

    The difference between the meridional acceleration from the barotropic calculation and BT_force_v [L T-2 ~> m s-2].

  • pbce [in]

    The baroclinic pressure anomaly in each layer due to free surface height anomalies [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_E [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the east of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_W [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the west of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_N [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the north of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_S [in]

    The effective total reduced gravity used to relate free surface height deviations to pressure forces (including GFS and baroclinic contributions) in the barotropic momentum equations half a grid-point to the south of a thickness point [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2]. (See Hallberg, J Comp Phys 1997 for a discussion of gtot_E, etc.)

  • e_anom [in]

    The anomaly in the sea surface height or column mass averaged between the beginning and end of the time step, relative to eta_PF, with SAL effects included [H ~> m or kg m-2].

  • accel_layer_u [out]

    The zonal acceleration of each layer due to the barotropic calculation [L T-2 ~> m s-2].

  • accel_layer_v [out]

    The meridional acceleration of each layer due to the barotropic calculation [L T-2 ~> m s-2].

Callers call graph
Callers of mom_barotropic::btstep_layer_accel calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::btstep_layer_accel btstep_layer_accel [private/internal] mom_barotropic::btstep->mom_barotropic::btstep_layer_accel
Text view
subroutine set_dtbt(G, GV, US, CS, pbce, gtot_est, BT_cont, eta, SSH_add, Time)

This subroutine automatically determines an optimal value for dtbt based on some state of the ocean. Either pbce or gtot_est is required to calculate gravitational acceleration. Column thickness can be estimated using BT_cont, eta, and SSH_add (default=0), with priority given in that order. The subroutine sets CS%dtbt_max and CS%dtbt.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [inout]

    Barotropic control structure

  • pbce [in]

    The baroclinic pressure anomaly in each layer due to free surface height anomalies [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • gtot_est [in]

    An estimate of the total gravitational acceleration [L2 H-1 T-2 ~> m s-2 or m4 kg-1 s-2].

  • BT_cont

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

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • SSH_add [in]

    An additional contribution to SSH to provide a margin of error when calculating the external wave speed [Z ~> m].

  • Time [in]

    Model time at the beginning of the baroclinic time step.

Callees call graph
Callees of mom_barotropic::set_dtbt calls cluster_mom_barotropic MOM_barotropic cluster_mom_checksums MOM_checksums cluster_mom_coms_infra MOM_coms_infra cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_self_attr_load MOM_self_attr_load mom_barotropic::bt_cont_to_face_areas BT_cont_to_face_areas [private/internal] mom_barotropic::find_face_areas find_face_areas [private/internal] mom_barotropic::set_dtbt set_dtbt mom_barotropic::set_dtbt->mom_barotropic::bt_cont_to_face_areas mom_barotropic::set_dtbt->mom_barotropic::find_face_areas mom_checksums::chksum0 chksum0 mom_barotropic::set_dtbt->mom_checksums::chksum0 mom_coms_infra::interface::min_across_pes min_across_PEs (interface) mom_barotropic::set_dtbt->mom_coms_infra::interface::min_across_pes mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_barotropic::set_dtbt->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_barotropic::set_dtbt->mom_cpu_clock_infra::cpu_clock_end mom_error_handler::mom_error MOM_error mom_barotropic::set_dtbt->mom_error_handler::mom_error mom_error_handler::mom_mesg MOM_mesg mom_barotropic::set_dtbt->mom_error_handler::mom_mesg mom_error_infra::is_root_pe is_root_pe mom_barotropic::set_dtbt->mom_error_infra::is_root_pe mom_self_attr_load::scalar_sal_sensitivity scalar_SAL_sensitivity mom_barotropic::set_dtbt->mom_self_attr_load::scalar_sal_sensitivity
Text view
Callers call graph
Callers of mom_barotropic::set_dtbt calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::barotropic_init barotropic_init mom_barotropic::set_dtbt set_dtbt mom_barotropic::barotropic_init->mom_barotropic::set_dtbt mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_barotropic::set_dtbt mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_barotropic::set_dtbt
Text view

External calls

time_manager_mod
  • get_date (time_manager_mod::get_date)

subroutine apply_u_velocity_OBCs(ubt, uhbt, ubt_trans, eta, SpV_avg, ubt_old, BT_OBC, G, MS, GV, US, CS, halo, dtbt, bebt, use_BT_cont, integral_BT_cont, dt_elapsed, Datu, BTCL_u, uhbt0, ubt_int, ubt_int_prev, uhbt_int, uhbt_int_prev)

This subroutine applies the open boundary conditions on barotropic zonal velocities and mass transports, as developed by Mehmet Ilicak.

Parameters
  • G [in]

    The ocean's grid structure.

  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • ubt [inout]

    the zonal barotropic velocity [L T-1 ~> m s-1].

  • uhbt [inout]

    the zonal barotropic transport [H L2 T-1 ~> m3 s-1 or kg s-1].

  • ubt_trans [inout]

    The zonal barotropic velocity used in transport [L T-1 ~> m s-1].

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • SpV_avg [in]

    The column average specific volume [R-1 ~> m3 kg-1]

  • ubt_old [in]

    The starting value of ubt in a barotropic step [L T-1 ~> m s-1].

  • BT_OBC [in]

    A structure with the private barotropic arrays related to the open boundary conditions, set by set_up_BT_OBC.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Barotropic control structure

  • halo [in]

    The extra halo size to use here.

  • dtbt [in]

    The time step [T ~> s].

  • bebt [in]

    The fractional weighting of the future velocity in determining the transport [nondim]

  • use_BT_cont [in]

    If true, use the BT_cont_types to calculate transports.

  • integral_BT_cont [in]

    If true, update the barotropic continuity equation directly from the initial condition using the time-integrated barotropic velocity.

  • dt_elapsed [in]

    The amount of time in the barotropic stepping that will have elapsed [T ~> s].

  • Datu [in]

    A fixed estimate of the face areas at u points [H L ~> m2 or kg m-1].

  • BTCL_u [in]

    Structure of information used for a dynamic estimate of the face areas at u-points.

  • uhbt0 [in]

    A correction to the zonal transport so that the barotropic functions agree with the sum of the layer transports [H L2 T-1 ~> m3 s-1 or kg s-1].

  • ubt_int [inout]

    The time-integrated zonal barotropic velocity after this update [L T-1 ~> m s-1]

  • ubt_int_prev [in]

    The time-integrated zonal barotropic velocity before this update [L T-1 ~> m s-1]

  • uhbt_int [inout]

    The time-integrated zonal barotropic transport after this update [H L2 T-1 ~> m3 s-1 or kg s-1]

  • uhbt_int_prev [in]

    The time-integrated zonal barotropic transport before this update [H L2 T-1 ~> m3 s-1 or kg s-1]

Callees call graph
Callees of mom_barotropic::apply_u_velocity_obcs calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_u_velocity_obcs apply_u_velocity_OBCs [private/internal] mom_barotropic::find_uhbt find_uhbt [private/internal] mom_barotropic::apply_u_velocity_obcs->mom_barotropic::find_uhbt
Text view
Callers call graph
Callers of mom_barotropic::apply_u_velocity_obcs calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_u_velocity_obcs apply_u_velocity_OBCs [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::apply_u_velocity_obcs
Text view
subroutine apply_v_velocity_OBCs(vbt, vhbt, vbt_trans, eta, SpV_avg, vbt_old, BT_OBC, G, MS, GV, US, CS, halo, dtbt, bebt, use_BT_cont, integral_BT_cont, dt_elapsed, Datv, BTCL_v, vhbt0, vbt_int, vbt_int_prev, vhbt_int, vhbt_int_prev)

This subroutine applies the open boundary conditions on barotropic meridional velocities and mass transports, as developed by Mehmet Ilicak.

Parameters
  • G [in]

    The ocean's grid structure.

  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • vbt [inout]

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

  • vhbt [inout]

    the meridional barotropic transport [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vbt_trans [inout]

    the meridional BT velocity used in transports [L T-1 ~> m s-1].

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • SpV_avg [in]

    The column average specific volume [R-1 ~> m3 kg-1]

  • vbt_old [in]

    The starting value of vbt in a barotropic step [L T-1 ~> m s-1].

  • BT_OBC [in]

    A structure with the private barotropic arrays related to the open boundary conditions, set by set_up_BT_OBC.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Barotropic control structure

  • halo [in]

    The extra halo size to use here.

  • dtbt [in]

    The time step [T ~> s].

  • bebt [in]

    The fractional weighting of the future velocity in determining the transport [nondim]

  • use_BT_cont [in]

    If true, use the BT_cont_types to calculate transports.

  • integral_BT_cont [in]

    If true, update the barotropic continuity equation directly from the initial condition using the time-integrated barotropic velocity.

  • dt_elapsed [in]

    The amount of time in the barotropic stepping that will have elapsed [T ~> s].

  • Datv [in]

    A fixed estimate of the face areas at v points [H L ~> m2 or kg m-1].

  • BTCL_v [in]

    Structure of information used for a dynamic estimate of the face areas at v-points.

  • vhbt0 [in]

    A correction to the meridional transport so that the barotropic functions agree with the sum of the layer transports [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vbt_int [inout]

    The time-integrated meridional barotropic velocity after this update [L T-1 ~> m s-1].

  • vbt_int_prev [in]

    The time-integrated meridional barotropic velocity before this update [L T-1 ~> m s-1].

  • vhbt_int [inout]

    The time-integrated meridional barotropic transport after this update [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vhbt_int_prev [in]

    The time-integrated meridional barotropic transport before this update [H L2 T-1 ~> m3 s-1 or kg s-1]

Callees call graph
Callees of mom_barotropic::apply_v_velocity_obcs calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_v_velocity_obcs apply_v_velocity_OBCs [private/internal] mom_barotropic::find_vhbt find_vhbt [private/internal] mom_barotropic::apply_v_velocity_obcs->mom_barotropic::find_vhbt
Text view
Callers call graph
Callers of mom_barotropic::apply_v_velocity_obcs calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_v_velocity_obcs apply_v_velocity_OBCs [private/internal] mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::apply_v_velocity_obcs
Text view
subroutine initialize_BT_OBC(OBC, BT_OBC, G, CS)

This subroutine sets up the time-invariant control information about the open boundary conditions on the full wide halo domain used by the barotropic solver.

Parameters
  • OBC [inout]

    An associated pointer to an OBC type.

  • BT_OBC [inout]

    A structure with the private barotropic arrays related to the open boundary conditions, set by set_up_BT_OBC.

  • G [inout]

    The ocean's grid structure.

  • CS [inout]

    Barotropic control structure

Callees call graph
Callees of mom_barotropic::initialize_bt_obc calls cluster_mom_barotropic MOM_barotropic cluster_mom_coms_infra MOM_coms_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler mom_barotropic::initialize_bt_obc initialize_BT_OBC [private/internal] mom_coms_infra::any_across_pes any_across_PEs mom_barotropic::initialize_bt_obc->mom_coms_infra::any_across_pes mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_barotropic::initialize_bt_obc->mom_domain_infra::interface::create_group_pass mom_domain_infra::interface::pass_vector pass_vector (interface) mom_barotropic::initialize_bt_obc->mom_domain_infra::interface::pass_vector mom_error_handler::mom_mesg MOM_mesg mom_barotropic::initialize_bt_obc->mom_error_handler::mom_mesg
Text view
Callers call graph
Callers of mom_barotropic::initialize_bt_obc calls cluster_mom_barotropic MOM_barotropic mom_barotropic::barotropic_init barotropic_init mom_barotropic::initialize_bt_obc initialize_BT_OBC [private/internal] mom_barotropic::barotropic_init->mom_barotropic::initialize_bt_obc
Text view
subroutine set_up_BT_OBC(OBC, eta, SpV_avg, BT_OBC, BT_Domain, G, GV, US, CS, MS, halo, use_BT_cont, integral_BT_cont, dt_baroclinic, Datu, Datv, BTCL_u, BTCL_v, dgeo_de)

This subroutine sets up the time-varying fields in the private structure used to apply the open boundary conditions, as developed by Mehmet Ilicak.

Parameters
  • OBC [inout]

    An associated pointer to an OBC type.

  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • SpV_avg [in]

    The column average specific volume [R-1 ~> m3 kg-1]

  • BT_OBC [inout]

    A structure with the private barotropic arrays related to the open boundary conditions, set by set_up_BT_OBC.

  • BT_Domain [inout]

    MOM_domain_type associated with wide arrays

  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [inout]

    Barotropic control structure

  • halo [in]

    The extra halo size to use here.

  • use_BT_cont [in]

    If true, use the BT_cont_types to calculate transports.

  • integral_BT_cont [in]

    If true, update the barotropic continuity equation directly from the initial condition using the time-integrated barotropic velocity.

  • dt_baroclinic [in]

    The baroclinic timestep for this cycle of updates to the barotropic solver [T ~> s]

  • Datu [in]

    A fixed estimate of the face areas at u points [H L ~> m2 or kg m-1].

  • Datv [in]

    A fixed estimate of the face areas at v points [H L ~> m2 or kg m-1].

  • BTCL_u [in]

    Structure of information used for a dynamic estimate of the face areas at u-points.

  • BTCL_v [in]

    Structure of information used for a dynamic estimate of the face areas at v-points.

  • dgeo_de [in]

    The constant of proportionality between geopotential and sea surface height [nondim].

  • segment

    Open boundary segment

Callees call graph
Callees of mom_barotropic::set_up_bt_obc calls cluster_mom_barotropic MOM_barotropic cluster_mom_domain_infra MOM_domain_infra mom_barotropic::set_up_bt_obc set_up_BT_OBC [private/internal] mom_barotropic::uhbt_to_ubt uhbt_to_ubt [private/internal] mom_barotropic::set_up_bt_obc->mom_barotropic::uhbt_to_ubt mom_barotropic::vhbt_to_vbt vhbt_to_vbt [private/internal] mom_barotropic::set_up_bt_obc->mom_barotropic::vhbt_to_vbt mom_domain_infra::do_group_pass do_group_pass mom_barotropic::set_up_bt_obc->mom_domain_infra::do_group_pass
Text view
Callers call graph
Callers of mom_barotropic::set_up_bt_obc calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::set_up_bt_obc set_up_BT_OBC [private/internal] mom_barotropic::btstep->mom_barotropic::set_up_bt_obc
Text view
subroutine destroy_BT_OBC(BT_OBC)

Clean up the BT_OBC memory.

Parameters
  • BT_OBC [inout]

    A structure with the private barotropic arrays related to the open boundary conditions, set by set_up_BT_OBC.

Callers call graph
Callers of mom_barotropic::destroy_bt_obc calls cluster_mom_barotropic MOM_barotropic mom_barotropic::barotropic_end barotropic_end mom_barotropic::destroy_bt_obc destroy_BT_OBC [private/internal] mom_barotropic::barotropic_end->mom_barotropic::destroy_bt_obc
Text view
subroutine btcalc(h, G, GV, CS, h_u, h_v, may_use_default, OBC)

btcalc determines the fraction of the total water column in each layer at velocity points.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h [in]

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

  • CS [inout]

    Barotropic control structure

  • h_u [in]

    The specified effective thicknesses at u-points, perhaps scaled down to account for viscosity and fractional open areas [H ~> m or kg m-2]. These are used here as non-normalized weights for each layer that are converted the normalized weights for determining the barotropic accelerations.

  • h_v [in]

    The specified effective thicknesses at v-points, perhaps scaled down to account for viscosity and fractional open areas [H ~> m or kg m-2]. These are used here as non-normalized weights for each layer that are converted the normalized weights for determining the barotropic accelerations.

  • may_use_default [in]

    An optional logical argument to indicate that the default velocity point thicknesses may be used for this particular calculation, even though the setting of CS%hvel_scheme would usually require that h_u and h_v be passed in.

  • OBC

    Open boundary control structure.

Callees call graph
Callees of mom_barotropic::btcalc calls cluster_mom_barotropic MOM_barotropic cluster_mom_checksums MOM_checksums cluster_mom_error_handler MOM_error_handler mom_barotropic::btcalc btcalc mom_checksums::interface::hchksum hchksum (interface) mom_barotropic::btcalc->mom_checksums::interface::hchksum mom_checksums::interface::uvchksum uvchksum (interface) mom_barotropic::btcalc->mom_checksums::interface::uvchksum mom_error_handler::mom_error MOM_error mom_barotropic::btcalc->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_barotropic::btcalc calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::barotropic_init barotropic_init mom_barotropic::btcalc btcalc mom_barotropic::barotropic_init->mom_barotropic::btcalc mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_barotropic::btcalc mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_barotropic::btcalc
Text view
function find_uhbt(u, BTC) result(uhbt)

The function find_uhbt determines the zonal transport for a given velocity, or with INTEGRAL_BT_CONT=True it determines the time-integrated zonal transport for a given time-integrated velocity.

Parameters
  • u [in]

    The local zonal velocity [L T-1 ~> m s-1] or time integrated velocity [L ~> m]

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • uhbt

    The zonal barotropic transport [L2 H T-1 ~> m3 s-1] or time integrated transport [L2 H ~> m3]

Callers call graph
Callers of mom_barotropic::find_uhbt calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_u_velocity_obcs apply_u_velocity_OBCs [private/internal] mom_barotropic::find_uhbt find_uhbt [private/internal] mom_barotropic::apply_u_velocity_obcs->mom_barotropic::find_uhbt mom_barotropic::btloop_eta_predictor btloop_eta_predictor [private/internal] mom_barotropic::btloop_eta_predictor->mom_barotropic::find_uhbt mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::find_uhbt mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_uhbt
Text view
function find_duhbt_du(u, BTC) result(duhbt_du)

The function find_duhbt_du determines the marginal zonal face area for a given velocity, or with INTEGRAL_BT_CONT=True for a given time-integrated velocity.

Parameters
  • u [in]

    The local zonal velocity [L T-1 ~> m s-1] or time integrated velocity [L ~> m]

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • duhbt_du

    The zonal barotropic face area [L H ~> m2 or kg m-1]

Callers call graph
Callers of mom_barotropic::find_duhbt_du calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::find_duhbt_du find_duhbt_du [private/internal] mom_barotropic::btstep->mom_barotropic::find_duhbt_du
Text view
function uhbt_to_ubt(uhbt, BTC) result(ubt)

This function inverts the transport function to determine the barotopic velocity that is consistent with a given transport, or if INTEGRAL_BT_CONT=True this finds the time-integrated velocity that is consistent with a time-integrated transport.

Parameters
  • uhbt [in]

    The barotropic zonal transport that should be inverted for, [H L2 T-1 ~> m3 s-1 or kg s-1] or the time-integrated transport [H L2 ~> m3 or kg].

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • ubt

    The result - The velocity that gives uhbt transport [L T-1 ~> m s-1] or the time-integrated velocity [L ~> m].

Callers call graph
Callers of mom_barotropic::uhbt_to_ubt calls cluster_mom_barotropic MOM_barotropic mom_barotropic::set_up_bt_obc set_up_BT_OBC [private/internal] mom_barotropic::uhbt_to_ubt uhbt_to_ubt [private/internal] mom_barotropic::set_up_bt_obc->mom_barotropic::uhbt_to_ubt
Text view
function find_vhbt(v, BTC) result(vhbt)

The function find_vhbt determines the meridional transport for a given velocity, or with INTEGRAL_BT_CONT=True it determines the time-integrated meridional transport for a given time-integrated velocity.

Parameters
  • v [in]

    The local meridional velocity [L T-1 ~> m s-1] or time integrated velocity [L ~> m]

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • vhbt

    The meridional barotropic transport [L2 H T-1 ~> m3 s-1] or time integrated transport [L2 H ~> m3]

Callers call graph
Callers of mom_barotropic::find_vhbt calls cluster_mom_barotropic MOM_barotropic mom_barotropic::apply_v_velocity_obcs apply_v_velocity_OBCs [private/internal] mom_barotropic::find_vhbt find_vhbt [private/internal] mom_barotropic::apply_v_velocity_obcs->mom_barotropic::find_vhbt mom_barotropic::btloop_eta_predictor btloop_eta_predictor [private/internal] mom_barotropic::btloop_eta_predictor->mom_barotropic::find_vhbt mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::find_vhbt mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_vhbt
Text view
function find_dvhbt_dv(v, BTC) result(dvhbt_dv)

The function find_dvhbt_dv determines the marginal meridional face area for a given velocity, or with INTEGRAL_BT_CONT=True for a given time-integrated velocity.

Parameters
  • v [in]

    The local meridional velocity [L T-1 ~> m s-1] or time integrated velocity [L ~> m]

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • dvhbt_dv

    The meridional barotropic face area [L H ~> m2 or kg m-1]

Callers call graph
Callers of mom_barotropic::find_dvhbt_dv calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::find_dvhbt_dv find_dvhbt_dv [private/internal] mom_barotropic::btstep->mom_barotropic::find_dvhbt_dv
Text view
function vhbt_to_vbt(vhbt, BTC) result(vbt)

This function inverts the transport function to determine the barotopic velocity that is consistent with a given transport, or if INTEGRAL_BT_CONT=True this finds the time-integrated velocity that is consistent with a time-integrated transport.

Parameters
  • vhbt [in]

    The barotropic meridional transport that should be inverted for [H L2 T-1 ~> m3 s-1 or kg s-1] or the time-integrated transport [H L2 ~> m3 or kg].

  • BTC [in]

    A structure containing various fields that allow the barotropic transports to be calculated consistently with the layers' continuity equations. The dimensions of some of the elements in this type vary depending on INTEGRAL_BT_CONT.

  • vbt

    The result - The velocity that gives vhbt transport [L T-1 ~> m s-1] or the time-integrated velocity [L ~> m].

Callers call graph
Callers of mom_barotropic::vhbt_to_vbt calls cluster_mom_barotropic MOM_barotropic mom_barotropic::set_up_bt_obc set_up_BT_OBC [private/internal] mom_barotropic::vhbt_to_vbt vhbt_to_vbt [private/internal] mom_barotropic::set_up_bt_obc->mom_barotropic::vhbt_to_vbt
Text view
subroutine set_local_BT_cont_types(BT_cont, BTCL_u, BTCL_v, G, US, MS, BT_Domain, halo, dt_baroclinic)

This subroutine sets up reordered versions of the BT_cont type in the local_BT_cont types, which have wide halos properly filled in.

Parameters
  • BT_cont [inout]

    The BT_cont_type input to the barotropic solver

  • MS [in]

    A type that describes the memory sizes of the argument arrays

  • BTCL_u [out]

    A structure with the u information from BT_cont

  • BTCL_v [out]

    A structure with the v information from BT_cont

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • BT_Domain [inout]

    The domain to use for updating the halos of wide arrays

  • halo [in]

    The extra halo size to use here

  • dt_baroclinic [in]

    The baroclinic time step [T ~> s], which is provided if INTEGRAL_BT_CONTINUITY is true.

Callees call graph
Callees of mom_barotropic::set_local_bt_cont_types calls cluster_mom_barotropic MOM_barotropic cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_domain_infra MOM_domain_infra mom_barotropic::set_local_bt_cont_types set_local_BT_cont_types [private/internal] mom_barotropic::swap swap [private/internal] mom_barotropic::set_local_bt_cont_types->mom_barotropic::swap mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_barotropic::set_local_bt_cont_types->mom_cpu_clock_infra::cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_barotropic::set_local_bt_cont_types->mom_cpu_clock_infra::cpu_clock_end mom_domain_infra::do_group_pass do_group_pass mom_barotropic::set_local_bt_cont_types->mom_domain_infra::do_group_pass mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_barotropic::set_local_bt_cont_types->mom_domain_infra::interface::create_group_pass
Text view
Callers call graph
Callers of mom_barotropic::set_local_bt_cont_types calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::set_local_bt_cont_types set_local_BT_cont_types [private/internal] mom_barotropic::btstep->mom_barotropic::set_local_bt_cont_types
Text view
subroutine adjust_local_BT_cont_types(ubt, uhbt, vbt, vhbt, BTCL_u, BTCL_v, G, US, MS, halo, dt_baroclinic)

Adjust_local_BT_cont_types expands the range of velocities with a cubic curve translating velocities into transports to match the initial values of velocities and summed transports when the velocities are larger than the first guesses of the cubic transition velocities used to set up the local_BT_cont types.

Parameters
  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • ubt [in]

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

  • uhbt [in]

    The linearization zonal barotropic transport [H L2 T-1 ~> m3 s-1 or kg s-1].

  • vbt [in]

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

  • vhbt [in]

    The linearization meridional barotropic transport [H L2 T-1 ~> m3 s-1 or kg s-1].

  • BTCL_u [out]

    A structure with the u information from BT_cont.

  • BTCL_v [out]

    A structure with the v information from BT_cont.

  • G [in]

    The ocean's grid structure.

  • US [in]

    A dimensional unit scaling type

  • halo [in]

    The extra halo size to use here.

  • dt_baroclinic [in]

    The baroclinic time step [T ~> s], which is provided if INTEGRAL_BT_CONTINUITY is true.

Callers call graph
Callers of mom_barotropic::adjust_local_bt_cont_types calls cluster_mom_barotropic MOM_barotropic mom_barotropic::adjust_local_bt_cont_types adjust_local_BT_cont_types [private/internal] mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::adjust_local_bt_cont_types
Text view
subroutine BT_cont_to_face_areas(BT_cont, Datu, Datv, G, US, MS, halo)

This subroutine uses the BT_cont_type to find the maximum face areas, which can then be used for finding wave speeds, etc.

Parameters
  • BT_cont [inout]

    The BT_cont_type input to the barotropic solver.

  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • Datu [out]

    The effective zonal face area [H L ~> m2 or kg m-1].

  • Datv [out]

    The effective meridional face area [H L ~> m2 or kg m-1].

  • G [in]

    The ocean's grid structure.

  • US [in]

    A dimensional unit scaling type

  • halo [in]

    The extra halo size to use here.

Callers call graph
Callers of mom_barotropic::bt_cont_to_face_areas calls cluster_mom_barotropic MOM_barotropic mom_barotropic::bt_cont_to_face_areas BT_cont_to_face_areas [private/internal] mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::bt_cont_to_face_areas mom_barotropic::set_dtbt set_dtbt mom_barotropic::set_dtbt->mom_barotropic::bt_cont_to_face_areas
Text view
subroutine swap(a, b)

Swap the values of two real variables

Parameters
  • a [inout]

    The first variable to be swapped [arbitrary units]

  • b [inout]

    The second variable to be swapped [arbitrary units]

Callers call graph
Callers of mom_barotropic::swap calls cluster_mom_barotropic MOM_barotropic mom_barotropic::btstep btstep mom_barotropic::swap swap [private/internal] mom_barotropic::btstep->mom_barotropic::swap mom_barotropic::set_local_bt_cont_types set_local_BT_cont_types [private/internal] mom_barotropic::set_local_bt_cont_types->mom_barotropic::swap
Text view
subroutine find_face_areas(Datu, Datv, G, GV, US, CS, MS, halo, eta, add_max)

This subroutine determines the open face areas of cells for calculating the barotropic transport.

Parameters
  • MS [in]

    A type that describes the memory sizes of the argument arrays.

  • Datu [out]

    The open zonal face area [H L ~> m2 or kg m-1].

  • Datv [out]

    The open meridional face area [H L ~> m2 or kg m-1].

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS [in]

    Barotropic control structure

  • halo [in]

    The halo size to use, default = 1.

  • eta [in]

    The barotropic free surface height anomaly or column mass anomaly [H ~> m or kg m-2].

  • add_max [in]

    A value to add to the maximum depth (used to overestimate the external wave speed) [Z ~> m].

Callers call graph
Callers of mom_barotropic::find_face_areas calls cluster_mom_barotropic MOM_barotropic mom_barotropic::barotropic_init barotropic_init mom_barotropic::find_face_areas find_face_areas [private/internal] mom_barotropic::barotropic_init->mom_barotropic::find_face_areas mom_barotropic::btstep btstep mom_barotropic::btstep->mom_barotropic::find_face_areas mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_barotropic::find_face_areas mom_barotropic::set_dtbt set_dtbt mom_barotropic::set_dtbt->mom_barotropic::find_face_areas
Text view
subroutine bt_mass_source(h, eta, set_cor, G, GV, CS)

bt_mass_source determines the appropriately limited mass source for the barotropic solver, along with a corrective fictitious mass source that will drive the barotropic estimate of the free surface height toward the baroclinic estimate.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h [in]

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

  • eta [in]

    The free surface height that is to be corrected [H ~> m or kg m-2].

  • set_cor [in]

    A flag to indicate whether to set the corrective fluxes (and update the slowly varying part of eta_cor) (.true.) or whether to incrementally update the corrective fluxes.

  • CS [inout]

    Barotropic control structure

Callees call graph
Callees of mom_barotropic::bt_mass_source calls cluster_mom_barotropic MOM_barotropic cluster_mom_error_handler MOM_error_handler mom_barotropic::bt_mass_source bt_mass_source mom_error_handler::mom_error MOM_error mom_barotropic::bt_mass_source->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_barotropic::bt_mass_source calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::bt_mass_source bt_mass_source mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_barotropic::bt_mass_source mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_barotropic::bt_mass_source
Text view
subroutine barotropic_init(u, v, h, Time, G, GV, US, param_file, diag, CS, restart_CS, calc_dtbt, BT_cont, OBC, SAL_CSp, HA_CSp)

barotropic_init initializes a number of time-invariant fields used in the barotropic calculation and initializes any barotropic fields that have not already been initialized.

Parameters
  • G [inout]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • u [in]

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

  • v [in]

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

  • h [in]

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

  • Time [in]

    The current model time.

  • param_file [in]

    A structure to parse for run-time parameters.

  • diag [inout]

    A structure that is used to regulate diagnostic output.

  • CS [inout]

    Barotropic control structure

  • restart_CS [in]

    MOM restart control structure

  • calc_dtbt [out]

    If true, the barotropic time step must be recalculated before stepping.

  • BT_cont

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

  • OBC

    The open boundary condition structure.

  • SAL_CSp

    A pointer to the control structure of the SAL module.

  • HA_CSp

    A pointer to the control structure of the harmonic analysis module

Callees call graph
Callees of mom_barotropic::barotropic_init calls cluster_mom_barotropic MOM_barotropic cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_open_boundary MOM_open_boundary cluster_mom_restart MOM_restart cluster_mom_self_attr_load MOM_self_attr_load cluster_mom_streaming_filter MOM_streaming_filter cluster_mom_string_functions MOM_string_functions cluster_mom_variables MOM_variables cluster_mom_wave_drag MOM_wave_drag mom_barotropic::barotropic_init barotropic_init mom_barotropic::btcalc btcalc mom_barotropic::barotropic_init->mom_barotropic::btcalc mom_barotropic::find_face_areas find_face_areas [private/internal] mom_barotropic::barotropic_init->mom_barotropic::find_face_areas mom_barotropic::initialize_bt_obc initialize_BT_OBC [private/internal] mom_barotropic::barotropic_init->mom_barotropic::initialize_bt_obc mom_barotropic::set_dtbt set_dtbt mom_barotropic::barotropic_init->mom_barotropic::set_dtbt mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_barotropic::barotropic_init->mom_cpu_clock_infra::cpu_clock_id mom_diag_mediator::register_diag_field register_diag_field mom_barotropic::barotropic_init->mom_diag_mediator::register_diag_field mom_domain_infra::do_group_pass do_group_pass mom_barotropic::barotropic_init->mom_domain_infra::do_group_pass mom_domain_infra::interface::clone_mom_domain clone_MOM_domain (interface) mom_barotropic::barotropic_init->mom_domain_infra::interface::clone_mom_domain mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_barotropic::barotropic_init->mom_domain_infra::interface::create_group_pass mom_domain_infra::interface::pass_var pass_var (interface) mom_barotropic::barotropic_init->mom_domain_infra::interface::pass_var mom_domain_infra::interface::pass_vector pass_vector (interface) mom_barotropic::barotropic_init->mom_domain_infra::interface::pass_vector mom_error_handler::mom_error MOM_error mom_barotropic::barotropic_init->mom_error_handler::mom_error mom_error_handler::mom_mesg MOM_mesg mom_barotropic::barotropic_init->mom_error_handler::mom_mesg mom_file_parser::interface::get_param get_param (interface) mom_barotropic::barotropic_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_param log_param (interface) mom_barotropic::barotropic_init->mom_file_parser::interface::log_param mom_file_parser::interface::log_version log_version (interface) mom_barotropic::barotropic_init->mom_file_parser::interface::log_version mom_io::interface::mom_read_data MOM_read_data (interface) mom_barotropic::barotropic_init->mom_io::interface::mom_read_data mom_open_boundary::open_boundary_query open_boundary_query mom_barotropic::barotropic_init->mom_open_boundary::open_boundary_query mom_restart::interface::query_initialized query_initialized (interface) mom_barotropic::barotropic_init->mom_restart::interface::query_initialized mom_self_attr_load::scalar_sal_sensitivity scalar_SAL_sensitivity mom_barotropic::barotropic_init->mom_self_attr_load::scalar_sal_sensitivity mom_streaming_filter::filt_init Filt_init mom_barotropic::barotropic_init->mom_streaming_filter::filt_init mom_string_functions::slasher slasher mom_barotropic::barotropic_init->mom_string_functions::slasher mom_variables::alloc_bt_cont_type alloc_BT_cont_type mom_barotropic::barotropic_init->mom_variables::alloc_bt_cont_type mom_wave_drag::wave_drag_init wave_drag_init mom_barotropic::barotropic_init->mom_wave_drag::wave_drag_init
Text view
Callers call graph
Callers of mom_barotropic::barotropic_init calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::barotropic_init barotropic_init mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_barotropic::barotropic_init mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_barotropic::barotropic_init
Text view
subroutine barotropic_get_tav(CS, ubtav, vbtav, G, US)

Copies ubtav and vbtav from private type into arrays

Parameters
  • CS [in]

    Barotropic control structure

  • G [in]

    Grid structure

  • ubtav [inout]

    Zonal barotropic velocity averaged over a baroclinic timestep [L T-1 ~> m s-1]

  • vbtav [inout]

    Meridional barotropic velocity averaged over a baroclinic timestep [L T-1 ~> m s-1]

  • US [in]

    A dimensional unit scaling type

Callers call graph
Callers of mom_barotropic::barotropic_get_tav calls cluster_mom_barotropic MOM_barotropic cluster_mom_hor_visc MOM_hor_visc mom_barotropic::barotropic_get_tav barotropic_get_tav mom_hor_visc::hor_visc_gme_setup hor_visc_GME_setup [private/internal] mom_hor_visc::hor_visc_gme_setup->mom_barotropic::barotropic_get_tav
Text view
subroutine barotropic_end(CS)

Clean up the barotropic control structure.

Parameters
  • CS [inout]

    Control structure to clear out.

Callees call graph
Callees of mom_barotropic::barotropic_end calls cluster_mom_barotropic MOM_barotropic cluster_mom_domain_infra MOM_domain_infra mom_barotropic::barotropic_end barotropic_end mom_barotropic::destroy_bt_obc destroy_BT_OBC [private/internal] mom_barotropic::barotropic_end->mom_barotropic::destroy_bt_obc mom_domain_infra::deallocate_mom_domain deallocate_MOM_domain mom_barotropic::barotropic_end->mom_domain_infra::deallocate_mom_domain
Text view
Callers call graph
Callers of mom_barotropic::barotropic_end calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::barotropic_end barotropic_end mom_dynamics_split_rk2::end_dyn_split_rk2 end_dyn_split_RK2 mom_dynamics_split_rk2::end_dyn_split_rk2->mom_barotropic::barotropic_end mom_dynamics_split_rk2b::end_dyn_split_rk2b end_dyn_split_RK2b mom_dynamics_split_rk2b::end_dyn_split_rk2b->mom_barotropic::barotropic_end
Text view
subroutine register_barotropic_restarts(HI, GV, US, param_file, CS, restart_CS)

This subroutine is used to register any fields from MOM_barotropic.F90 that should be written to or read from the restart file.

Parameters
  • HI [in]

    A horizontal index type structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters.

  • CS [inout]

    Barotropic control structure

  • restart_CS [inout]

    MOM restart control structure

  • n_filters

    Number of streaming band-pass filters to be used in the simulation.

Callees call graph
Callees of mom_barotropic::register_barotropic_restarts calls cluster_mom_barotropic MOM_barotropic cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_mom_streaming_filter MOM_streaming_filter mom_barotropic::register_barotropic_restarts register_barotropic_restarts mom_file_parser::interface::get_param get_param (interface) mom_barotropic::register_barotropic_restarts->mom_file_parser::interface::get_param mom_io::var_desc var_desc mom_barotropic::register_barotropic_restarts->mom_io::var_desc mom_restart::interface::register_restart_field register_restart_field (interface) mom_barotropic::register_barotropic_restarts->mom_restart::interface::register_restart_field mom_restart::interface::register_restart_pair register_restart_pair (interface) mom_barotropic::register_barotropic_restarts->mom_restart::interface::register_restart_pair mom_streaming_filter::filt_register Filt_register mom_barotropic::register_barotropic_restarts->mom_streaming_filter::filt_register
Text view
Callers call graph
Callers of mom_barotropic::register_barotropic_restarts calls cluster_mom_barotropic MOM_barotropic cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b mom_barotropic::register_barotropic_restarts register_barotropic_restarts mom_dynamics_split_rk2::register_restarts_dyn_split_rk2 register_restarts_dyn_split_RK2 mom_dynamics_split_rk2::register_restarts_dyn_split_rk2->mom_barotropic::register_barotropic_restarts mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b register_restarts_dyn_split_RK2b mom_dynamics_split_rk2b::register_restarts_dyn_split_rk2b->mom_barotropic::register_barotropic_restarts
Text view
API generated with Flint · Rendered from reStructuredText