MOM_variables module reference

Provides transparent structures with groups of MOM6 variables and supporting routines

Data Types

p3d

A structure for creating arrays of pointers to 3D arrays

p2d

A structure for creating arrays of pointers to 2D arrays

surface

Pointers to various fields which may be used describe the surface state of MOM, and which will be returned to the calling program

thermo_var_ptrs

Pointers to an assortment of thermodynamic fields that may be available, including potential temperature, salinity, heat capacity, and the equation of state control structure.

ocean_internal_state

Pointers to all of the prognostic variables allocated in MOM_variables.F90 and MOM.F90.

accel_diag_ptrs

Pointers to arrays with accelerations, which can later be used for derived diagnostics, like energy balances.

cont_diag_ptrs

Pointers to arrays with transports, which can later be used for derived diagnostics, like energy balances.

vertvisc_type

Vertical viscosities, drag coefficients, and related fields.

BT_cont_type

Container for information about the summed layer transports and how they will vary as the barotropic velocity is changed.

porous_barrier_type

Container for grids modifying cell metric at porous barriers

Functions/Subroutines

allocate_surface_state

Allocates the fields for the surface (return) properties of the ocean model. Unused fields are unallocated.

deallocate_surface_state

Deallocates the elements of a surface state type.

rotate_surface_state

Rotate the surface state fields from the input to the model indices.

alloc_BT_cont_type

Allocates the arrays contained within a BT_cont_type and initializes them to 0.

dealloc_BT_cont_type

Deallocates the arrays contained within a BT_cont_type.

MOM_thermovar_chksum

Diagnostic checksums on various elements of a thermo_var_ptrs type for debugging.

Type Documentation

type, public :: p3d

A structure for creating arrays of pointers to 3D arrays

Parameters
  • p

    A pointer to a 3D array [various]

type, public :: p2d

A structure for creating arrays of pointers to 2D arrays

Parameters
  • p

    A pointer to a 2D array [various]

type, public :: surface

Pointers to various fields which may be used describe the surface state of MOM, and which will be returned to the calling program

Parameters
  • SST

    The sea surface temperature [C ~> degC].

  • SSS

    The sea surface salinity [S ~> psu or gSalt/kg].

  • sfc_density

    The mixed layer density [R ~> kg m-3].

  • Hml

    The mixed layer depth [Z ~> m].

  • u

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

  • v

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

  • sea_lev

    The sea level [Z ~> m]. If a reduced surface gravity is used, that is compensated for in sea_lev.

  • frazil

    The energy needed to heat the ocean column to the freezing point during the call to step_MOM [Q R Z ~> J m-2].

  • melt_potential

    Instantaneous amount of heat that can be used to melt sea ice [Q R Z ~> J m-2]. This is computed w.r.t. surface freezing temperature.

  • ocean_mass

    The total mass of the ocean [R Z ~> kg m-2].

  • ocean_heat

    The total heat content of the ocean in [C R Z ~> degC kg m-2].

  • ocean_salt

    The total salt content of the ocean in [1e-3 S R Z ~> kgSalt m-2].

  • taux_shelf

    The zonal stresses on the ocean under shelves [R L Z T-2 ~> Pa].

  • tauy_shelf

    The meridional stresses on the ocean under shelves [R L Z T-2 ~> Pa].

  • fco2

    CO2 flux from the ocean to the atmosphere [R Z T-1 ~> kgCO2 m-2 s-1]

  • T_is_conT

    If true, the temperature variable SST is actually the conservative temperature in [C ~> degC].

  • S_is_absS

    If true, the salinity variable SSS is actually the absolute salinity in [S ~> gSalt kg-1].

  • tr_fields

    A structure that may contain an array of named fields describing tracer-related quantities.

  • arrays_allocated

    A flag that indicates whether the surface type has had its memory allocated.

type, public :: thermo_var_ptrs

Pointers to an assortment of thermodynamic fields that may be available, including potential temperature, salinity, heat capacity, and the equation of state control structure.

