MOM_tracer_flow_control module reference

Orchestrates the registration and calling of tracer packages

Data Types

tracer_flow_control_CS

The control structure for orchestrating the calling of tracer packages

Functions/Subroutines

call_tracer_flux_init

This subroutine carries out a series of calls to initialize the air-sea tracer fluxes, but it does not record the generated indicies, and it may be called _before_ the ocean model has been initialized and may be called on non-ocean PEs. It is not necessary to call this routine for ocean-only runs, because the same calls are made again inside of the routines called by call_tracer_register

call_tracer_register

This subroutine determines which tracer packages are to be used and does the calls to register their tracers to be advected, diffused, and read from restarts.

tracer_flow_control_init

This subroutine calls all registered tracer initialization subroutines.

call_tracer_register_obc_segments

This subroutine calls all registered tracers to register their OBC segments similar to register_temp_salt_segments for T&S

get_chl_from_model

This subroutine extracts the chlorophyll concentrations from the model state, if possible

extract_tracer_flow_member

Returns pointers or values of members within the tracer_flow_control_CS type. For extensibility, each returned argument is an optional argument

call_tracer_set_forcing

This subroutine calls the individual tracer modules' subroutines to specify or read quantities related to their surface forcing.

call_tracer_column_fns

This subroutine calls all registered tracer column physics subroutines.

call_tracer_stocks

This subroutine calls all registered tracer packages to enable them to add to the surface state returned to the coupler. These routines are optional.

store_stocks

This routine stores the stocks and does error handling for call_tracer_stocks.

call_tracer_surface_state

This subroutine calls all registered tracer packages to enable them to add to the surface state returned to the coupler. These routines are optional.

tracer_flow_control_end

Detailed Description

By Will Cooke, April 2003 Edited by Elizabeth Yankovsky, May 2019

This module contains two subroutines into which calls to other tracer initialization (call_tracer_init_fns) and column physics routines (call_tracer_column_fns) can be inserted.

Type Documentation

type, public :: tracer_flow_control_CS

The control structure for orchestrating the calling of tracer packages

Parameters
  • use_USER_tracer_example

    If true, use the USER_tracer_example package

  • use_DOME_tracer

    If true, use the DOME_tracer package

  • use_ISOMIP_tracer

    If true, use the ISOMPE_tracer package

  • use_RGC_tracer

    If true, use the RGC_tracer package

  • use_ideal_age

    If true, use the ideal age tracer package

  • use_MARBL_tracers

    If true, use the MARBL tracer package

  • use_regional_dyes

    If true, use the regional dyes tracer package

  • use_oil

    If true, use the oil tracer package

  • use_advection_test_tracer

    If true, use the advection_test_tracer package

  • use_OCMIP2_CFC

    If true, use the OCMIP2_CFC tracer package

  • use_CFC_cap

    If true, use the CFC_cap tracer package

  • use_MOM_generic_tracer

    If true, use the MOM_generic_tracer packages

  • use_pseudo_salt_tracer

    If true, use the psuedo_salt tracer package

  • use_boundary_impulse_tracer

    If true, use the boundary impulse tracer package

  • use_dyed_obc_tracer

    If true, use the dyed OBC tracer package

  • use_nw2_tracers

    If true, use the NW2 tracer package

  • USER_tracer_example_CSp

    Pointers to the control strucures for the tracer packages

  • DOME_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • ISOMIP_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • RGC_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • ideal_age_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • MARBL_tracers_CSp

    Pointers to the control strucures for the tracer packages

  • dye_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • oil_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • advection_test_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • OCMIP2_CFC_CSp

    Pointers to the control strucures for the tracer packages

  • CFC_cap_CSp

    Pointers to the control strucures for the tracer packages

  • MOM_generic_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • pseudo_salt_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • boundary_impulse_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • dyed_obc_tracer_CSp

    Pointers to the control strucures for the tracer packages

  • nw2_tracers_CSp

    Pointers to the control strucures for the tracer packages

Functions/Subroutine Documentation

subroutine call_tracer_flux_init(verbosity)

This subroutine carries out a series of calls to initialize the air-sea tracer fluxes, but it does not record the generated indicies, and it may be called _before_ the ocean model has been initialized and may be called on non-ocean PEs. It is not necessary to call this routine for ocean-only runs, because the same calls are made again inside of the routines called by call_tracer_register

