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

MOM_tracer_chksum

Write out checksums for registered tracers

MOM_tracer_chkinv

Calculate and print the global inventories of registered tracers

Functions/Subroutines

register_tracer

This subroutine registers a tracer to be advected and laterally diffused.

lock_tracer_registry

This subroutine locks the tracer registry to prevent the addition of more tracers. After locked=.true., can then register common diagnostics.

register_tracer_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.

preALE_tracer_diagnostics

postALE_tracer_diagnostics

post_tracer_diagnostics_at_sync

Post tracer diganostics when that should only be posted when MOM's state is self-consistent (also referred to as 'synchronized')

post_tracer_transport_diagnostics

Post the advective and diffusive tendencies

post_tracer_integral_diagnostics

Post diagnostics of vertically integrated tracer amouints

tracer_array_chksum

This subroutine writes out chksums for the first ntr registered tracers.

tracer_Reg_chksum

This subroutine writes out chksums for all the registered tracers.

tracer_array_chkinv

Calculates and prints the global inventory of the first ntr tracers in the registry.

tracer_Reg_chkinv

Calculates and prints the global inventory of all tracers in the registry.

tracer_name_lookup

Find a tracer in the tracer registry by name.

tracer_registry_init

Initialize the tracer registry.

tracer_registry_end

This routine closes the tracer registry module.

Generic Interface Documentation

interface MOM_tracer_chksum

Write out checksums for registered tracers

Callers call graph
Callers of mom_tracer_registry::interface::mom_tracer_chksum calls cluster_mom MOM cluster_mom_offline_main MOM_offline_main cluster_mom_tracer_hor_diff MOM_tracer_hor_diff cluster_mom_tracer_registry MOM_tracer_registry mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom_tracer_registry::interface::mom_tracer_chksum MOM_tracer_chksum (interface) mom::step_mom_tracer_dyn->mom_tracer_registry::interface::mom_tracer_chksum mom_offline_main::offline_redistribute_residual offline_redistribute_residual mom_offline_main::offline_redistribute_residual->mom_tracer_registry::interface::mom_tracer_chksum mom_tracer_hor_diff::tracer_hordiff tracer_hordiff mom_tracer_hor_diff::tracer_hordiff->mom_tracer_registry::interface::mom_tracer_chksum
Text view
interface MOM_tracer_chkinv

Calculate and print the global inventories of registered tracers