Parameters
  • T

    Potential temperature [C ~> degC].

  • S

    Salinity [PSU] or [gSalt/kg], generically [S ~> ppt].

  • p_surf

    Ocean surface pressure used in equation of state calculations [R L2 T-2 ~> Pa]

  • eqn_of_state

    Type that indicates the equation of state to use.

  • P_Ref

    The coordinate-density reference pressure [R L2 T-2 ~> Pa]. This is the pressure used to calculate Rml from T and S when eqn_of_state is associated.

  • C_p

    The heat capacity of seawater [Q C-1 ~> J degC-1 kg-1]. When conservative temperature is used, this is constant and exactly 3991.86795711963 J degC-1 kg-1.

  • T_is_conT

    If true, the temperature variable tv%T is actually the conservative temperature [C ~> degC].

  • S_is_absS

    If true, the salinity variable tv%S is actually the absolute salinity in units of [S ~> gSalt kg-1].

  • min_salinity

    The minimum value of salinity when BOUND_SALINITY=True [S ~> ppt].

  • SpV_avg

    The layer averaged in situ specific volume [R-1 ~> m3 kg-1].

  • valid_SpV_halo

    If positive, the valid halo size for SpV_avg, or if negative SpV_avg is not currently set.

  • frazil

    The energy needed to heat the ocean column to the freezing point since calculate_surface_state was last called [Q Z R ~> J m-2].

  • frazil_was_reset

    If true, frazil has not accumulated since it was last reset.

  • salt_deficit

    The salt needed to maintain the ocean column at a minimum salinity of MIN_SALINITY since the last time that calculate_surface_state was called, [S R Z ~> gSalt m-2].

  • TempxPmE

    The net inflow of water into the ocean times the temperature at which this inflow occurs since the last call to calculate_surface_state [C R Z ~> degC kg m-2]. This should be prescribed in the forcing fields, but as it often is not, this is a useful heat budget diagnostic.

  • internal_heat

    Any internal or geothermal heat sources that have been applied to the ocean since the last call to calculate_surface_state [C R Z ~> degC kg m-2].

  • varT

    SGS variance of potential temperature [C2 ~> degC2].

  • varS

    SGS variance of salinity [S2 ~> ppt2].

  • covarTS

    SGS covariance of salinity and potential temperature [C S ~> degC ppt].

  • tr_T

    pointer to temp in tracer registry

  • tr_S

    pointer to salinty in tracer registry

type, public :: ocean_internal_state

Pointers to all of the prognostic variables allocated in MOM_variables.F90 and MOM.F90.

It is useful for sending these variables for diagnostics, and in preparation for ensembles later on. All variables have the same names as the local (public) variables they refer to in MOM.F90.