Parameters
  • verbosity [in]

    A 0-9 integer indicating a level of verbosity.

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_flux_init calls cluster_mom_file_parser MOM_file_parser cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_get_input MOM_get_input cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_file_parser::close_param_file close_param_file mom_file_parser::interface::get_param get_param (interface) mom_generic_tracer::mom_generic_flux_init MOM_generic_flux_init mom_get_input::get_mom_input get_MOM_input mom_ocmip2_cfc::flux_init_ocmip2_cfc flux_init_OCMIP2_CFC mom_tracer_flow_control::call_tracer_flux_init call_tracer_flux_init mom_tracer_flow_control::call_tracer_flux_init->mom_file_parser::close_param_file mom_tracer_flow_control::call_tracer_flux_init->mom_file_parser::interface::get_param mom_tracer_flow_control::call_tracer_flux_init->mom_generic_tracer::mom_generic_flux_init mom_tracer_flow_control::call_tracer_flux_init->mom_get_input::get_mom_input mom_tracer_flow_control::call_tracer_flux_init->mom_ocmip2_cfc::flux_init_ocmip2_cfc
Text view
subroutine call_tracer_register(G, GV, US, param_file, CS, tr_Reg, restart_CS)

This subroutine determines which tracer packages are to be used and does the calls to register their tracers to be advected, diffused, and read from restarts.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters.

  • CS

    A pointer that is set to point to the control structure for this module.

  • tr_Reg

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

  • restart_CS [inout]

    A pointer to the restart control structure.

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_register calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_dome_tracer DOME_tracer cluster_dyed_obc_tracer dyed_obc_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers cluster_oil_tracer oil_tracer cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes cluster_rgc_tracer RGC_tracer cluster_user_tracer_example USER_tracer_example advection_test_tracer::register_advection_test_tracer register_advection_test_tracer boundary_impulse_tracer::register_boundary_impulse_tracer register_boundary_impulse_tracer dome_tracer::register_dome_tracer register_DOME_tracer dyed_obc_tracer::register_dyed_obc_tracer register_dyed_obc_tracer ideal_age_example::register_ideal_age_tracer register_ideal_age_tracer isomip_tracer::register_isomip_tracer register_ISOMIP_tracer marbl_tracers::register_marbl_tracers register_MARBL_tracers mom_cfc_cap::register_cfc_cap register_CFC_cap 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_generic_tracer::register_mom_generic_tracer register_MOM_generic_tracer mom_ocmip2_cfc::register_ocmip2_cfc register_OCMIP2_CFC mom_tracer_flow_control::call_tracer_register call_tracer_register mom_tracer_flow_control::call_tracer_register->advection_test_tracer::register_advection_test_tracer mom_tracer_flow_control::call_tracer_register->boundary_impulse_tracer::register_boundary_impulse_tracer mom_tracer_flow_control::call_tracer_register->dome_tracer::register_dome_tracer mom_tracer_flow_control::call_tracer_register->dyed_obc_tracer::register_dyed_obc_tracer mom_tracer_flow_control::call_tracer_register->ideal_age_example::register_ideal_age_tracer mom_tracer_flow_control::call_tracer_register->isomip_tracer::register_isomip_tracer mom_tracer_flow_control::call_tracer_register->marbl_tracers::register_marbl_tracers mom_tracer_flow_control::call_tracer_register->mom_cfc_cap::register_cfc_cap mom_tracer_flow_control::call_tracer_register->mom_error_handler::mom_error mom_tracer_flow_control::call_tracer_register->mom_file_parser::interface::get_param mom_tracer_flow_control::call_tracer_register->mom_file_parser::interface::log_version mom_tracer_flow_control::call_tracer_register->mom_generic_tracer::register_mom_generic_tracer mom_tracer_flow_control::call_tracer_register->mom_ocmip2_cfc::register_ocmip2_cfc nw2_tracers::register_nw2_tracers register_nw2_tracers mom_tracer_flow_control::call_tracer_register->nw2_tracers::register_nw2_tracers oil_tracer::register_oil_tracer register_oil_tracer mom_tracer_flow_control::call_tracer_register->oil_tracer::register_oil_tracer 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 regional_dyes::register_dye_tracer register_dye_tracer mom_tracer_flow_control::call_tracer_register->regional_dyes::register_dye_tracer rgc_tracer::register_rgc_tracer register_RGC_tracer mom_tracer_flow_control::call_tracer_register->rgc_tracer::register_rgc_tracer user_tracer_example::user_register_tracer_example USER_register_tracer_example mom_tracer_flow_control::call_tracer_register->user_tracer_example::user_register_tracer_example
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_register calls cluster_mom MOM cluster_mom_tracer_flow_control MOM_tracer_flow_control mom::initialize_mom initialize_MOM mom_tracer_flow_control::call_tracer_register call_tracer_register mom::initialize_mom->mom_tracer_flow_control::call_tracer_register
Text view
subroutine tracer_flow_control_init(restart, day, G, GV, US, h, param_file, diag, OBC, CS, sponge_CSp, ALE_sponge_CSp, tv)

