pseudo_salt_tracer module reference

A tracer package that mimics salinity

Data Types

pseudo_salt_tracer_CS

The control structure for the pseudo-salt tracer

Functions/Subroutines

register_pseudo_salt_tracer

Register the pseudo-salt tracer with MOM6, and return .true. if the tracer is to be used.

initialize_pseudo_salt_tracer

Initialize the pseudo-salt tracer

pseudo_salt_tracer_column_physics

Apply sources, sinks and diapycnal diffusion to the tracers in this package.

pseudo_salt_stock

Calculates the mass-weighted integral of all tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned.

pseudo_salt_tracer_surface_state

This subroutine extracts the surface fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler.

pseudo_salt_tracer_end

Deallocate memory associated with this tracer package

Detailed Description

By Andrew Shao, 2016

This file contains the routines necessary to model a passive tracer that uses the same boundary fluxes as salinity. At the beginning of the run, salt is set to the same as tv%S. Any deviations between this salt-like tracer and tv%S signifies a difference between how active and passive tracers are treated.

Type Documentation

type, public :: pseudo_salt_tracer_CS

The control structure for the pseudo-salt tracer

Parameters
  • tr_ptr

    pointer to tracer inside Tr_reg

  • Time

    A pointer to the ocean model's clock.

  • tr_Reg

    A pointer to the MOM tracer registry

  • ps

    The array of pseudo-salt tracer used in this subroutine [ppt]

  • diff

    The difference between the pseudo-salt tracer and the real salt [ppt].

  • pseudo_salt_may_reinit

    Hard coding since this should not matter

  • id_psd

    A diagnostic ID

  • diag

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

  • restart_CSp

    A pointer to the restart control structure

  • tr_desc

    A description and metadata for the pseudo-salt tracer

Functions/Subroutine Documentation

function register_pseudo_salt_tracer(HI, GV, param_file, CS, tr_Reg, restart_CS)

Register the pseudo-salt tracer with MOM6, and return .true. if the tracer is to be used.

Parameters
  • HI [in]

    A horizontal index type structure

  • GV [in]

    The ocean's vertical grid structure

  • param_file [in]

    A structure to parse for run-time parameters

  • CS

    The control structure returned by a previous call to register_pseudo_salt_tracer.

  • tr_Reg

    A pointer that is set to point to the control structure for the tracer advection and diffusion module

  • restart_CS [inout]

    MOM restart control structure

Callees call graph
Callees of pseudo_salt_tracer::register_pseudo_salt_tracer calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_tracer_registry MOM_tracer_registry cluster_pseudo_salt_tracer pseudo_salt_tracer mom_error_handler::mom_error MOM_error mom_file_parser::interface::log_version log_version (interface) mom_io::query_vardesc query_vardesc mom_io::var_desc var_desc mom_tracer_registry::register_tracer register_tracer pseudo_salt_tracer::register_pseudo_salt_tracer register_pseudo_salt_tracer pseudo_salt_tracer::register_pseudo_salt_tracer->mom_error_handler::mom_error pseudo_salt_tracer::register_pseudo_salt_tracer->mom_file_parser::interface::log_version pseudo_salt_tracer::register_pseudo_salt_tracer->mom_io::query_vardesc pseudo_salt_tracer::register_pseudo_salt_tracer->mom_io::var_desc pseudo_salt_tracer::register_pseudo_salt_tracer->mom_tracer_registry::register_tracer
Text view
Callers call graph
Callers of pseudo_salt_tracer::register_pseudo_salt_tracer calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_pseudo_salt_tracer pseudo_salt_tracer mom_tracer_flow_control::call_tracer_register call_tracer_register pseudo_salt_tracer::register_pseudo_salt_tracer register_pseudo_salt_tracer mom_tracer_flow_control::call_tracer_register->pseudo_salt_tracer::register_pseudo_salt_tracer
Text view
subroutine initialize_pseudo_salt_tracer(restart, day, G, GV, US, h, diag, OBC, CS, sponge_CSp, tv)

Initialize the pseudo-salt tracer

Parameters
  • restart [in]

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

  • day [in]

    Time of the start of the run

  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • h [in]

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

  • diag [in]

    A structure that is used to regulate diagnostic output

  • OBC

    This open boundary condition type specifies whether, where, and what open boundary conditions are used.

  • CS

    The control structure returned by a previous call to register_pseudo_salt_tracer

  • sponge_CSp

    Pointer to the control structure for the sponges

  • tv [in]

    A structure containing various thermodynamic variables

Callees call graph
Callees of pseudo_salt_tracer::initialize_pseudo_salt_tracer calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_pseudo_salt_tracer pseudo_salt_tracer mom_diag_mediator::register_diag_field register_diag_field mom_io::query_vardesc query_vardesc mom_restart::interface::query_initialized query_initialized (interface) mom_restart::interface::set_initialized set_initialized (interface) pseudo_salt_tracer::initialize_pseudo_salt_tracer initialize_pseudo_salt_tracer pseudo_salt_tracer::initialize_pseudo_salt_tracer->mom_diag_mediator::register_diag_field pseudo_salt_tracer::initialize_pseudo_salt_tracer->mom_io::query_vardesc pseudo_salt_tracer::initialize_pseudo_salt_tracer->mom_restart::interface::query_initialized pseudo_salt_tracer::initialize_pseudo_salt_tracer->mom_restart::interface::set_initialized
Text view
Callers call graph
Callers of pseudo_salt_tracer::initialize_pseudo_salt_tracer calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_pseudo_salt_tracer pseudo_salt_tracer mom_tracer_flow_control::tracer_flow_control_init tracer_flow_control_init pseudo_salt_tracer::initialize_pseudo_salt_tracer initialize_pseudo_salt_tracer mom_tracer_flow_control::tracer_flow_control_init->pseudo_salt_tracer::initialize_pseudo_salt_tracer
Text view
subroutine pseudo_salt_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, CS, tv, debug, KPP_CSp, nonLocalTrans, evap_CFL_limit, minimum_forcing_depth)