Parameters
  • T

    Pointer to the temperature state variable [C ~> degC]

  • S

    Pointer to the salinity state variable [S ~> ppt] (i.e., PSU or g/kg)

  • u

    Pointer to the zonal velocity [L T-1 ~> m s-1]

  • v

    Pointer to the meridional velocity [L T-1 ~> m s-1]

  • h

    Pointer to the layer thicknesses [H ~> m or kg m-2]

  • uh

    Pointer to zonal transports [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vh

    Pointer to meridional transports [H L2 T-1 ~> m3 s-1 or kg s-1]

  • CAu

    Pointer to the zonal Coriolis and Advective acceleration [L T-2 ~> m s-2]

  • CAv

    Pointer to the meridional Coriolis and Advective acceleration [L T-2 ~> m s-2]

  • PFu

    Pointer to the zonal Pressure force acceleration [L T-2 ~> m s-2]

  • PFv

    Pointer to the meridional Pressure force acceleration [L T-2 ~> m s-2]

  • diffu

    Pointer to the zonal acceleration due to lateral viscosity [L T-2 ~> m s-2]

  • diffv

    Pointer to the meridional acceleration due to lateral viscosity [L T-2 ~> m s-2]

  • pbce

    Pointer to the baroclinic pressure force dependency on free surface movement [L2 T-2 H-1 ~> m s-2 or m4 kg-1 s-2]

  • u_accel_bt

    Pointer to the zonal barotropic-solver acceleration [L T-2 ~> m s-2]

  • v_accel_bt

    Pointer to the meridional barotropic-solver acceleration [L T-2 ~> m s-2]

  • u_av

    Pointer to zonal velocity averaged over the timestep [L T-1 ~> m s-1]

  • v_av

    Pointer to meridional velocity averaged over the timestep [L T-1 ~> m s-1]

  • u_prev

    Pointer to zonal velocity at the end of the last timestep [L T-1 ~> m s-1]

  • v_prev

    Pointer to meridional velocity at the end of the last timestep [L T-1 ~> m s-1]

type, public :: accel_diag_ptrs

Pointers to arrays with accelerations, which can later be used for derived diagnostics, like energy balances.

Parameters
  • diffu

    Zonal acceleration due to along isopycnal viscosity [L T-2 ~> m s-2]

  • diffv

    Meridional acceleration due to along isopycnal viscosity [L T-2 ~> m s-2]

  • CAu

    Zonal Coriolis and momentum advection accelerations [L T-2 ~> m s-2]

  • CAv

    Meridional Coriolis and momentum advection accelerations [L T-2 ~> m s-2]

  • PFu

    Zonal acceleration due to pressure forces [L T-2 ~> m s-2]

  • PFv

    Meridional acceleration due to pressure forces [L T-2 ~> m s-2]

  • du_dt_visc

    Zonal acceleration due to vertical viscosity [L T-2 ~> m s-2]

  • dv_dt_visc

    Meridional acceleration due to vertical viscosity [L T-2 ~> m s-2]

  • du_dt_visc_gl90

    Zonal acceleration due to GL90 vertical viscosity

  • dv_dt_visc_gl90

    Meridional acceleration due to GL90 vertical viscosity

  • du_dt_str

    Zonal acceleration due to the surface stress (included in du_dt_visc) [L T-2 ~> m s-2]

  • dv_dt_str

    Meridional acceleration due to the surface stress (included in dv_dt_visc) [L T-2 ~> m s-2]

  • du_dt_dia

    Zonal acceleration due to diapycnal mixing [L T-2 ~> m s-2]

  • dv_dt_dia

    Meridional acceleration due to diapycnal mixing [L T-2 ~> m s-2]

  • u_accel_bt

    Pointer to the zonal barotropic-solver acceleration [L T-2 ~> m s-2]

  • v_accel_bt

    Pointer to the meridional barotropic-solver acceleration [L T-2 ~> m s-2]

  • sal_u

    Zonal acceleration due to self-attraction and loading [L T-2 ~> m s-2]

  • sal_v

    Meridional acceleration due to self-attraction and loading [L T-2 ~> m s-2]

  • tides_u

    Zonal acceleration due to astronomical tidal forcing [L T-2 ~> m s-2]

  • tides_v

    Meridional acceleration due to astronomical tidal forcing [L T-2 ~> m s-2]

  • du_other

    Zonal velocity changes due to any other processes that are not due to any explicit accelerations [L T-1 ~> m s-1].

  • dv_other

    Meridional velocity changes due to any other processes that are not due to any explicit accelerations [L T-1 ~> m s-1].

  • bt_pgf_u

    Zonal acceleration due to anomalous pressure gradient from barotropic solver, a 3D component of u_accel_bt that includes both PFuBT and the offset term for central differencing timestepping [L T-2 ~> m s-2]

  • bt_pgf_v

    Meridional acceleration due to anomalous pressure gradient from barotropic solver, a 3D component of v_accel_bt that includes both PFvBT and the offset term for central differencing timestepping [L T-2 ~> m s-2]

  • bt_cor_u

    Zonal acceleration due to anomalous Coriolis force from barotropic solver, a 2D component of u_accel_bt [L T-2 ~> m s-2]

  • bt_cor_v

    Meridional acceleration due to anomalous Coriolis force from barotropic solver, a 2D component of v_accel_bt [L T-2 ~> m s-2]

  • bt_lwd_u

    Zonal acceleration due to linear wave drag from barotropic solver, a 2D component of u_accel_bt [L T-2 ~> m s-2]

  • bt_lwd_v

    Meridional acceleration due to linear wave drag from barotropic solver, a 2D component of v_accel_bt [L T-2 ~> m s-2]

  • gradKEu

    gradKEu = - d/dx(u2) [L T-2 ~> m s-2]

  • gradKEv

    gradKEv = - d/dy(u2) [L T-2 ~> m s-2]

  • rv_x_v

    rv_x_v = rv * v at u [L T-2 ~> m s-2]

  • rv_x_u

    rv_x_u = rv * u at v [L T-2 ~> m s-2]

  • diag_hfrac_u

    Fractional layer thickness at u points [nondim]

  • diag_hfrac_v

    Fractional layer thickness at v points [nondim]

  • diag_hu

    layer thickness at u points, modulated by the viscous remnant and fractional open areas [H ~> m or kg m-2]

  • diag_hv

    layer thickness at v points, modulated by the viscous remnant and fractional open areas [H ~> m or kg m-2]

  • visc_rem_u

    viscous remnant at u points [nondim]

  • visc_rem_v

    viscous remnant at v points [nondim]

type, public :: cont_diag_ptrs

Pointers to arrays with transports, which can later be used for derived diagnostics, like energy balances.

Parameters
  • uh

    Resolved zonal layer thickness fluxes, [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vh

    Resolved meridional layer thickness fluxes, [H L2 T-1 ~> m3 s-1 or kg s-1]

  • uh_smooth

    Interface height smoothing induced zonal volume fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vh_smooth

    Interface height smoothing induced meridional volume fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • uhGM

    Isopycnal height diffusion induced zonal volume fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • vhGM

    Isopycnal height diffusion induced meridional volume fluxes [H L2 T-1 ~> m3 s-1 or kg s-1]

  • diapyc_vel

    The net diapycnal velocity [H T-1 ~> m s-1 or kg m-2 s-1]

type, public :: vertvisc_type

Vertical viscosities, drag coefficients, and related fields.

Parameters
  • bbl_thick_u

    The bottom boundary layer thickness at the u-points [Z ~> m].

  • bbl_thick_v

    The bottom boundary layer thickness at the v-points [Z ~> m].

  • kv_bbl_u

    The bottom boundary layer viscosity at the u-points [H Z T-1 ~> m2 s-1 or Pa s]

  • kv_bbl_v

    The bottom boundary layer viscosity at the v-points [H Z T-1 ~> m2 s-1 or Pa s]

  • ustar_BBL

    The turbulence velocity in the bottom boundary layer at h points [H T-1 ~> m s-1 or kg m-2 s-1].

  • BBL_meanKE_loss

    The viscous loss of mean kinetic energy in the bottom boundary layer [H L2 T-3 ~> m3 s-3 or W m-2].

  • BBL_meanKE_loss_sqrtCd

    The viscous loss of mean kinetic energy in the bottom boundary layer divided by the square root of the drag coefficient [H L2 T-3 ~> m3 s-3 or W m-2]. This is being set only to retain old answers, and should be phased out.

  • taux_shelf

    The zonal stresses on the ocean under shelves [R Z L T-2 ~> Pa].

  • tauy_shelf

    The meridional stresses on the ocean under shelves [R Z L T-2 ~> Pa].

  • tbl_thick_shelf_u

    Thickness of the viscous top boundary layer under ice shelves at u-points [Z ~> m].

  • tbl_thick_shelf_v

    Thickness of the viscous top boundary layer under ice shelves at v-points [Z ~> m].

  • kv_tbl_shelf_u

    Viscosity in the viscous top boundary layer under ice shelves at u-points [H Z T-1 ~> m2 s-1 or Pa s]

  • kv_tbl_shelf_v

    Viscosity in the viscous top boundary layer under ice shelves at v-points [H Z T-1 ~> m2 s-1 or Pa s]

  • nkml_visc_u

    The number of layers in the viscous surface mixed layer at u-points [nondim]. This is not an integer because there may be fractional layers, and it is stored in terms of layers, not depth, to facilitate the movement of the viscous boundary layer with the flow.

  • nkml_visc_v

    The number of layers in the viscous surface mixed layer at v-points [nondim].

  • Ray_u

    The Rayleigh drag velocity to be applied to each layer at u-points [H T-1 ~> m s-1 or Pa s m-1].

  • Ray_v

    The Rayleigh drag velocity to be applied to each layer at v-points [H T-1 ~> m s-1 or Pa s m-1].

  • MLD

    Instantaneous active mixing layer depth as used by the mixed layer restratification parameterization [Z ~> m].

  • Lam2

    (Langmuir Number)^-2 [nondim].

  • h_ML

    Instantaneous active mixing layer thickness as used by the mixed layer restratification parameterization [H ~> m or kg m-2]

  • MLD_param

    Instantaneous active mixed or mixing layer depth as used by the brine plume parameterization. It could be coordinated with MLD above but we may want the ability to use different scales in different parameterizations [Z ~> m].

  • h_ML_param

    Instantaneous active mixed or mixing layer thickness as used by the brine plume parameterization [H ~> m or kg m-2].

  • sfc_buoy_flx

    Surface buoyancy flux (derived) [Z2 T-3 ~> m2 s-3].

  • Kd_shear

    The shear-driven turbulent diapycnal diffusivity at the interfaces between layers in tracer columns [H Z T-1 ~> m2 s-1 or kg m-1 s-1]

  • Kv_shear

    The shear-driven turbulent vertical viscosity at the interfaces between layers in tracer columns [H Z T-1 ~> m2 s-1 or Pa s]

  • Kv_shear_Bu

    The shear-driven turbulent vertical viscosity at the interfaces between layers in corner columns [H Z T-1 ~> m2 s-1 or Pa s]

  • Kv_slow

    The turbulent vertical viscosity component due to "slow" processes (e.g., tidal, background, convection etc) [H Z T-1 ~> m2 s-1 or Pa s]

  • TKE_turb

    The turbulent kinetic energy per unit mass at the interfaces [Z2 T-2 ~> m2 s-2]. This may be at the tracer or corner points

type, public :: BT_cont_type

Container for information about the summed layer transports and how they will vary as the barotropic velocity is changed.

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], 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], beyond which the marginal open face area is FA_u_EE. uBT_EE must be non-positive.

  • 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], 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], beyond which the marginal open face area is FA_v_NN. vBT_NN must be non-positive.

  • h_u

    An effective thickness at zonal faces, taking into account the effects of vertical viscosity and fractional open areas [H ~> m or kg m-2]. This is primarily used as a non-normalized weight in determining the depth averaged accelerations for the barotropic solver.

  • h_v

    An effective thickness at meridional faces, taking into account the effects of vertical viscosity and fractional open areas [H ~> m or kg m-2]. This is primarily used as a non-normalized weight in determining the depth averaged accelerations for the barotropic solver.

  • pass_polarity_BT

    Structure for polarity group halo updates

  • pass_FA_uv

    Structure for face area group halo updates