This subroutine calls all registered tracer initialization subroutines.

Parameters
  • restart [in]

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

  • day [in]

    Time of the start of the run.

  • G [inout]

    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]

  • param_file [in]

    A structure to parse for run-time parameters

  • 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 call_tracer_register.

  • sponge_CSp

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

  • ALE_sponge_CSp

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

  • tv [in]

    A structure pointing to various thermodynamic variables

Callees call graph
Callees of mom_tracer_flow_control::tracer_flow_control_init calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_dome_tracer DOME_tracer cluster_dyed_obc_tracer dyed_obc_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_error_handler MOM_error_handler cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers cluster_oil_tracer oil_tracer cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes cluster_rgc_tracer RGC_tracer cluster_user_tracer_example USER_tracer_example advection_test_tracer::initialize_advection_test_tracer initialize_advection_test_tracer boundary_impulse_tracer::initialize_boundary_impulse_tracer initialize_boundary_impulse_tracer dome_tracer::initialize_dome_tracer initialize_DOME_tracer dyed_obc_tracer::initialize_dyed_obc_tracer initialize_dyed_obc_tracer ideal_age_example::initialize_ideal_age_tracer initialize_ideal_age_tracer isomip_tracer::initialize_isomip_tracer initialize_ISOMIP_tracer marbl_tracers::initialize_marbl_tracers initialize_MARBL_tracers mom_cfc_cap::initialize_cfc_cap initialize_CFC_cap mom_error_handler::mom_error MOM_error mom_generic_tracer::initialize_mom_generic_tracer initialize_MOM_generic_tracer mom_ocmip2_cfc::initialize_ocmip2_cfc initialize_OCMIP2_CFC mom_tracer_flow_control::tracer_flow_control_init tracer_flow_control_init mom_tracer_flow_control::tracer_flow_control_init->advection_test_tracer::initialize_advection_test_tracer mom_tracer_flow_control::tracer_flow_control_init->boundary_impulse_tracer::initialize_boundary_impulse_tracer mom_tracer_flow_control::tracer_flow_control_init->dome_tracer::initialize_dome_tracer mom_tracer_flow_control::tracer_flow_control_init->dyed_obc_tracer::initialize_dyed_obc_tracer mom_tracer_flow_control::tracer_flow_control_init->ideal_age_example::initialize_ideal_age_tracer mom_tracer_flow_control::tracer_flow_control_init->isomip_tracer::initialize_isomip_tracer mom_tracer_flow_control::tracer_flow_control_init->marbl_tracers::initialize_marbl_tracers mom_tracer_flow_control::tracer_flow_control_init->mom_cfc_cap::initialize_cfc_cap mom_tracer_flow_control::tracer_flow_control_init->mom_error_handler::mom_error mom_tracer_flow_control::tracer_flow_control_init->mom_generic_tracer::initialize_mom_generic_tracer mom_tracer_flow_control::tracer_flow_control_init->mom_ocmip2_cfc::initialize_ocmip2_cfc nw2_tracers::initialize_nw2_tracers initialize_nw2_tracers mom_tracer_flow_control::tracer_flow_control_init->nw2_tracers::initialize_nw2_tracers oil_tracer::initialize_oil_tracer initialize_oil_tracer mom_tracer_flow_control::tracer_flow_control_init->oil_tracer::initialize_oil_tracer 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 regional_dyes::initialize_dye_tracer initialize_dye_tracer mom_tracer_flow_control::tracer_flow_control_init->regional_dyes::initialize_dye_tracer rgc_tracer::initialize_rgc_tracer initialize_RGC_tracer mom_tracer_flow_control::tracer_flow_control_init->rgc_tracer::initialize_rgc_tracer user_tracer_example::user_initialize_tracer USER_initialize_tracer mom_tracer_flow_control::tracer_flow_control_init->user_tracer_example::user_initialize_tracer
Text view
Callers call graph
Callers of mom_tracer_flow_control::tracer_flow_control_init calls cluster_mom MOM cluster_mom_tracer_flow_control MOM_tracer_flow_control mom::initialize_mom initialize_MOM mom_tracer_flow_control::tracer_flow_control_init tracer_flow_control_init mom::initialize_mom->mom_tracer_flow_control::tracer_flow_control_init
Text view
subroutine call_tracer_register_obc_segments(GV, param_file, CS, tr_Reg, OBC)

