RGC_tracer module reference

This module contains the routines used to set up a dynamically passive tracer. Set up and use passive tracers requires the following: (1) register_RGC_tracer (2) apply diffusion, physics/chemistry and advect the tracer

Data Types

RGC_tracer_CS

The number of tracers in this module.

Functions/Subroutines

register_RGC_tracer

This subroutine is used to register tracer fields

initialize_RGC_tracer

Initializes the NTR tracer fields in tr(:,:,:,:) and it sets up the tracer output.

RGC_tracer_column_physics

This subroutine applies diapycnal diffusion and any other column tracer physics or chemistry to the tracers from this file. This is a simple example of a set of advected passive tracers.

RGC_tracer_end

Type Documentation

type, public :: RGC_tracer_CS

The number of tracers in this module.

tracer control structure

Parameters
  • coupled_tracers

    These tracers are not offered to the coupler.

  • tracer_IC_file

    The full path to the IC file, or " " to initialize internally.

  • Time

    A pointer to the ocean model's clock.

  • tr_Reg

    A pointer to the tracer registry.

  • tr

    The array of tracers used in this package [kg kg-1]

  • tr_aux

    The masked tracer concentration [kg kg-1]

  • land_val

    The value of tr used where land is masked out [kg kg-1]

  • CSL

    The length of the continental shelf (x direction) [km]

  • lensponge

    the length of the sponge layer [km]

  • mask_tracers

    If true, tracers are masked out in massless layers.

  • use_sponge

    If true, sponges may be applied somewhere in the domain.

  • diag

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

  • tr_desc

    Descriptions and metadata for the tracers.

Functions/Subroutine Documentation

function register_RGC_tracer(G, GV, param_file, CS, tr_Reg, restart_CS)

This subroutine is used to register tracer fields

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure.

  • param_file [in]

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

  • CS

    A pointer that is set to point to the control structure for this module (in/out).

  • tr_Reg

    A pointer to the tracer registry.

  • restart_CS [inout]

    MOM restart control structure

Callees call graph
Callees of rgc_tracer::register_rgc_tracer calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions cluster_mom_tracer_registry MOM_tracer_registry cluster_rgc_tracer RGC_tracer mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::var_desc var_desc mom_string_functions::slasher slasher mom_tracer_registry::register_tracer register_tracer rgc_tracer::register_rgc_tracer register_RGC_tracer rgc_tracer::register_rgc_tracer->mom_error_handler::mom_error rgc_tracer::register_rgc_tracer->mom_file_parser::interface::get_param rgc_tracer::register_rgc_tracer->mom_file_parser::interface::log_param rgc_tracer::register_rgc_tracer->mom_file_parser::interface::log_version rgc_tracer::register_rgc_tracer->mom_io::var_desc rgc_tracer::register_rgc_tracer->mom_string_functions::slasher rgc_tracer::register_rgc_tracer->mom_tracer_registry::register_tracer
Text view
Callers call graph
Callers of rgc_tracer::register_rgc_tracer calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_rgc_tracer RGC_tracer mom_tracer_flow_control::call_tracer_register call_tracer_register rgc_tracer::register_rgc_tracer register_RGC_tracer mom_tracer_flow_control::call_tracer_register->rgc_tracer::register_rgc_tracer
Text view
subroutine initialize_RGC_tracer(restart, day, G, GV, h, diag, OBC, CS, layer_CSp, sponge_CSp)

Initializes the NTR tracer fields in tr(:,:,:,:) and it sets up the tracer output.

Parameters
  • G [in]

    Grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • restart [in]

    .true. if the fields have already been read from a restart file.

  • day [in]

    Time of the start of the run.

  • h [in]

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

  • diag [in]

    Structure used to regulate diagnostic output.

  • OBC

    This open boundary condition type specifies whether, where, and what open boundary conditions are used. This is not being used for now.

  • CS

    The control structure returned by a previous call to RGC_register_tracer.

  • layer_CSp

    A pointer to the control structure

  • sponge_CSp

    A pointer to the control structure for the sponges, if they are in use. Otherwise this may be unassociated.