Callers call graph
Callers of mom_tracer_registry::interface::mom_tracer_chkinv calls cluster_mom_ale MOM_ALE cluster_mom_offline_main MOM_offline_main cluster_mom_tracer_registry MOM_tracer_registry mom_ale::ale_offline_inputs ALE_offline_inputs mom_tracer_registry::interface::mom_tracer_chkinv MOM_tracer_chkinv (interface) mom_ale::ale_offline_inputs->mom_tracer_registry::interface::mom_tracer_chkinv mom_offline_main::offline_advection_ale offline_advection_ale mom_offline_main::offline_advection_ale->mom_tracer_registry::interface::mom_tracer_chkinv mom_offline_main::offline_diabatic_ale offline_diabatic_ale mom_offline_main::offline_diabatic_ale->mom_tracer_registry::interface::mom_tracer_chkinv mom_offline_main::offline_fw_fluxes_into_ocean offline_fw_fluxes_into_ocean mom_offline_main::offline_fw_fluxes_into_ocean->mom_tracer_registry::interface::mom_tracer_chkinv mom_offline_main::offline_fw_fluxes_out_ocean offline_fw_fluxes_out_ocean mom_offline_main::offline_fw_fluxes_out_ocean->mom_tracer_registry::interface::mom_tracer_chkinv mom_offline_main::offline_redistribute_residual offline_redistribute_residual mom_offline_main::offline_redistribute_residual->mom_tracer_registry::interface::mom_tracer_chkinv
Text view

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
Callees of mom_tracer_registry::register_tracer calls cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_mom_string_functions MOM_string_functions cluster_mom_tracer_registry MOM_tracer_registry mom_error_handler::mom_error MOM_error mom_io::query_vardesc query_vardesc mom_restart::interface::register_restart_field register_restart_field (interface) mom_string_functions::lowercase lowercase mom_tracer_registry::register_tracer register_tracer 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::tracer_registry_init tracer_registry_init mom_tracer_registry::register_tracer->mom_tracer_registry::tracer_registry_init
Text view
Callers call graph
Callers of mom_tracer_registry::register_tracer 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 MOM cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_registry MOM_tracer_registry 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 mom_tracer_registry::register_tracer register_tracer advection_test_tracer::register_advection_test_tracer->mom_tracer_registry::register_tracer boundary_impulse_tracer::register_boundary_impulse_tracer register_boundary_impulse_tracer boundary_impulse_tracer::register_boundary_impulse_tracer->mom_tracer_registry::register_tracer dome_tracer::register_dome_tracer register_DOME_tracer dome_tracer::register_dome_tracer->mom_tracer_registry::register_tracer dyed_obc_tracer::register_dyed_obc_tracer register_dyed_obc_tracer dyed_obc_tracer::register_dyed_obc_tracer->mom_tracer_registry::register_tracer ideal_age_example::register_ideal_age_tracer register_ideal_age_tracer ideal_age_example::register_ideal_age_tracer->mom_tracer_registry::register_tracer isomip_tracer::register_isomip_tracer register_ISOMIP_tracer isomip_tracer::register_isomip_tracer->mom_tracer_registry::register_tracer marbl_tracers::register_marbl_tracers register_MARBL_tracers marbl_tracers::register_marbl_tracers->mom_tracer_registry::register_tracer mom::initialize_mom initialize_MOM mom::initialize_mom->mom_tracer_registry::register_tracer mom_cfc_cap::register_cfc_cap register_CFC_cap mom_cfc_cap::register_cfc_cap->mom_tracer_registry::register_tracer mom_ocmip2_cfc::register_ocmip2_cfc register_OCMIP2_CFC mom_ocmip2_cfc::register_ocmip2_cfc->mom_tracer_registry::register_tracer nw2_tracers::register_nw2_tracers register_nw2_tracers nw2_tracers::register_nw2_tracers->mom_tracer_registry::register_tracer oil_tracer::register_oil_tracer register_oil_tracer oil_tracer::register_oil_tracer->mom_tracer_registry::register_tracer pseudo_salt_tracer::register_pseudo_salt_tracer register_pseudo_salt_tracer pseudo_salt_tracer::register_pseudo_salt_tracer->mom_tracer_registry::register_tracer regional_dyes::register_dye_tracer register_dye_tracer regional_dyes::register_dye_tracer->mom_tracer_registry::register_tracer rgc_tracer::register_rgc_tracer register_RGC_tracer rgc_tracer::register_rgc_tracer->mom_tracer_registry::register_tracer user_tracer_example::user_register_tracer_example USER_register_tracer_example user_tracer_example::user_register_tracer_example->mom_tracer_registry::register_tracer
Text view
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
Callees of mom_tracer_registry::lock_tracer_registry calls cluster_mom_error_handler MOM_error_handler cluster_mom_tracer_registry MOM_tracer_registry mom_error_handler::mom_error MOM_error mom_tracer_registry::lock_tracer_registry lock_tracer_registry mom_tracer_registry::lock_tracer_registry->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_tracer_registry::lock_tracer_registry calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::initialize_mom initialize_MOM mom_tracer_registry::lock_tracer_registry lock_tracer_registry mom::initialize_mom->mom_tracer_registry::lock_tracer_registry
Text view
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
Callees of mom_tracer_registry::register_tracer_diagnostics calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_safe_alloc MOM_safe_alloc cluster_mom_string_functions MOM_string_functions cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::register_diag_field register_diag_field mom_error_handler::mom_error MOM_error mom_io::cmor_long_std cmor_long_std mom_safe_alloc::interface::safe_alloc_ptr safe_alloc_ptr (interface) mom_string_functions::lowercase lowercase mom_tracer_registry::register_tracer_diagnostics register_tracer_diagnostics 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
Text view
Callers call graph
Callers of mom_tracer_registry::register_tracer_diagnostics calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::initialize_mom initialize_MOM mom_tracer_registry::register_tracer_diagnostics register_tracer_diagnostics mom::initialize_mom->mom_tracer_registry::register_tracer_diagnostics
Text view

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
Callers of mom_tracer_registry::preale_tracer_diagnostics calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_tracer_registry::preale_tracer_diagnostics preALE_tracer_diagnostics mom::ale_regridding_and_remapping->mom_tracer_registry::preale_tracer_diagnostics
Text view

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
Callees of mom_tracer_registry::postale_tracer_diagnostics calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::interface::post_data post_data (interface) mom_error_handler::mom_error MOM_error mom_tracer_registry::postale_tracer_diagnostics postALE_tracer_diagnostics mom_tracer_registry::postale_tracer_diagnostics->mom_diag_mediator::interface::post_data mom_tracer_registry::postale_tracer_diagnostics->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_tracer_registry::postale_tracer_diagnostics calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_tracer_registry::postale_tracer_diagnostics postALE_tracer_diagnostics mom::ale_regridding_and_remapping->mom_tracer_registry::postale_tracer_diagnostics
Text view
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
Callees of mom_tracer_registry::post_tracer_diagnostics_at_sync calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::diag_copy_storage_to_diag diag_copy_storage_to_diag mom_diag_mediator::diag_restore_grids diag_restore_grids mom_diag_mediator::diag_save_grids diag_save_grids mom_diag_mediator::interface::post_data post_data (interface) mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync 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
Text view
Callers call graph
Callers of mom_tracer_registry::post_tracer_diagnostics_at_sync calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::step_mom step_MOM mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync mom::step_mom->mom_tracer_registry::post_tracer_diagnostics_at_sync
Text view
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
Callees of mom_tracer_registry::post_tracer_transport_diagnostics calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::interface::post_data post_data (interface) mom_tracer_registry::post_tracer_transport_diagnostics post_tracer_transport_diagnostics mom_tracer_registry::post_tracer_transport_diagnostics->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_tracer_registry::post_tracer_transport_diagnostics calls cluster_mom_diagnostics MOM_diagnostics cluster_mom_tracer_registry MOM_tracer_registry mom_diagnostics::post_transport_diagnostics post_transport_diagnostics mom_tracer_registry::post_tracer_transport_diagnostics post_tracer_transport_diagnostics mom_diagnostics::post_transport_diagnostics->mom_tracer_registry::post_tracer_transport_diagnostics
Text view
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
Callees of mom_tracer_registry::post_tracer_integral_diagnostics calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_interface_heights MOM_interface_heights cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::interface::post_data post_data (interface) mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_tracer_registry::post_tracer_integral_diagnostics post_tracer_integral_diagnostics mom_tracer_registry::post_tracer_integral_diagnostics->mom_diag_mediator::interface::post_data mom_tracer_registry::post_tracer_integral_diagnostics->mom_interface_heights::interface::thickness_to_dz
Text view
Callers call graph
Callers of mom_tracer_registry::post_tracer_integral_diagnostics calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::step_mom step_MOM mom_tracer_registry::post_tracer_integral_diagnostics post_tracer_integral_diagnostics mom::step_mom->mom_tracer_registry::post_tracer_integral_diagnostics
Text view
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
Callees of mom_tracer_registry::tracer_array_chksum calls cluster_mom_checksums MOM_checksums cluster_mom_tracer_registry MOM_tracer_registry mom_checksums::interface::hchksum hchksum (interface) mom_tracer_registry::tracer_array_chksum tracer_array_chksum [private/internal] mom_tracer_registry::tracer_array_chksum->mom_checksums::interface::hchksum
Text view
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
Callees of mom_tracer_registry::tracer_reg_chksum calls cluster_mom_checksums MOM_checksums cluster_mom_tracer_registry MOM_tracer_registry mom_checksums::interface::hchksum hchksum (interface) mom_tracer_registry::tracer_reg_chksum tracer_Reg_chksum [private/internal] mom_tracer_registry::tracer_reg_chksum->mom_checksums::interface::hchksum
Text view
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
Callees of mom_tracer_registry::tracer_array_chkinv calls cluster_mom_coms MOM_coms cluster_mom_error_infra MOM_error_infra cluster_mom_tracer_registry MOM_tracer_registry mom_coms::interface::reproducing_sum reproducing_sum (interface) mom_error_infra::is_root_pe is_root_pe mom_tracer_registry::tracer_array_chkinv tracer_array_chkinv [private/internal] mom_tracer_registry::tracer_array_chkinv->mom_coms::interface::reproducing_sum mom_tracer_registry::tracer_array_chkinv->mom_error_infra::is_root_pe
Text view
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
Callees of mom_tracer_registry::tracer_reg_chkinv calls cluster_mom_coms MOM_coms cluster_mom_error_infra MOM_error_infra cluster_mom_tracer_registry MOM_tracer_registry mom_coms::interface::reproducing_sum reproducing_sum (interface) mom_error_infra::is_root_pe is_root_pe mom_tracer_registry::tracer_reg_chkinv tracer_Reg_chkinv [private/internal] mom_tracer_registry::tracer_reg_chkinv->mom_coms::interface::reproducing_sum mom_tracer_registry::tracer_reg_chkinv->mom_error_infra::is_root_pe
Text view
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
Callees of mom_tracer_registry::tracer_name_lookup calls cluster_mom_error_handler MOM_error_handler cluster_mom_string_functions MOM_string_functions cluster_mom_tracer_registry MOM_tracer_registry mom_error_handler::mom_error MOM_error mom_string_functions::lowercase lowercase mom_tracer_registry::tracer_name_lookup tracer_name_lookup mom_tracer_registry::tracer_name_lookup->mom_error_handler::mom_error mom_tracer_registry::tracer_name_lookup->mom_string_functions::lowercase
Text view
Callers call graph
Callers of mom_tracer_registry::tracer_name_lookup calls cluster_dome_initialization DOME_initialization cluster_dyed_channel_initialization dyed_channel_initialization cluster_dyed_obcs_initialization dyed_obcs_initialization cluster_mom_open_boundary MOM_open_boundary cluster_mom_tracer_registry MOM_tracer_registry dome_initialization::dome_set_obc_data DOME_set_OBC_data mom_tracer_registry::tracer_name_lookup tracer_name_lookup dome_initialization::dome_set_obc_data->mom_tracer_registry::tracer_name_lookup dyed_channel_initialization::dyed_channel_set_obc_tracer_data dyed_channel_set_OBC_tracer_data dyed_channel_initialization::dyed_channel_set_obc_tracer_data->mom_tracer_registry::tracer_name_lookup dyed_obcs_initialization::dyed_obcs_set_obc_data dyed_obcs_set_OBC_data dyed_obcs_initialization::dyed_obcs_set_obc_data->mom_tracer_registry::tracer_name_lookup mom_open_boundary::register_obgc_segments register_obgc_segments mom_open_boundary::register_obgc_segments->mom_tracer_registry::tracer_name_lookup mom_open_boundary::register_temp_salt_segments register_temp_salt_segments mom_open_boundary::register_temp_salt_segments->mom_tracer_registry::tracer_name_lookup
Text view
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
Callees of mom_tracer_registry::tracer_registry_init calls cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_file_parser MOM_file_parser cluster_mom_tracer_registry MOM_tracer_registry mom_error_handler::mom_error MOM_error mom_error_infra::is_root_pe is_root_pe mom_file_parser::interface::log_version log_version (interface) mom_tracer_registry::tracer_registry_init tracer_registry_init mom_tracer_registry::tracer_registry_init->mom_error_handler::mom_error mom_tracer_registry::tracer_registry_init->mom_error_infra::is_root_pe mom_tracer_registry::tracer_registry_init->mom_file_parser::interface::log_version
Text view
Callers call graph
Callers of mom_tracer_registry::tracer_registry_init calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::initialize_mom initialize_MOM mom_tracer_registry::tracer_registry_init tracer_registry_init mom::initialize_mom->mom_tracer_registry::tracer_registry_init mom_tracer_registry::register_tracer register_tracer mom_tracer_registry::register_tracer->mom_tracer_registry::tracer_registry_init
Text view
subroutine tracer_registry_end(Reg)

This routine closes the tracer registry module.

Parameters
  • Reg

    The tracer registry that will be deallocated

Callers call graph
Callers of mom_tracer_registry::tracer_registry_end calls cluster_mom MOM cluster_mom_tracer_registry MOM_tracer_registry mom::mom_end MOM_end mom_tracer_registry::tracer_registry_end tracer_registry_end mom::mom_end->mom_tracer_registry::tracer_registry_end
Text view
API generated with Flint · Rendered from reStructuredText