This subroutine calls all registered tracers to register their OBC segments similar to register_temp_salt_segments for T&S

Parameters
  • GV [in]

    The ocean's vertical grid structure.

  • param_file [in]

    A structure to parse for run-time parameters.

  • CS

    A pointer that is set to point to the control structure for this module.

  • tr_Reg

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

  • OBC

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

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_register_obc_segments calls cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_generic_tracer::register_mom_generic_tracer_segments register_MOM_generic_tracer_segments mom_tracer_flow_control::call_tracer_register_obc_segments call_tracer_register_obc_segments mom_tracer_flow_control::call_tracer_register_obc_segments->mom_generic_tracer::register_mom_generic_tracer_segments
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_register_obc_segments calls cluster_mom MOM cluster_mom_tracer_flow_control MOM_tracer_flow_control mom::initialize_mom initialize_MOM mom_tracer_flow_control::call_tracer_register_obc_segments call_tracer_register_obc_segments mom::initialize_mom->mom_tracer_flow_control::call_tracer_register_obc_segments
Text view
subroutine get_chl_from_model(Chl_array, G, GV, CS)

This subroutine extracts the chlorophyll concentrations from the model state, if possible

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • Chl_array [out]

    The array in which to store the model's Chlorophyll-A concentrations [mg m-3].

  • CS

    The control structure returned by a previous call to call_tracer_register.

Callees call graph
Callees of mom_tracer_flow_control::get_chl_from_model calls cluster_marbl_tracers MARBL_tracers cluster_mom_error_handler MOM_error_handler cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_tracer_flow_control MOM_tracer_flow_control marbl_tracers::marbl_tracers_get MARBL_tracers_get mom_error_handler::mom_error MOM_error mom_generic_tracer::mom_generic_tracer_get MOM_generic_tracer_get mom_tracer_flow_control::get_chl_from_model get_chl_from_model mom_tracer_flow_control::get_chl_from_model->marbl_tracers::marbl_tracers_get mom_tracer_flow_control::get_chl_from_model->mom_error_handler::mom_error mom_tracer_flow_control::get_chl_from_model->mom_generic_tracer::mom_generic_tracer_get
Text view
Callers call graph
Callers of mom_tracer_flow_control::get_chl_from_model calls cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_diabatic_aux::set_pen_shortwave set_pen_shortwave mom_tracer_flow_control::get_chl_from_model get_chl_from_model mom_diabatic_aux::set_pen_shortwave->mom_tracer_flow_control::get_chl_from_model
Text view
subroutine extract_tracer_flow_member(CS, use_MARBL_tracers)

Returns pointers or values of members within the tracer_flow_control_CS type. For extensibility, each returned argument is an optional argument

Parameters
  • CS [in]

    module control structure

  • use_MARBL_tracers [out]

    If true, MARBL tracers are active

Callers call graph
Callers of mom_tracer_flow_control::extract_tracer_flow_member calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_tracer_flow_control::extract_tracer_flow_member extract_tracer_flow_member mom_diabatic_driver::diabatic_driver_init->mom_tracer_flow_control::extract_tracer_flow_member
Text view
subroutine call_tracer_set_forcing(sfc_state, fluxes, day_start, day_interval, G, US, Rho0, CS)

This subroutine calls the individual tracer modules' subroutines to specify or read quantities related to their surface forcing.

Parameters
  • sfc_state [inout]

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

  • fluxes [inout]

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

  • day_start [in]

    Start time of the fluxes.

  • day_interval [in]

    Length of time over which these fluxes will be applied.

  • G [in]

    The ocean's grid structure.

  • US [in]

    A dimensional unit scaling type

  • Rho0 [in]

    The mean ocean density [R ~> kg m-3]

  • CS

    The control structure returned by a previous call to call_tracer_register.

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_set_forcing calls cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_error_handler MOM_error_handler cluster_mom_tracer_flow_control MOM_tracer_flow_control marbl_tracers::marbl_tracers_set_forcing MARBL_tracers_set_forcing mom_cfc_cap::cfc_cap_set_forcing CFC_cap_set_forcing mom_error_handler::mom_error MOM_error mom_tracer_flow_control::call_tracer_set_forcing call_tracer_set_forcing mom_tracer_flow_control::call_tracer_set_forcing->marbl_tracers::marbl_tracers_set_forcing mom_tracer_flow_control::call_tracer_set_forcing->mom_cfc_cap::cfc_cap_set_forcing mom_tracer_flow_control::call_tracer_set_forcing->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_set_forcing calls cluster_mom_surface_forcing MOM_surface_forcing cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_surface_forcing::set_forcing set_forcing mom_tracer_flow_control::call_tracer_set_forcing call_tracer_set_forcing mom_surface_forcing::set_forcing->mom_tracer_flow_control::call_tracer_set_forcing
Text view
subroutine call_tracer_column_fns(h_old, h_new, ea, eb, fluxes, mld, dt, G, GV, US, tv, optics, CS, debug, KPP_CSp, nonLocalTrans, evap_CFL_limit, minimum_forcing_depth, h_BL, prediabatic_T, prediabatic_S)