type, public :: porous_barrier_type

Container for grids modifying cell metric at porous barriers

Parameters
  • por_face_areaU

    fractional open area of U-faces [nondim]

  • por_face_areaV

    fractional open area of V-faces [nondim]

  • por_layer_widthU

    fractional open width of U-faces [nondim]

  • por_layer_widthV

    fractional open width of V-faces [nondim]

Functions/Subroutine Documentation

subroutine allocate_surface_state(sfc_state, G, use_temperature, do_integrals, gas_fields_ocn, use_meltpot, use_iceshelves, omit_frazil, sfc_state_in, turns, use_MARBL_tracers)

Allocates the fields for the surface (return) properties of the ocean model. Unused fields are unallocated.

Parameters
  • G [in]

    ocean grid structure

  • sfc_state [inout]

    ocean surface state type to be allocated.

  • use_temperature [in]

    If true, allocate the space for thermodynamic variables.

  • do_integrals [in]

    If true, allocate the space for vertically integrated fields.

  • gas_fields_ocn [in]

    If present, this type describes the ocean and surface-ice fields that will participate in the calculation of additional gas or other tracer fluxes, and can be used to spawn related internal variables in the ice model.

  • use_meltpot [in]

    If true, allocate the space for melt potential

  • use_iceshelves [in]

    If true, allocate the space for the stresses under ice shelves.

  • omit_frazil [in]

    If present and false, do not allocate the space to pass frazil fluxes to the coupler

  • sfc_state_in [in]

    If present and its tr_fields are initialized, this type describes the ocean and surface-ice fields that will participate in the calculation of additional gas or other tracer fluxes, and can be used to spawn related internal variables in the ice model. If gas_fields_ocn is present, it is used and tr_fields_in is ignored.

  • turns [in]

    If present, the number of counterclockwise quarter turns to use on the new grid.

  • use_MARBL_tracers [in]

    If true, allocate the space for CO2 flux from MARBL

