MOM_tracer_advect module reference

This module contains the subroutines that advect tracers along coordinate surfaces.

Data Types

tracer_advect_CS

Control structure for this module

Functions/Subroutines

advect_tracer

This routine time steps the tracer concentration using a monotonic, conservative, weakly diffusive scheme.

advect_x

This subroutine does 1-d flux-form advection in the zonal direction using a monotonic piecewise linear scheme.

advect_y

This subroutine does 1-d flux-form advection using a monotonic piecewise linear scheme.

tracer_advect_init

Initialize lateral tracer advection module

tracer_advect_end

Close the tracer advection module

Detailed Description

This program contains the subroutines that advect tracers horizontally (i.e. along layers).

* advect_tracer advects tracer concentrations using a combination

of the modified flux advection scheme from Easter (Mon. Wea. Rev.,

  1. with tracer distributions given by the monotonic piecewise parabolic method, as described in Carpenter et al. (MWR, 1990). This scheme conserves the total amount of tracer while avoiding spurious maxima and minima of the tracer concentration.

  • advect_tracer subroutine determines the volume of a layer in a grid cell at the previous instance when the tracer concentration was changed, so it is essential that the volume fluxes should be correct. It is also important that the tracer advection occurs before each calculation of the diabatic forcing.

The advection scheme of some tracers can be set to be different to that used by active tracers.

Type Documentation

type, public :: tracer_advect_CS

Control structure for this module

Parameters
  • dt

    The baroclinic dynamics time step [T ~> s].

  • diag

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

  • debug

    If true, write verbose checksums for debugging purposes.

  • useHuynhStencilBug

    If true, use the incorrect stencil width. This is provided for compatibility with legacy simuations.

  • pass_uhr_vhr_t_hprev

    A structure used for group passes

  • default_advect_scheme

    Determines which reconstruction to use

Functions/Subroutine Documentation

subroutine advect_tracer(h_end, uhtr, vhtr, OBC, dt, G, GV, US, CS, Reg, x_first_in, vol_prev, max_iter_in, update_vol_prev, uhr_out, vhr_out, flux_type)

This routine time steps the tracer concentration using a monotonic, conservative, weakly diffusive scheme.

Parameters
  • G [inout]

    ocean grid structure

  • GV [in]

    ocean vertical grid structure

  • h_end [in]

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

  • uhtr [in]

    Accumulated volume or mass flux through the zonal faces [H L2 ~> m3 or kg]

  • vhtr [in]

    Accumulated volume or mass flux through the meridional faces [H L2 ~> m3 or kg]

  • OBC

    specifies whether, where, and what OBCs are used

  • dt [in]

    time increment [T ~> s]

  • US [in]

    A dimensional unit scaling type

  • CS

    control structure for module

  • Reg

    pointer to tracer registry

  • x_first_in [in]

    If present, indicate whether to update first in the x- or y-direction.

  • vol_prev [inout]

    Cell volume before advection [H L2 ~> m3 or kg]. If update_vol_prev is true, the returned value is the cell volume after the transport that was done by this call, and if all the transport could be accommodated it should be close to h_end*G%areaT.

  • max_iter_in [in]

    The maximum number of iterations

  • update_vol_prev [in]

    If present and true, update vol_prev to return its value after the tracer have been updated.

  • uhr_out [out]

    Remaining accumulated volume or mass fluxes through the zonal faces [H L2 ~> m3 or kg]

  • vhr_out [out]

    Remaining accumulated volume or mass fluxes through the meridional faces [H L2 ~> m3 or kg]

  • flux_type [in]

    Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow

  • flux_type_ctrl

    To allow setting a default value for flux_type

Callees call graph
Callees of mom_tracer_advect::advect_tracer calls cluster_mom_coms_infra MOM_coms_infra cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_tracer_advect MOM_tracer_advect mom_coms_infra::interface::sum_across_pes sum_across_PEs (interface) mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_domain_infra::do_group_pass do_group_pass mom_domain_infra::interface::create_group_pass create_group_pass (interface) mom_error_handler::mom_error MOM_error mom_tracer_advect::advect_tracer advect_tracer mom_tracer_advect::advect_tracer->mom_coms_infra::interface::sum_across_pes mom_tracer_advect::advect_tracer->mom_cpu_clock_infra::cpu_clock_begin mom_tracer_advect::advect_tracer->mom_cpu_clock_infra::cpu_clock_end mom_tracer_advect::advect_tracer->mom_domain_infra::do_group_pass mom_tracer_advect::advect_tracer->mom_domain_infra::interface::create_group_pass mom_tracer_advect::advect_tracer->mom_error_handler::mom_error mom_tracer_advect::advect_x advect_x [private/internal] mom_tracer_advect::advect_tracer->mom_tracer_advect::advect_x mom_tracer_advect::advect_y advect_y [private/internal] mom_tracer_advect::advect_tracer->mom_tracer_advect::advect_y
Text view
Callers call graph
Callers of mom_tracer_advect::advect_tracer calls cluster_mom MOM cluster_mom_offline_main MOM_offline_main cluster_mom_tracer_advect MOM_tracer_advect mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom_tracer_advect::advect_tracer advect_tracer mom::step_mom_tracer_dyn->mom_tracer_advect::advect_tracer mom_offline_main::offline_advection_ale offline_advection_ale mom_offline_main::offline_advection_ale->mom_tracer_advect::advect_tracer mom_offline_main::offline_advection_layer offline_advection_layer mom_offline_main::offline_advection_layer->mom_tracer_advect::advect_tracer mom_offline_main::offline_redistribute_residual offline_redistribute_residual mom_offline_main::offline_redistribute_residual->mom_tracer_advect::advect_tracer
Text view
subroutine advect_x(Tr, hprev, uhr, uh_neglect, OBC, domore_u, ntr, Idt, is, ie, js, je, k, G, GV, US, flux_type, advect_this_tracer, advect_schemes)

This subroutine does 1-d flux-form advection in the zonal direction using a monotonic piecewise linear scheme.

Parameters
  • G [inout]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • ntr [in]

    The number of tracers

  • Tr [inout]

    The array of registered tracers to work on

  • hprev [inout]

    cell volume at the end of previous tracer change [H L2 ~> m3 or kg]

  • uhr [inout]

    accumulated volume/mass flux through the zonal face [H L2 ~> m3 or kg]

  • uh_neglect [in]

    A tiny zonal mass flux that can be neglected [H L2 ~> m3 or kg]

  • OBC

    specifies whether, where, and what OBCs are used

  • domore_u [inout]

    If true, there is more advection to be done in this u-row

  • Idt [in]

    The inverse of dt [T-1 ~> s-1]

  • is [in]

    The starting tracer i-index to work on

  • ie [in]

    The ending tracer i-index to work on

  • js [in]

    The starting tracer j-index to work on

  • je [in]

    The ending tracer j-index to work on

  • k [in]

    The k-level to work on

  • US [in]

    A dimensional unit scaling type

  • flux_type [in]

    Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow

  • advect_this_tracer [in]

    If true, advect this tracer

  • advect_schemes [in]

    list of advection schemes to use

Callers call graph
Callers of mom_tracer_advect::advect_x calls cluster_mom_tracer_advect MOM_tracer_advect mom_tracer_advect::advect_tracer advect_tracer mom_tracer_advect::advect_x advect_x [private/internal] mom_tracer_advect::advect_tracer->mom_tracer_advect::advect_x
Text view
subroutine advect_y(Tr, hprev, vhr, vh_neglect, OBC, domore_v, ntr, Idt, is, ie, js, je, k, G, GV, US, flux_type, advect_this_tracer, advect_schemes)

This subroutine does 1-d flux-form advection using a monotonic piecewise linear scheme.

Parameters
  • G [inout]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • ntr [in]

    The number of tracers

  • Tr [inout]

    The array of registered tracers to work on

  • hprev [inout]

    cell volume at the end of previous tracer change [H L2 ~> m3 or kg]

  • vhr [inout]

    accumulated volume/mass flux through the meridional face [H L2 ~> m3 or kg]

  • vh_neglect [inout]

    A tiny meridional mass flux that can be neglected [H L2 ~> m3 or kg]

  • OBC

    specifies whether, where, and what OBCs are used

  • domore_v [inout]

    If true, there is more advection to be done in this v-row

  • Idt [in]

    The inverse of dt [T-1 ~> s-1]

  • is [in]

    The starting tracer i-index to work on

  • ie [in]

    The ending tracer i-index to work on

  • js [in]

    The starting tracer j-index to work on

  • je [in]

    The ending tracer j-index to work on

  • k [in]

    The k-level to work on

  • US [in]

    A dimensional unit scaling type

  • flux_type [in]

    Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow

  • advect_this_tracer [in]

    If true, advect this tracer

  • advect_schemes [in]

    list of advection schemes to use

Callers call graph
Callers of mom_tracer_advect::advect_y calls cluster_mom_tracer_advect MOM_tracer_advect mom_tracer_advect::advect_tracer advect_tracer mom_tracer_advect::advect_y advect_y [private/internal] mom_tracer_advect::advect_tracer->mom_tracer_advect::advect_y
Text view
subroutine tracer_advect_init(Time, G, US, param_file, diag, CS)

Initialize lateral tracer advection module

Parameters
  • Time [in]

    current model time

  • G [in]

    ocean grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    open file to parse for model parameters

  • diag [inout]

    regulates diagnostic output

  • CS

    module control structure

Callees call graph
Callees of mom_tracer_advect::tracer_advect_init calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_tracer_advect MOM_tracer_advect cluster_mom_tracer_advect_schemes MOM_tracer_advect_schemes mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_tracer_advect::tracer_advect_init tracer_advect_init mom_tracer_advect::tracer_advect_init->mom_cpu_clock_infra::cpu_clock_id mom_tracer_advect::tracer_advect_init->mom_error_handler::mom_error mom_tracer_advect::tracer_advect_init->mom_file_parser::interface::get_param mom_tracer_advect::tracer_advect_init->mom_file_parser::interface::log_version mom_tracer_advect_schemes::set_tracer_advect_scheme set_tracer_advect_scheme mom_tracer_advect::tracer_advect_init->mom_tracer_advect_schemes::set_tracer_advect_scheme
Text view
Callers call graph
Callers of mom_tracer_advect::tracer_advect_init calls cluster_mom MOM cluster_mom_tracer_advect MOM_tracer_advect mom::initialize_mom initialize_MOM mom_tracer_advect::tracer_advect_init tracer_advect_init mom::initialize_mom->mom_tracer_advect::tracer_advect_init
Text view
subroutine tracer_advect_end(CS)

Close the tracer advection module

Parameters
  • CS

    module control structure

Callers call graph
Callers of mom_tracer_advect::tracer_advect_end calls cluster_mom MOM cluster_mom_tracer_advect MOM_tracer_advect mom::mom_end MOM_end mom_tracer_advect::tracer_advect_end tracer_advect_end mom::mom_end->mom_tracer_advect::tracer_advect_end
Text view
API generated with Flint · Rendered from reStructuredText