This subroutine calls all registered tracer column physics subroutines.

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.

  • mld [in]

    Mixed layer depth [Z ~> m]

  • dt [in]

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

  • US [in]

    A dimensional unit scaling type

  • tv [in]

    A structure pointing to various thermodynamic variables.

  • optics

    The structure containing optical properties.

  • CS

    The control structure returned by a previous call to call_tracer_register.

  • 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]

  • h_BL

    Thickness of active mixing layer [H ~> m or kg m-2]

  • prediabatic_T [in]

    Temperature prior to calling diabatic driver [C ~> degC]

  • prediabatic_S [in]

    Salinity prior to calling diabatic driver [S ~> ppt]

  • Hbl

    Boundary layer thickness [H ~> m or kg m-2]

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_column_fns calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_dome_tracer DOME_tracer cluster_dyed_obc_tracer dyed_obc_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_error_handler MOM_error_handler cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_interface_heights MOM_interface_heights cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers cluster_oil_tracer oil_tracer cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes cluster_rgc_tracer RGC_tracer cluster_user_tracer_example USER_tracer_example advection_test_tracer::advection_test_tracer_column_physics advection_test_tracer_column_physics boundary_impulse_tracer::boundary_impulse_tracer_column_physics boundary_impulse_tracer_column_physics dome_tracer::dome_tracer_column_physics DOME_tracer_column_physics dyed_obc_tracer::dyed_obc_tracer_column_physics dyed_obc_tracer_column_physics ideal_age_example::ideal_age_tracer_column_physics ideal_age_tracer_column_physics isomip_tracer::isomip_tracer_column_physics ISOMIP_tracer_column_physics marbl_tracers::marbl_tracers_column_physics MARBL_tracers_column_physics mom_cfc_cap::cfc_cap_column_physics CFC_cap_column_physics mom_error_handler::mom_error MOM_error mom_generic_tracer::mom_generic_tracer_column_physics MOM_generic_tracer_column_physics mom_interface_heights::convert_mld_to_ml_thickness convert_MLD_to_ML_thickness mom_ocmip2_cfc::ocmip2_cfc_column_physics OCMIP2_CFC_column_physics mom_tracer_flow_control::call_tracer_column_fns call_tracer_column_fns mom_tracer_flow_control::call_tracer_column_fns->advection_test_tracer::advection_test_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->boundary_impulse_tracer::boundary_impulse_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->dome_tracer::dome_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->dyed_obc_tracer::dyed_obc_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->ideal_age_example::ideal_age_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->isomip_tracer::isomip_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->marbl_tracers::marbl_tracers_column_physics mom_tracer_flow_control::call_tracer_column_fns->mom_cfc_cap::cfc_cap_column_physics mom_tracer_flow_control::call_tracer_column_fns->mom_error_handler::mom_error mom_tracer_flow_control::call_tracer_column_fns->mom_generic_tracer::mom_generic_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->mom_interface_heights::convert_mld_to_ml_thickness mom_tracer_flow_control::call_tracer_column_fns->mom_ocmip2_cfc::ocmip2_cfc_column_physics nw2_tracers::nw2_tracer_column_physics nw2_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->nw2_tracers::nw2_tracer_column_physics oil_tracer::oil_tracer_column_physics oil_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->oil_tracer::oil_tracer_column_physics 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 regional_dyes::dye_tracer_column_physics dye_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->regional_dyes::dye_tracer_column_physics rgc_tracer::rgc_tracer_column_physics RGC_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->rgc_tracer::rgc_tracer_column_physics user_tracer_example::tracer_column_physics tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->user_tracer_example::tracer_column_physics
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_column_fns calls cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_offline_main MOM_offline_main cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_diabatic_driver::adiabatic adiabatic mom_tracer_flow_control::call_tracer_column_fns call_tracer_column_fns mom_diabatic_driver::adiabatic->mom_tracer_flow_control::call_tracer_column_fns mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_tracer_flow_control::call_tracer_column_fns mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_tracer_flow_control::call_tracer_column_fns mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_tracer_flow_control::call_tracer_column_fns mom_offline_main::offline_advection_layer offline_advection_layer mom_offline_main::offline_advection_layer->mom_tracer_flow_control::call_tracer_column_fns mom_offline_main::offline_diabatic_ale offline_diabatic_ale mom_offline_main::offline_diabatic_ale->mom_tracer_flow_control::call_tracer_column_fns
Text view
subroutine call_tracer_stocks(h, stock_values, G, GV, US, CS, stock_names, stock_units, num_stocks, stock_index, got_min_max, global_min, global_max, xgmin, ygmin, zgmin, xgmax, ygmax, zgmax)