Callees call graph
Callees of mom_variables::allocate_surface_state calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_initialized coupler_type_initialized (interface) mom_coupler_types::interface::coupler_type_spawn coupler_type_spawn (interface) mom_variables::allocate_surface_state allocate_surface_state mom_variables::allocate_surface_state->mom_coupler_types::interface::coupler_type_initialized mom_variables::allocate_surface_state->mom_coupler_types::interface::coupler_type_spawn
Text view
Callers call graph
Callers of mom_variables::allocate_surface_state calls cluster_mom MOM cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_variables MOM_variables mom::extract_surface_state extract_surface_state mom_variables::allocate_surface_state allocate_surface_state mom::extract_surface_state->mom_variables::allocate_surface_state mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_ice_shelf::initialize_ice_shelf->mom_variables::allocate_surface_state mom_variables::rotate_surface_state rotate_surface_state mom_variables::rotate_surface_state->mom_variables::allocate_surface_state
Text view
subroutine deallocate_surface_state(sfc_state)

Deallocates the elements of a surface state type.

Parameters
  • sfc_state [inout]

    ocean surface state type to be deallocated here.

Callees call graph
Callees of mom_variables::deallocate_surface_state calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_variables MOM_variables mom_coupler_types::interface::coupler_type_destructor coupler_type_destructor (interface) mom_variables::deallocate_surface_state deallocate_surface_state mom_variables::deallocate_surface_state->mom_coupler_types::interface::coupler_type_destructor
Text view
Callers call graph
Callers of mom_variables::deallocate_surface_state calls cluster_mom MOM cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_variables MOM_variables mom::extract_surface_state extract_surface_state mom_variables::deallocate_surface_state deallocate_surface_state mom::extract_surface_state->mom_variables::deallocate_surface_state mom::step_mom step_MOM mom::step_mom->mom_variables::deallocate_surface_state mom_ice_shelf::adjust_ice_sheet_frazil adjust_ice_sheet_frazil mom_ice_shelf::adjust_ice_sheet_frazil->mom_variables::deallocate_surface_state mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_ice_shelf::shelf_calc_flux->mom_variables::deallocate_surface_state
Text view
subroutine rotate_surface_state(sfc_state_in, sfc_state, G, turns)

