MOM_tracer_flow_control module reference
Orchestrates the registration and calling of tracer packages
Data Types
The control structure for orchestrating the calling of tracer packages |
Functions/Subroutines
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 |
|
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. |
|
This subroutine calls all registered tracer initialization subroutines. |
|
This subroutine calls all registered tracers to register their OBC segments similar to register_temp_salt_segments for T&S |
|
This subroutine extracts the chlorophyll concentrations from the model state, if possible |
|
Returns pointers or values of members within the tracer_flow_control_CS type. For extensibility, each returned argument is an optional argument |
|
This subroutine calls the individual tracer modules' subroutines to specify or read quantities related to their surface forcing. |
|
This subroutine calls all registered tracer column physics subroutines. |
|
This subroutine calls all registered tracer packages to enable them to add to the surface state returned to the coupler. These routines are optional. |
|
This routine stores the stocks and does error handling for 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. |
|
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
Text view
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
- 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
Text view
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
mom_tracer_flow_control::call_tracer_register → nw2_tracers::register_nw2_tracers
mom_tracer_flow_control::call_tracer_register → oil_tracer::register_oil_tracer
mom_tracer_flow_control::call_tracer_register → pseudo_salt_tracer::register_pseudo_salt_tracer
mom_tracer_flow_control::call_tracer_register → regional_dyes::register_dye_tracer
mom_tracer_flow_control::call_tracer_register → rgc_tracer::register_rgc_tracer
mom_tracer_flow_control::call_tracer_register → user_tracer_example::user_register_tracer_example
- 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
Text view
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
mom_tracer_flow_control::tracer_flow_control_init → nw2_tracers::initialize_nw2_tracers
mom_tracer_flow_control::tracer_flow_control_init → oil_tracer::initialize_oil_tracer
mom_tracer_flow_control::tracer_flow_control_init → pseudo_salt_tracer::initialize_pseudo_salt_tracer
mom_tracer_flow_control::tracer_flow_control_init → regional_dyes::initialize_dye_tracer
mom_tracer_flow_control::tracer_flow_control_init → rgc_tracer::initialize_rgc_tracer
mom_tracer_flow_control::tracer_flow_control_init → user_tracer_example::user_initialize_tracer
Callers call graph
- 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
Callers call graph
- 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
Callers call graph
- 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
- 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
Callers call graph
- 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
Text view
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
mom_tracer_flow_control::call_tracer_column_fns → nw2_tracers::nw2_tracer_column_physics
mom_tracer_flow_control::call_tracer_column_fns → oil_tracer::oil_tracer_column_physics
mom_tracer_flow_control::call_tracer_column_fns → pseudo_salt_tracer::pseudo_salt_tracer_column_physics
mom_tracer_flow_control::call_tracer_column_fns → regional_dyes::dye_tracer_column_physics
mom_tracer_flow_control::call_tracer_column_fns → rgc_tracer::rgc_tracer_column_physics
mom_tracer_flow_control::call_tracer_column_fns → user_tracer_example::tracer_column_physics
Callers call graph
Text view
mom_diabatic_driver::adiabatic → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::diabatic_ale → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::diabatic_ale_legacy → mom_tracer_flow_control::call_tracer_column_fns
mom_diabatic_driver::layered_diabatic → mom_tracer_flow_control::call_tracer_column_fns
mom_offline_main::offline_advection_layer → mom_tracer_flow_control::call_tracer_column_fns
mom_offline_main::offline_diabatic_ale → mom_tracer_flow_control::call_tracer_column_fns
- 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
Text view
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::call_tracer_stocks → mom_tracer_flow_control::store_stocks
mom_tracer_flow_control::call_tracer_stocks → oil_tracer::oil_stock
mom_tracer_flow_control::call_tracer_stocks → pseudo_salt_tracer::pseudo_salt_stock
mom_tracer_flow_control::call_tracer_stocks → regional_dyes::dye_stock
mom_tracer_flow_control::call_tracer_stocks → user_tracer_example::user_tracer_stock
Callers call graph
- 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
Callers call graph
- 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
Text view
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
mom_tracer_flow_control::call_tracer_surface_state → oil_tracer::oil_tracer_surface_state
mom_tracer_flow_control::call_tracer_surface_state → regional_dyes::dye_tracer_surface_state
mom_tracer_flow_control::call_tracer_surface_state → user_tracer_example::user_tracer_surface_state
Callers call graph
subroutine tracer_flow_control_end(CS)
- Parameters
CS
The control structure returned by a previous call to call_tracer_register.
Callees call graph
Text view
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
mom_tracer_flow_control::tracer_flow_control_end → nw2_tracers::nw2_tracers_end
mom_tracer_flow_control::tracer_flow_control_end → oil_tracer::oil_tracer_end
mom_tracer_flow_control::tracer_flow_control_end → pseudo_salt_tracer::pseudo_salt_tracer_end
mom_tracer_flow_control::tracer_flow_control_end → regional_dyes::regional_dyes_end
mom_tracer_flow_control::tracer_flow_control_end → rgc_tracer::rgc_tracer_end
mom_tracer_flow_control::tracer_flow_control_end → user_tracer_example::user_tracer_example_end