Callees call graph
Callees of rgc_tracer::initialize_rgc_tracer calls cluster_mom_ale_sponge MOM_ALE_sponge cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_io_infra MOM_io_infra cluster_mom_sponge MOM_sponge cluster_rgc_tracer RGC_tracer mom_ale_sponge::get_ale_sponge_nz_data get_ALE_sponge_nz_data mom_ale_sponge::interface::set_up_ale_sponge_field set_up_ALE_sponge_field (interface) mom_error_handler::mom_error MOM_error mom_io::interface::mom_read_data MOM_read_data (interface) mom_io::query_vardesc query_vardesc mom_io_infra::interface::file_exists file_exists (interface) mom_sponge::set_up_sponge_field set_up_sponge_field rgc_tracer::initialize_rgc_tracer initialize_RGC_tracer rgc_tracer::initialize_rgc_tracer->mom_ale_sponge::get_ale_sponge_nz_data rgc_tracer::initialize_rgc_tracer->mom_ale_sponge::interface::set_up_ale_sponge_field rgc_tracer::initialize_rgc_tracer->mom_error_handler::mom_error rgc_tracer::initialize_rgc_tracer->mom_io::interface::mom_read_data rgc_tracer::initialize_rgc_tracer->mom_io::query_vardesc rgc_tracer::initialize_rgc_tracer->mom_io_infra::interface::file_exists rgc_tracer::initialize_rgc_tracer->mom_sponge::set_up_sponge_field
Text view
Callers call graph
Callers of rgc_tracer::initialize_rgc_tracer calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_rgc_tracer RGC_tracer mom_tracer_flow_control::tracer_flow_control_init tracer_flow_control_init rgc_tracer::initialize_rgc_tracer initialize_RGC_tracer mom_tracer_flow_control::tracer_flow_control_init->rgc_tracer::initialize_rgc_tracer
Text view
subroutine RGC_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, CS, evap_CFL_limit, minimum_forcing_depth)

This subroutine applies diapycnal diffusion and any other column tracer physics or chemistry to the tracers from this file. This is a simple example of a set of advected passive tracers.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h_old [in]

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

  • h_new [in]

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

  • ea [in]

    an array to which the amount of fluid entrained from the layer above during this call will be added [H ~> m or kg m-2].

  • eb [in]

    an array to which the amount of fluid entrained from the layer below during this call will be added [H ~> m or kg m-2].

  • fluxes [in]

    A structure containing pointers to any possible forcing fields. Unused fields have NULL ptrs.

  • dt [in]

    The amount of time covered by this call [T ~> s].

  • US [in]

    A dimensional unit scaling type

  • CS

    The control structure returned by a previous call.

  • evap_CFL_limit [in]

    Limit on the fraction of the water that can be fluxed out of the top layer in a timestep [nondim].

  • minimum_forcing_depth [in]

    The smallest depth over which fluxes can be applied [H ~> m or kg m-2].

Callees call graph
Callees of rgc_tracer::rgc_tracer_column_physics calls cluster_mom_tracer_diabatic MOM_tracer_diabatic cluster_rgc_tracer RGC_tracer mom_tracer_diabatic::applytracerboundaryfluxesinout applyTracerBoundaryFluxesInOut mom_tracer_diabatic::tracer_vertdiff tracer_vertdiff rgc_tracer::rgc_tracer_column_physics RGC_tracer_column_physics rgc_tracer::rgc_tracer_column_physics->mom_tracer_diabatic::applytracerboundaryfluxesinout rgc_tracer::rgc_tracer_column_physics->mom_tracer_diabatic::tracer_vertdiff
Text view
Callers call graph
Callers of rgc_tracer::rgc_tracer_column_physics calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_rgc_tracer RGC_tracer mom_tracer_flow_control::call_tracer_column_fns call_tracer_column_fns rgc_tracer::rgc_tracer_column_physics RGC_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->rgc_tracer::rgc_tracer_column_physics
Text view

subroutine RGC_tracer_end(CS)

Parameters
  • CS

    The control structure returned by a previous call to RGC_register_tracer.

Callers call graph
Callers of rgc_tracer::rgc_tracer_end calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_rgc_tracer RGC_tracer mom_tracer_flow_control::tracer_flow_control_end tracer_flow_control_end rgc_tracer::rgc_tracer_end RGC_tracer_end mom_tracer_flow_control::tracer_flow_control_end->rgc_tracer::rgc_tracer_end
Text view
API generated with Flint · Rendered from reStructuredText