Apply sources, sinks and diapycnal diffusion to the tracers in this package.

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]

    The amount of fluid entrained from the layer above during this call [H ~> m or kg m-2]

  • eb [in]

    The amount of fluid entrained from the layer below during this call [H ~> m or kg m-2]

  • fluxes [in]

    A structure containing thermodynamic and tracer forcing fields

  • 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 to register_pseudo_salt_tracer

  • tv [in]

    A structure pointing to various thermodynamic variables

  • debug [in]

    If true calculate checksums

  • KPP_CSp

    KPP control structure

  • nonLocalTrans [in]

    Non-local transport [nondim]

  • 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 pseudo_salt_tracer::pseudo_salt_tracer_column_physics calls cluster_mom_checksums MOM_checksums cluster_mom_cvmix_kpp MOM_CVMix_KPP cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_tracer_diabatic MOM_tracer_diabatic cluster_pseudo_salt_tracer pseudo_salt_tracer mom_checksums::interface::hchksum hchksum (interface) mom_cvmix_kpp::kpp_nonlocaltransport KPP_NonLocalTransport mom_diag_mediator::interface::post_data post_data (interface) mom_tracer_diabatic::applytracerboundaryfluxesinout applyTracerBoundaryFluxesInOut mom_tracer_diabatic::tracer_vertdiff tracer_vertdiff pseudo_salt_tracer::pseudo_salt_tracer_column_physics pseudo_salt_tracer_column_physics pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_checksums::interface::hchksum pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_cvmix_kpp::kpp_nonlocaltransport pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_diag_mediator::interface::post_data pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_tracer_diabatic::applytracerboundaryfluxesinout pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_tracer_diabatic::tracer_vertdiff
Text view
Callers call graph
Callers of pseudo_salt_tracer::pseudo_salt_tracer_column_physics calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_pseudo_salt_tracer pseudo_salt_tracer mom_tracer_flow_control::call_tracer_column_fns call_tracer_column_fns pseudo_salt_tracer::pseudo_salt_tracer_column_physics pseudo_salt_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->pseudo_salt_tracer::pseudo_salt_tracer_column_physics
Text view
function pseudo_salt_stock(h, stocks, G, GV, CS, names, units, stock_index)

Calculates the mass-weighted integral of all tracer stocks, returning the number of stocks it has calculated. If the stock_index is present, only the stock corresponding to that coded index is returned.

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]

  • stocks [out]

    The mass-weighted integrated amount of each tracer, in kg times concentration units [kg conc]

  • CS

    The control structure returned by a previous call to register_pseudo_salt_tracer

  • names [out]

    The names of the stocks calculated

  • units [out]

    The units of the stocks calculated

  • stock_index [in]

    The coded index of a specific stock being sought

  • pseudo_salt_stock

    Return value: the number of stocks calculated here

Callees call graph
Callees of pseudo_salt_tracer::pseudo_salt_stock calls cluster_mom_io MOM_io cluster_mom_spatial_means MOM_spatial_means cluster_pseudo_salt_tracer pseudo_salt_tracer mom_io::query_vardesc query_vardesc mom_spatial_means::global_mass_int_efp global_mass_int_EFP pseudo_salt_tracer::pseudo_salt_stock pseudo_salt_stock pseudo_salt_tracer::pseudo_salt_stock->mom_io::query_vardesc pseudo_salt_tracer::pseudo_salt_stock->mom_spatial_means::global_mass_int_efp
Text view
Callers call graph
Callers of pseudo_salt_tracer::pseudo_salt_stock calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_pseudo_salt_tracer pseudo_salt_tracer mom_tracer_flow_control::call_tracer_stocks call_tracer_stocks pseudo_salt_tracer::pseudo_salt_stock pseudo_salt_stock mom_tracer_flow_control::call_tracer_stocks->pseudo_salt_tracer::pseudo_salt_stock
Text view
subroutine pseudo_salt_tracer_surface_state(sfc_state, h, G, GV, CS)

This subroutine extracts the surface fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean

  • h [in]

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

  • CS

    The control structure returned by a previous call to register_pseudo_salt_tracer

subroutine pseudo_salt_tracer_end(CS)

Deallocate memory associated with this tracer package

Parameters
  • CS

    The control structure returned by a previous call to register_pseudo_salt_tracer

Callers call graph
Callers of pseudo_salt_tracer::pseudo_salt_tracer_end calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_pseudo_salt_tracer pseudo_salt_tracer mom_tracer_flow_control::tracer_flow_control_end tracer_flow_control_end pseudo_salt_tracer::pseudo_salt_tracer_end pseudo_salt_tracer_end mom_tracer_flow_control::tracer_flow_control_end->pseudo_salt_tracer::pseudo_salt_tracer_end
Text view
API generated with Flint · Rendered from reStructuredText