This subroutine calls all registered tracer packages to enable them to add to the surface state returned to the coupler. These routines are optional.

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]

  • stock_values [out]

    The globally mass-integrated amount of a tracer [kg conc].

  • US [in]

    A dimensional unit scaling type

  • CS

    The control structure returned by a previous call to call_tracer_register.

  • stock_names [out]

    Diagnostic names to use for each stock.

  • stock_units [out]

    Units to use in the metadata for each stock.

  • num_stocks [out]

    The number of tracer stocks being returned.

  • stock_index [in]

    The integer stock index from stocks_constants_mod of the stock to be returned. If this is present and greater than 0, only a single stock can be returned.

  • got_min_max [inout]

    Indicates whether the global min and max are found for each tracer

  • global_min [out]

    The global minimum of each tracer [conc]

  • global_max [out]

    The global maximum of each tracer [conc]

  • xgmin [out]

    The x-position of the global minimum in the units of G%geoLonT, often [degrees_E] or [km]

  • ygmin [out]

    The y-position of the global minimum in the units of G%geoLatT, often [degrees_N] or [km]

  • zgmin [out]

    The z-position of the global minimum [layer]

  • xgmax [out]

    The x-position of the global maximum in the units of G%geoLonT, often [degrees_E] or [km]

  • ygmax [out]

    The y-position of the global maximum in the units of G%geoLatT, often [degrees_N] or [km]

  • zgmax [out]

    The z-position of the global maximum [layer]

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_stocks calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_ideal_age_example ideal_age_example cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_coms MOM_coms cluster_mom_error_handler MOM_error_handler cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_oil_tracer oil_tracer cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes cluster_user_tracer_example USER_tracer_example advection_test_tracer::advection_test_stock advection_test_stock boundary_impulse_tracer::boundary_impulse_stock boundary_impulse_stock ideal_age_example::ideal_age_stock ideal_age_stock marbl_tracers::marbl_tracers_stock MARBL_tracers_stock mom_cfc_cap::cfc_cap_stock CFC_cap_stock mom_coms::efp_to_real EFP_to_real mom_coms::interface::efp_sum_across_pes EFP_sum_across_PEs (interface) mom_error_handler::mom_error MOM_error mom_generic_tracer::mom_generic_tracer_min_max MOM_generic_tracer_min_max mom_generic_tracer::mom_generic_tracer_stock MOM_generic_tracer_stock mom_ocmip2_cfc::ocmip2_cfc_stock OCMIP2_CFC_stock mom_tracer_flow_control::call_tracer_stocks call_tracer_stocks mom_tracer_flow_control::call_tracer_stocks->advection_test_tracer::advection_test_stock mom_tracer_flow_control::call_tracer_stocks->boundary_impulse_tracer::boundary_impulse_stock mom_tracer_flow_control::call_tracer_stocks->ideal_age_example::ideal_age_stock mom_tracer_flow_control::call_tracer_stocks->marbl_tracers::marbl_tracers_stock mom_tracer_flow_control::call_tracer_stocks->mom_cfc_cap::cfc_cap_stock mom_tracer_flow_control::call_tracer_stocks->mom_coms::efp_to_real mom_tracer_flow_control::call_tracer_stocks->mom_coms::interface::efp_sum_across_pes mom_tracer_flow_control::call_tracer_stocks->mom_error_handler::mom_error mom_tracer_flow_control::call_tracer_stocks->mom_generic_tracer::mom_generic_tracer_min_max mom_tracer_flow_control::call_tracer_stocks->mom_generic_tracer::mom_generic_tracer_stock mom_tracer_flow_control::call_tracer_stocks->mom_ocmip2_cfc::ocmip2_cfc_stock mom_tracer_flow_control::store_stocks store_stocks [private/internal] mom_tracer_flow_control::call_tracer_stocks->mom_tracer_flow_control::store_stocks oil_tracer::oil_stock oil_stock mom_tracer_flow_control::call_tracer_stocks->oil_tracer::oil_stock pseudo_salt_tracer::pseudo_salt_stock pseudo_salt_stock mom_tracer_flow_control::call_tracer_stocks->pseudo_salt_tracer::pseudo_salt_stock regional_dyes::dye_stock dye_stock mom_tracer_flow_control::call_tracer_stocks->regional_dyes::dye_stock user_tracer_example::user_tracer_stock USER_tracer_stock mom_tracer_flow_control::call_tracer_stocks->user_tracer_example::user_tracer_stock
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_stocks calls cluster_mom_sum_output MOM_sum_output cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_sum_output::write_energy write_energy mom_tracer_flow_control::call_tracer_stocks call_tracer_stocks mom_sum_output::write_energy->mom_tracer_flow_control::call_tracer_stocks
Text view
subroutine store_stocks(pkg_name, ns, names, units, values, index, stock_values, set_pkg_name, max_ns, ns_tot, stock_names, stock_units)