Rotate the surface state fields from the input to the model indices.

Parameters
  • sfc_state_in [in]

    The input unrotated surface state type that is the data source.

  • sfc_state [inout]

    The rotated surface state type whose arrays will be filled in

  • G [in]

    The ocean grid structure

  • turns [in]

    The number of counterclockwise quarter turns to use on the rotated grid.

Callees call graph
Callees of mom_variables::rotate_surface_state calls cluster_mom_array_transform MOM_array_transform cluster_mom_coupler_types MOM_coupler_types cluster_mom_variables MOM_variables mom_array_transform::interface::rotate_array rotate_array (interface) mom_array_transform::interface::rotate_vector rotate_vector (interface) mom_coupler_types::interface::coupler_type_copy_data coupler_type_copy_data (interface) mom_coupler_types::interface::coupler_type_initialized coupler_type_initialized (interface) mom_variables::allocate_surface_state allocate_surface_state mom_variables::rotate_surface_state rotate_surface_state mom_variables::rotate_surface_state->mom_array_transform::interface::rotate_array mom_variables::rotate_surface_state->mom_array_transform::interface::rotate_vector mom_variables::rotate_surface_state->mom_coupler_types::interface::coupler_type_copy_data mom_variables::rotate_surface_state->mom_coupler_types::interface::coupler_type_initialized mom_variables::rotate_surface_state->mom_variables::allocate_surface_state
Text view
Callers call graph
Callers of mom_variables::rotate_surface_state calls cluster_mom MOM cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_variables MOM_variables mom::extract_surface_state extract_surface_state mom_variables::rotate_surface_state rotate_surface_state mom::extract_surface_state->mom_variables::rotate_surface_state mom::step_mom step_MOM mom::step_mom->mom_variables::rotate_surface_state mom_ice_shelf::adjust_ice_sheet_frazil adjust_ice_sheet_frazil mom_ice_shelf::adjust_ice_sheet_frazil->mom_variables::rotate_surface_state mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_ice_shelf::initialize_ice_shelf->mom_variables::rotate_surface_state mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_ice_shelf::shelf_calc_flux->mom_variables::rotate_surface_state
Text view
subroutine alloc_BT_cont_type(BT_cont, G, GV, alloc_faces)

