coord_adapt module reference

Regrid columns for the adaptive coordinate

Data Types

adapt_CS

Control structure for adaptive coordinates (coord_adapt).

Functions/Subroutines

init_coord_adapt

Initialise an adapt_CS with parameters

end_coord_adapt

Clean up the coordinate control structure

set_adapt_params

This subtroutine can be used to set the parameters for coord_adapt module

build_adapt_column

Type Documentation

type, public :: adapt_CS

Control structure for adaptive coordinates (coord_adapt).

Parameters
  • nk

    Nominal near-surface resolution [H ~> m or kg m-2]

  • coordinateResolution

    Ratio of optimisation and diffusion timescales [nondim]

  • adaptTimeRatio

    Nondimensional coefficient determining how much optimisation to apply [nondim]

  • adaptAlpha

    Near-surface zooming depth [H ~> m or kg m-2]

  • adaptZoom

    Near-surface zooming coefficient [nondim]

  • adaptZoomCoeff

    Stratification-dependent diffusion coefficient [nondim]

  • adaptBuoyCoeff

    Reference density difference for stratification-dependent diffusion [R ~> kg m-3]

  • adaptDrho0

    If true, form a HYCOM1-like mixed layet by preventing interfaces from becoming shallower than the depths set by coordinateResolution

Functions/Subroutine Documentation

subroutine init_coord_adapt(CS, nk, coordinateResolution, m_to_H, kg_m3_to_R)

Initialise an adapt_CS with parameters

Parameters
  • CS

    Unassociated pointer to hold the control structure

  • nk [in]

    Number of layers in the grid

  • coordinateResolution [in]

    Nominal near-surface resolution [m] or other units specified with m_to_H

  • m_to_H [in]

    A conversion factor from m to the units of thicknesses, perhaps in units of [H m-1 ~> 1 or kg m-3]

  • kg_m3_to_R [in]

    A conversion factor from kg m-3 to the units of density, perhaps in units of [R m3 kg-1 ~> 1]

Callees call graph
Callees of coord_adapt::init_coord_adapt calls cluster_coord_adapt coord_adapt cluster_mom_error_handler MOM_error_handler coord_adapt::init_coord_adapt init_coord_adapt mom_error_handler::mom_error MOM_error coord_adapt::init_coord_adapt->mom_error_handler::mom_error
Text view
Callers call graph
Callers of coord_adapt::init_coord_adapt calls cluster_coord_adapt coord_adapt cluster_mom_regridding MOM_regridding coord_adapt::init_coord_adapt init_coord_adapt mom_regridding::initcoord initCoord [private/internal] mom_regridding::initcoord->coord_adapt::init_coord_adapt
Text view
subroutine end_coord_adapt(CS)

Clean up the coordinate control structure

Parameters
  • CS

    The control structure for this module

Callers call graph
Callers of coord_adapt::end_coord_adapt calls cluster_coord_adapt coord_adapt cluster_mom_regridding MOM_regridding coord_adapt::end_coord_adapt end_coord_adapt mom_regridding::end_regridding end_regridding mom_regridding::end_regridding->coord_adapt::end_coord_adapt
Text view
subroutine set_adapt_params(CS, adaptTimeRatio, adaptAlpha, adaptZoom, adaptZoomCoeff, adaptBuoyCoeff, adaptDrho0, adaptDoMin)

This subtroutine can be used to set the parameters for coord_adapt module

Parameters
  • CS

    The control structure for this module

  • adaptTimeRatio [in]

    Ratio of optimisation and diffusion timescales [nondim]

  • adaptAlpha [in]

    Nondimensional coefficient determining how much optimisation to apply [nondim]

  • adaptZoom [in]

    Near-surface zooming depth [H ~> m or kg m-2]

  • adaptZoomCoeff [in]

    Near-surface zooming coefficient [nondim]

  • adaptBuoyCoeff [in]

    Stratification-dependent diffusion coefficient [nondim]

  • adaptDrho0 [in]

    Reference density difference for stratification-dependent diffusion [R ~> kg m-3]

  • adaptDoMin [in]

    If true, form a HYCOM1-like mixed layer by preventing interfaces from becoming shallower than the depths set by coordinateResolution

Callees call graph
Callees of coord_adapt::set_adapt_params calls cluster_coord_adapt coord_adapt cluster_mom_error_handler MOM_error_handler coord_adapt::set_adapt_params set_adapt_params mom_error_handler::mom_error MOM_error coord_adapt::set_adapt_params->mom_error_handler::mom_error
Text view
Callers call graph
Callers of coord_adapt::set_adapt_params calls cluster_coord_adapt coord_adapt cluster_mom_regridding MOM_regridding coord_adapt::set_adapt_params set_adapt_params mom_regridding::set_regrid_params set_regrid_params mom_regridding::set_regrid_params->coord_adapt::set_adapt_params
Text view

subroutine build_adapt_column(CS, G, GV, US, tv, i, j, zInt, tInt, sInt, h, nom_depth_H, zNext)

Parameters
  • CS [in]

    The control structure for this module

  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • tv [in]

    A structure pointing to various thermodynamic variables

  • i [in]

    The i-index of the column to work on

  • j [in]

    The j-index of the column to work on

  • zInt [in]

    Interface heights [H ~> m or kg m-2].

  • tInt [in]

    Interface temperatures [C ~> degC]

  • sInt [in]

    Interface salinities [S ~> ppt]

  • h [in]

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

  • nom_depth_H [in]

    The bathymetric depth of this column relative to mean sea level or another locally valid reference height, converted to thickness units [H ~> m or kg m-2]

  • zNext [inout]

    updated interface positions [H ~> m or kg m-2]

Callees call graph
Callees of coord_adapt::build_adapt_column calls cluster_coord_adapt coord_adapt cluster_mom_eos MOM_EOS coord_adapt::build_adapt_column build_adapt_column mom_eos::interface::calculate_density_derivs calculate_density_derivs (interface) coord_adapt::build_adapt_column->mom_eos::interface::calculate_density_derivs
Text view
Callers call graph
Callers of coord_adapt::build_adapt_column calls cluster_coord_adapt coord_adapt cluster_mom_regridding MOM_regridding coord_adapt::build_adapt_column build_adapt_column mom_regridding::build_grid_adaptive build_grid_adaptive [private/internal] mom_regridding::build_grid_adaptive->coord_adapt::build_adapt_column
Text view
API generated with Flint · Rendered from reStructuredText