This routine stores the stocks and does error handling for call_tracer_stocks.

Parameters
  • pkg_name [in]

    The tracer package name

  • ns [in]

    The number of stocks associated with this tracer package

  • names [in]

    Diagnostic names to use for each stock.

  • units [in]

    Units to use in the metadata for each stock.

  • values [in]

    The values of the tracer stocks [conc kg]

  • index [in]

    The integer stock index from stocks_constants_mod of the stock to be returned. If this is present and greater than 0, only a single stock can be returned.

  • stock_values [inout]

    The master list of stock values [conc kg]

  • set_pkg_name [inout]

    The name of the last tracer package whose stocks were stored for a specific index. This is used to trigger an error if there are redundant stocks.

  • max_ns [in]

    The maximum size of the master stock list

  • ns_tot [inout]

    The total number of stocks in the master list

  • stock_names [inout]

    Diagnostic names to use for each stock in the master list

  • stock_units [inout]

    Units to use in the metadata for each stock in the master list

Callees call graph
Callees of mom_tracer_flow_control::store_stocks calls cluster_mom_error_handler MOM_error_handler cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_error_handler::mom_error MOM_error mom_tracer_flow_control::store_stocks store_stocks [private/internal] mom_tracer_flow_control::store_stocks->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_tracer_flow_control::store_stocks calls cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_tracer_flow_control::call_tracer_stocks call_tracer_stocks mom_tracer_flow_control::store_stocks store_stocks [private/internal] mom_tracer_flow_control::call_tracer_stocks->mom_tracer_flow_control::store_stocks
Text view
subroutine call_tracer_surface_state(sfc_state, h, G, GV, US, CS)

This subroutine calls all registered tracer packages to enable them to add to the surface state returned to the coupler. These routines are optional.

Parameters
  • sfc_state [inout]

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

  • 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]

  • US [in]

    A dimensional unit scaling type

  • CS

    The control structure returned by a previous call to call_tracer_register.

Callees call graph
Callees of mom_tracer_flow_control::call_tracer_surface_state calls cluster_advection_test_tracer advection_test_tracer cluster_dome_tracer DOME_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_marbl_tracers MARBL_tracers cluster_mom_error_handler MOM_error_handler cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_oil_tracer oil_tracer cluster_regional_dyes regional_dyes cluster_user_tracer_example USER_tracer_example advection_test_tracer::advection_test_tracer_surface_state advection_test_tracer_surface_state dome_tracer::dome_tracer_surface_state DOME_tracer_surface_state ideal_age_example::ideal_age_tracer_surface_state ideal_age_tracer_surface_state isomip_tracer::isomip_tracer_surface_state ISOMIP_tracer_surface_state marbl_tracers::marbl_tracers_surface_state MARBL_tracers_surface_state mom_error_handler::mom_error MOM_error mom_generic_tracer::mom_generic_tracer_surface_state MOM_generic_tracer_surface_state mom_ocmip2_cfc::ocmip2_cfc_surface_state OCMIP2_CFC_surface_state mom_tracer_flow_control::call_tracer_surface_state call_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->advection_test_tracer::advection_test_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->dome_tracer::dome_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->ideal_age_example::ideal_age_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->isomip_tracer::isomip_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->marbl_tracers::marbl_tracers_surface_state mom_tracer_flow_control::call_tracer_surface_state->mom_error_handler::mom_error mom_tracer_flow_control::call_tracer_surface_state->mom_generic_tracer::mom_generic_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->mom_ocmip2_cfc::ocmip2_cfc_surface_state oil_tracer::oil_tracer_surface_state oil_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->oil_tracer::oil_tracer_surface_state regional_dyes::dye_tracer_surface_state dye_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->regional_dyes::dye_tracer_surface_state user_tracer_example::user_tracer_surface_state USER_tracer_surface_state mom_tracer_flow_control::call_tracer_surface_state->user_tracer_example::user_tracer_surface_state
Text view
Callers call graph
Callers of mom_tracer_flow_control::call_tracer_surface_state calls cluster_mom MOM cluster_mom_tracer_flow_control MOM_tracer_flow_control mom::extract_surface_state extract_surface_state mom_tracer_flow_control::call_tracer_surface_state call_tracer_surface_state mom::extract_surface_state->mom_tracer_flow_control::call_tracer_surface_state
Text view