Allocates the arrays contained within a BT_cont_type and initializes them to 0.

Parameters
  • BT_cont

    The BT_cont_type whose elements will be allocated

  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure.

  • alloc_faces [in]

    If present and true, allocate memory for effective face thicknesses.

Callees call graph
Callees of mom_variables::alloc_bt_cont_type calls cluster_mom_error_handler MOM_error_handler cluster_mom_variables MOM_variables mom_error_handler::mom_error MOM_error mom_variables::alloc_bt_cont_type alloc_BT_cont_type mom_variables::alloc_bt_cont_type->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_variables::alloc_bt_cont_type calls cluster_mom_barotropic MOM_barotropic cluster_mom_variables MOM_variables mom_barotropic::barotropic_init barotropic_init mom_variables::alloc_bt_cont_type alloc_BT_cont_type mom_barotropic::barotropic_init->mom_variables::alloc_bt_cont_type
Text view
subroutine dealloc_BT_cont_type(BT_cont)

Deallocates the arrays contained within a BT_cont_type.

Parameters
  • BT_cont

    The BT_cont_type whose elements will be deallocated.

Callers call graph
Callers of mom_variables::dealloc_bt_cont_type calls cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_variables MOM_variables mom_dynamics_split_rk2::end_dyn_split_rk2 end_dyn_split_RK2 mom_variables::dealloc_bt_cont_type dealloc_BT_cont_type mom_dynamics_split_rk2::end_dyn_split_rk2->mom_variables::dealloc_bt_cont_type mom_dynamics_split_rk2b::end_dyn_split_rk2b end_dyn_split_RK2b mom_dynamics_split_rk2b::end_dyn_split_rk2b->mom_variables::dealloc_bt_cont_type
Text view
subroutine MOM_thermovar_chksum(mesg, tv, G, US)

Diagnostic checksums on various elements of a thermo_var_ptrs type for debugging.

Parameters
  • mesg [in]

    A message that appears in the checksum lines

  • tv [in]

    A structure pointing to various thermodynamic variables

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

Callees call graph
Callees of mom_variables::mom_thermovar_chksum calls cluster_mom_checksums MOM_checksums cluster_mom_variables MOM_variables mom_checksums::interface::hchksum hchksum (interface) mom_variables::mom_thermovar_chksum MOM_thermovar_chksum mom_variables::mom_thermovar_chksum->mom_checksums::interface::hchksum
Text view
Callers call graph
Callers of mom_variables::mom_thermovar_chksum calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_variables MOM_variables mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_variables::mom_thermovar_chksum MOM_thermovar_chksum mom_diabatic_driver::diabatic_ale->mom_variables::mom_thermovar_chksum mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_variables::mom_thermovar_chksum mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_variables::mom_thermovar_chksum
Text view
API generated with Flint · Rendered from reStructuredText