MOM_tracer_registry module reference
This module contains subroutines that handle registration of tracers and related subroutines. The primary subroutine, register_tracer, is called to indicate the tracers advected and diffused. It also makes public the types defined in MOM_tracer_types.
Generic Interfaces
Write out checksums for registered tracers |
|
Calculate and print the global inventories of registered tracers |
Functions/Subroutines
This subroutine registers a tracer to be advected and laterally diffused. |
|
This subroutine locks the tracer registry to prevent the addition of more tracers. After locked=.true., can then register common diagnostics. |
|
register_tracer_diagnostics does a set of register_diag_field calls for any previously registered in a tracer registry with a value of registry_diags set to .true. |
|
Post tracer diganostics when that should only be posted when MOM's state is self-consistent (also referred to as 'synchronized') |
|
Post the advective and diffusive tendencies |
|
Post diagnostics of vertically integrated tracer amouints |
|
This subroutine writes out chksums for the first ntr registered tracers. |
|
This subroutine writes out chksums for all the registered tracers. |
|
Calculates and prints the global inventory of the first ntr tracers in the registry. |
|
Calculates and prints the global inventory of all tracers in the registry. |
|
Find a tracer in the tracer registry by name. |
|
Initialize the tracer registry. |
|
This routine closes the tracer registry module. |
Generic Interface Documentation
- interface MOM_tracer_chksum
Write out checksums for registered tracers
- interface MOM_tracer_chkinv
Calculate and print the global inventories of registered tracers
Callers call graph
Text view
mom_ale::ale_offline_inputs → mom_tracer_registry::interface::mom_tracer_chkinv
mom_offline_main::offline_advection_ale → mom_tracer_registry::interface::mom_tracer_chkinv
mom_offline_main::offline_diabatic_ale → mom_tracer_registry::interface::mom_tracer_chkinv
mom_offline_main::offline_fw_fluxes_into_ocean → mom_tracer_registry::interface::mom_tracer_chkinv
mom_offline_main::offline_fw_fluxes_out_ocean → mom_tracer_registry::interface::mom_tracer_chkinv
mom_offline_main::offline_redistribute_residual → mom_tracer_registry::interface::mom_tracer_chkinv
Functions/Subroutine Documentation
- subroutine register_tracer(tr_ptr, Reg, param_file, HI, GV, name, longname, units, cmor_name, cmor_units, cmor_longname, net_surfflux_name, NLT_budget_name, net_surfflux_longname, tr_desc, OBC_inflow, OBC_in_u, OBC_in_v, ad_x, ad_y, df_x, df_y, ad_2d_x, ad_2d_y, df_2d_x, df_2d_y, advection_xy, registry_diags, conc_scale, flux_nameroot, flux_longname, flux_units, flux_scale, convergence_units, convergence_scale, cmor_tendprefix, diag_form, restart_CS, mandatory, underflow_conc, Tr_out, advect_scheme)
This subroutine registers a tracer to be advected and laterally diffused.
- Parameters
HI [in]
horizontal index type
GV [in]
ocean vertical grid structure
Reg
pointer to the tracer registry
tr_ptr
target or pointer to the tracer array [CU ~> conc]
param_file [in]
file to parse for model parameter values
name [in]
Short tracer name
longname [in]
The long tracer name
units [in]
The units of this tracer
cmor_name [in]
CMOR name
cmor_units [in]
CMOR physical dimensions of variable
cmor_longname [in]
CMOR long name
net_surfflux_name [in]
Name for net_surfflux diag
NLT_budget_name [in]
Name for NLT_budget diag
net_surfflux_longname [in]
Long name for net_surfflux diag
tr_desc [in]
A structure with metadata about the tracer
OBC_inflow [in]
the tracer for all inflows via OBC for which OBC_in_u or OBC_in_v are not specified [CU ~> conc]
OBC_in_u
tracer at inflows through u-faces of tracer cells [CU ~> conc]
OBC_in_v
tracer at inflows through v-faces of tracer cells [CU ~> conc]
ad_x
diagnostic x-advective flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
ad_y
diagnostic y-advective flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
df_x
diagnostic x-diffusive flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
df_y
diagnostic y-diffusive flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
ad_2d_x
vert sum of diagnostic x-advect flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
ad_2d_y
vert sum of diagnostic y-advect flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
df_2d_x
vert sum of diagnostic x-diffuse flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
df_2d_y
vert sum of diagnostic y-diffuse flux [CU H L2 T-1 ~> conc m3 s-1 or conc kg s-1]
advection_xy
convergence of lateral advective tracer fluxes [CU H T-1 ~> conc m s-1 or conc kg m-2 s-1]
registry_diags [in]
If present and true, use the registry for the diagnostics of this tracer.
conc_scale [in]
A scaling factor used to convert the concentration of this tracer to its desired units [conc CU-1 ~> 1]
flux_nameroot [in]
Short tracer name snippet used construct the names of flux diagnostics.
flux_longname [in]
A word or phrase used construct the long names of flux diagnostics.
flux_units [in]
The units for the fluxes of this tracer.
flux_scale [in]
A scaling factor used to convert the fluxes of this tracer to its desired units [conc m CU-1 H-1 ~> 1] or [conc kg m-2 CU-1 H-1 ~> 1]
convergence_units [in]
The units for the flux convergence of this tracer.
convergence_scale [in]
A scaling factor used to convert the flux convergence of this tracer to its desired units. [conc m CU-1 H-1 ~> 1] or [conc kg m-2 CU-1 H-1 ~> 1]
cmor_tendprefix [in]
The CMOR name for the layer-integrated tendencies of this tracer.
diag_form [in]
An integer (1 or 2, 1 by default) indicating the character string template to use in labeling diagnostics
restart_CS [inout]
MOM restart control struct
mandatory [in]
If true, this tracer must be read from a restart file.
underflow_conc [in]
A tiny concentration, below which the tracer concentration underflows to 0 [CU ~> conc].
Tr_out
If present, returns pointer into registry
advect_scheme [in]
Advection scheme for this tracer, the default is -1 indicating to use the scheme from MOM_tracer_advect
Callees call graph
Text view
mom_tracer_registry::register_tracer → mom_error_handler::mom_error
mom_tracer_registry::register_tracer → mom_io::query_vardesc
mom_tracer_registry::register_tracer → mom_restart::interface::register_restart_field
mom_tracer_registry::register_tracer → mom_string_functions::lowercase
mom_tracer_registry::register_tracer → mom_tracer_registry::tracer_registry_init
Callers call graph
Text view
advection_test_tracer::register_advection_test_tracer → mom_tracer_registry::register_tracer
boundary_impulse_tracer::register_boundary_impulse_tracer → mom_tracer_registry::register_tracer
dome_tracer::register_dome_tracer → mom_tracer_registry::register_tracer
dyed_obc_tracer::register_dyed_obc_tracer → mom_tracer_registry::register_tracer
ideal_age_example::register_ideal_age_tracer → mom_tracer_registry::register_tracer
isomip_tracer::register_isomip_tracer → mom_tracer_registry::register_tracer
marbl_tracers::register_marbl_tracers → mom_tracer_registry::register_tracer
mom_cfc_cap::register_cfc_cap → mom_tracer_registry::register_tracer
mom_ocmip2_cfc::register_ocmip2_cfc → mom_tracer_registry::register_tracer
nw2_tracers::register_nw2_tracers → mom_tracer_registry::register_tracer
oil_tracer::register_oil_tracer → mom_tracer_registry::register_tracer
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_tracer_registry::register_tracer
regional_dyes::register_dye_tracer → mom_tracer_registry::register_tracer
rgc_tracer::register_rgc_tracer → mom_tracer_registry::register_tracer
user_tracer_example::user_register_tracer_example → mom_tracer_registry::register_tracer
- subroutine lock_tracer_registry(Reg)
This subroutine locks the tracer registry to prevent the addition of more tracers. After locked=.true., can then register common diagnostics.
- Parameters
Reg
pointer to the tracer registry
Callees call graph
- subroutine register_tracer_diagnostics(Reg, h, Time, diag, G, GV, US, use_ALE, use_KPP)
register_tracer_diagnostics does a set of register_diag_field calls for any previously registered in a tracer registry with a value of registry_diags set to .true.
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
Reg
pointer to the tracer registry
h [in]
Layer thicknesses [H ~> m or kg m-2]
Time [in]
current model time
diag [in]
structure to regulate diagnostic output
use_ALE [in]
If true active diagnostics that only apply to ALE configurations
use_KPP [in]
If true active diagnostics that only apply to CVMix KPP mixings
Callees call graph
Text view
mom_tracer_registry::register_tracer_diagnostics → mom_diag_mediator::register_diag_field
mom_tracer_registry::register_tracer_diagnostics → mom_error_handler::mom_error
mom_tracer_registry::register_tracer_diagnostics → mom_io::cmor_long_std
mom_tracer_registry::register_tracer_diagnostics → mom_safe_alloc::interface::safe_alloc_ptr
mom_tracer_registry::register_tracer_diagnostics → mom_string_functions::lowercase
subroutine preALE_tracer_diagnostics(Reg, G, GV)
- Parameters
Reg
pointer to the tracer registry
G [in]
The ocean's grid structure
GV [in]
ocean vertical grid structure
Callers call graph
subroutine postALE_tracer_diagnostics(Reg, G, GV, diag, dt)
- Parameters
Reg
pointer to the tracer registry
G [in]
The ocean's grid structure
GV [in]
ocean vertical grid structure
diag [in]
regulates diagnostic output
dt [in]
total time interval for these diagnostics [T ~> s]
Callees call graph
Callers call graph
- subroutine post_tracer_diagnostics_at_sync(Reg, h, diag_prev, diag, G, GV, dt)
Post tracer diganostics when that should only be posted when MOM's state is self-consistent (also referred to as 'synchronized')
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
Reg
pointer to the tracer registry
h [in]
Layer thicknesses [H ~> m or kg m-2]
diag_prev [in]
Contains diagnostic grids from previous timestep
diag [inout]
structure to regulate diagnostic output
dt [in]
total time step for tracer updates [T ~> s]
Callees call graph
Text view
mom_tracer_registry::post_tracer_diagnostics_at_sync → mom_diag_mediator::diag_copy_storage_to_diag
mom_tracer_registry::post_tracer_diagnostics_at_sync → mom_diag_mediator::diag_restore_grids
mom_tracer_registry::post_tracer_diagnostics_at_sync → mom_diag_mediator::diag_save_grids
mom_tracer_registry::post_tracer_diagnostics_at_sync → mom_diag_mediator::interface::post_data
- subroutine post_tracer_transport_diagnostics(G, GV, Reg, h_diag, diag)
Post the advective and diffusive tendencies
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
Reg
pointer to the tracer registry
h_diag [in]
Layer thicknesses on which to post fields [H ~> m or kg m-2]
diag [in]
structure to regulate diagnostic output
Callees call graph
Callers call graph
- subroutine post_tracer_integral_diagnostics(G, GV, US, Reg, h_diag, tv, diag)
Post diagnostics of vertically integrated tracer amouints
- Parameters
G [in]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
US [in]
A dimensional unit scaling type
Reg
pointer to the tracer registry
h_diag [in]
Layer thicknesses on which to post fields [H ~> m or kg m-2]
tv [in]
A structure pointing to various thermodynamic variables.
diag [in]
structure to regulate diagnostic output
dz
Geometric layer thicknesses in height units [Z ~> m]
Callees call graph
- subroutine tracer_array_chksum(mesg, Tr, ntr, G)
This subroutine writes out chksums for the first ntr registered tracers.
- Parameters
mesg [in]
message that appears on the chksum lines
Tr [in]
array of all of registered tracers
ntr [in]
number of registered tracers
G [in]
ocean grid structure
Callees call graph
- subroutine tracer_Reg_chksum(mesg, Reg, G)
This subroutine writes out chksums for all the registered tracers.
- Parameters
mesg [in]
message that appears on the chksum lines
Reg
pointer to the tracer registry
G [in]
ocean grid structure
Callees call graph
- subroutine tracer_array_chkinv(mesg, G, GV, h, Tr, ntr)
Calculates and prints the global inventory of the first ntr tracers in the registry.
- Parameters
mesg [in]
message that appears on the chksum lines
G [in]
ocean grid structure
GV [in]
The ocean's vertical grid structure
Tr [in]
array of all of registered tracers
h [in]
Layer thicknesses [H ~> m or kg m-2]
ntr [in]
number of registered tracers
Callees call graph
- subroutine tracer_Reg_chkinv(mesg, G, GV, h, Reg)
Calculates and prints the global inventory of all tracers in the registry.
- Parameters
mesg [in]
message that appears on the chksum lines
G [in]
ocean grid structure
GV [in]
The ocean's vertical grid structure
Reg
pointer to the tracer registry
h [in]
Layer thicknesses [H ~> m or kg m-2]
Callees call graph
- subroutine tracer_name_lookup(Reg, n, tr_ptr, name)
Find a tracer in the tracer registry by name.
- Parameters
Reg
pointer to tracer registry
tr_ptr
target or pointer to the tracer array
name [in]
tracer name
n [out]
index to tracer registery
Callees call graph
Callers call graph
Text view
dome_initialization::dome_set_obc_data → mom_tracer_registry::tracer_name_lookup
dyed_channel_initialization::dyed_channel_set_obc_tracer_data → mom_tracer_registry::tracer_name_lookup
dyed_obcs_initialization::dyed_obcs_set_obc_data → mom_tracer_registry::tracer_name_lookup
mom_open_boundary::register_obgc_segments → mom_tracer_registry::tracer_name_lookup
mom_open_boundary::register_temp_salt_segments → mom_tracer_registry::tracer_name_lookup
- subroutine tracer_registry_init(param_file, Reg)
Initialize the tracer registry.
- Parameters
param_file [in]
open file to parse for model parameters
Reg
pointer to tracer registry
Callees call graph
Callers call graph
- subroutine tracer_registry_end(Reg)
This routine closes the tracer registry module.
- Parameters
Reg
The tracer registry that will be deallocated