subroutine tracer_flow_control_end(CS)

Parameters
  • CS

    The control structure returned by a previous call to call_tracer_register.

Callees call graph
Callees of mom_tracer_flow_control::tracer_flow_control_end calls cluster_advection_test_tracer advection_test_tracer cluster_boundary_impulse_tracer boundary_impulse_tracer cluster_dome_tracer DOME_tracer cluster_dyed_obc_tracer dyed_obc_tracer cluster_ideal_age_example ideal_age_example cluster_isomip_tracer ISOMIP_tracer cluster_marbl_tracers MARBL_tracers cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_generic_tracer MOM_generic_tracer cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers cluster_oil_tracer oil_tracer cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes cluster_rgc_tracer RGC_tracer cluster_user_tracer_example USER_tracer_example advection_test_tracer::advection_test_tracer_end advection_test_tracer_end boundary_impulse_tracer::boundary_impulse_tracer_end boundary_impulse_tracer_end dome_tracer::dome_tracer_end DOME_tracer_end dyed_obc_tracer::dyed_obc_tracer_end dyed_obc_tracer_end ideal_age_example::ideal_age_example_end ideal_age_example_end isomip_tracer::isomip_tracer_end ISOMIP_tracer_end marbl_tracers::marbl_tracers_end MARBL_tracers_end mom_cfc_cap::cfc_cap_end CFC_cap_end mom_generic_tracer::end_mom_generic_tracer end_MOM_generic_tracer mom_ocmip2_cfc::ocmip2_cfc_end OCMIP2_CFC_end mom_tracer_flow_control::tracer_flow_control_end tracer_flow_control_end mom_tracer_flow_control::tracer_flow_control_end->advection_test_tracer::advection_test_tracer_end mom_tracer_flow_control::tracer_flow_control_end->boundary_impulse_tracer::boundary_impulse_tracer_end mom_tracer_flow_control::tracer_flow_control_end->dome_tracer::dome_tracer_end mom_tracer_flow_control::tracer_flow_control_end->dyed_obc_tracer::dyed_obc_tracer_end mom_tracer_flow_control::tracer_flow_control_end->ideal_age_example::ideal_age_example_end mom_tracer_flow_control::tracer_flow_control_end->isomip_tracer::isomip_tracer_end mom_tracer_flow_control::tracer_flow_control_end->marbl_tracers::marbl_tracers_end mom_tracer_flow_control::tracer_flow_control_end->mom_cfc_cap::cfc_cap_end mom_tracer_flow_control::tracer_flow_control_end->mom_generic_tracer::end_mom_generic_tracer mom_tracer_flow_control::tracer_flow_control_end->mom_ocmip2_cfc::ocmip2_cfc_end nw2_tracers::nw2_tracers_end nw2_tracers_end mom_tracer_flow_control::tracer_flow_control_end->nw2_tracers::nw2_tracers_end oil_tracer::oil_tracer_end oil_tracer_end mom_tracer_flow_control::tracer_flow_control_end->oil_tracer::oil_tracer_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 regional_dyes::regional_dyes_end regional_dyes_end mom_tracer_flow_control::tracer_flow_control_end->regional_dyes::regional_dyes_end rgc_tracer::rgc_tracer_end RGC_tracer_end mom_tracer_flow_control::tracer_flow_control_end->rgc_tracer::rgc_tracer_end user_tracer_example::user_tracer_example_end USER_tracer_example_end mom_tracer_flow_control::tracer_flow_control_end->user_tracer_example::user_tracer_example_end
Text view
Callers call graph
Callers of mom_tracer_flow_control::tracer_flow_control_end calls cluster_mom MOM cluster_mom_tracer_flow_control MOM_tracer_flow_control mom::mom_end MOM_end mom_tracer_flow_control::tracer_flow_control_end tracer_flow_control_end mom::mom_end->mom_tracer_flow_control::tracer_flow_control_end
Text view
API generated with Flint · Rendered from reStructuredText