MOM_OCMIP2_CFC module reference

Simulates CFCs using the OCMIP2 protocols

Data Types

OCMIP2_CFC_CS

The control structure for the OCMPI2_CFC tracer package

Functions/Subroutines

register_OCMIP2_CFC

Register the OCMIP2 CFC tracers to be used with MOM and read the parameters that are used with this tracer package

flux_init_OCMIP2_CFC

This subroutine initializes the air-sea CFC fluxes, and optionally returns the indicies of these fluxes. It can safely be called multiple times.

initialize_OCMIP2_CFC

Initialize the OCMP2 CFC tracer fields and set up the tracer output.

init_tracer_CFC

This subroutine initializes a tracer array.

OCMIP2_CFC_column_physics

This subroutine applies diapycnal diffusion, souces and sinks and any other column tracer physics or chemistry to the OCMIP2 CFC tracers. CFCs are relatively simple, as they are passive tracers with only a surface flux as a source.

OCMIP2_CFC_stock

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

OCMIP2_CFC_surface_state

This subroutine extracts the surface CFC concentrations and other fields that are shared with the atmosphere to calculate CFC fluxes.

OCMIP2_CFC_end

Deallocate any memory associated with the OCMIP2 CFC tracer package

Detailed Description

By Robert Hallberg, 2007

This module contains the code that is needed to set up and use CFC-11 and CFC-12 in a fully coupled or ice-ocean model context using the OCMIP2 protocols

Type Documentation

type, public :: OCMIP2_CFC_CS

The control structure for the OCMPI2_CFC tracer package

Parameters
  • IC_file

    The file in which the CFC initial values can be found, or an empty string for internal initilaization.

  • Z_IC_file

    If true, the IC_file is in Z-space. The default is false..

  • Time

    A pointer to the ocean model's clock.

  • tr_Reg

    A pointer to the MOM6 tracer registry

  • CFC11

    The CFC11 concentration [mol m-3].

  • a1_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a1_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a2_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a2_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a3_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a3_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a4_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • a4_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d1_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d1_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d2_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d2_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d3_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d3_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d4_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • d4_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e1_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e1_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e2_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e2_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e3_11

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • e3_12

    Coefficients used in the CFC11 and CFC12 solubility calculation

  • CFC11_IC_val

    The initial value assigned to CFC11 [mol m-3].

  • CFC12_IC_val

    The initial value assigned to CFC12 [mol m-3].

  • CFC11_land_val

    The value of CFC11 used where land is masked out [mol m-3].

  • CFC12_land_val

    The value of CFC12 used where land is masked out [mol m-3].

  • tracers_may_reinit

    If true, tracers may be reset via the initialization code if they are not found in the restart files.

  • CFC11_name

    CFC11 variable name

  • CFC12_name

    CFC12 variable name

  • ind_cfc_11_flux

    Index returned by atmos_ocn_coupler_flux that is used to pack and unpack surface boundary condition arrays.

  • ind_cfc_12_flux

    Index returned by atmos_ocn_coupler_flux that is used to pack and unpack surface boundary condition arrays.

  • diag

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

  • restart_CSp

    Model restart control structure

  • CFC11_desc

    A set of metadata for the CFC11 tracer

  • CFC12_desc

    A set of metadata for the CFC12 tracer

Functions/Subroutine Documentation

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

Register the OCMIP2 CFC tracers to be used with MOM and read the parameters that are used with this tracer package

Parameters
  • HI [in]

    A horizontal index type structure.

  • GV [in]

    The ocean's vertical grid structure.

  • param_file [in]

    A structure to parse for run-time parameters.

  • CS

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

  • tr_Reg

    A pointer to the tracer registry.

  • restart_CS [inout]

    MOM restart control struct

Callees call graph
Callees of mom_ocmip2_cfc::register_ocmip2_cfc calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_string_functions MOM_string_functions cluster_mom_tracer_registry MOM_tracer_registry mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::var_desc var_desc mom_ocmip2_cfc::flux_init_ocmip2_cfc flux_init_OCMIP2_CFC mom_ocmip2_cfc::register_ocmip2_cfc register_OCMIP2_CFC mom_ocmip2_cfc::register_ocmip2_cfc->mom_error_handler::mom_error mom_ocmip2_cfc::register_ocmip2_cfc->mom_file_parser::interface::get_param mom_ocmip2_cfc::register_ocmip2_cfc->mom_file_parser::interface::log_param mom_ocmip2_cfc::register_ocmip2_cfc->mom_file_parser::interface::log_version mom_ocmip2_cfc::register_ocmip2_cfc->mom_io::var_desc mom_ocmip2_cfc::register_ocmip2_cfc->mom_ocmip2_cfc::flux_init_ocmip2_cfc mom_string_functions::slasher slasher mom_ocmip2_cfc::register_ocmip2_cfc->mom_string_functions::slasher mom_tracer_registry::register_tracer register_tracer mom_ocmip2_cfc::register_ocmip2_cfc->mom_tracer_registry::register_tracer
Text view
Callers call graph
Callers of mom_ocmip2_cfc::register_ocmip2_cfc calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::register_ocmip2_cfc
Text view
subroutine flux_init_OCMIP2_CFC(CS, verbosity)

This subroutine initializes the air-sea CFC fluxes, and optionally returns the indicies of these fluxes. It can safely be called multiple times.

Parameters
  • CS

    An optional pointer to the control structure for this module; if not present, the flux indicies are not stored.

  • verbosity [in]

    A 0-9 integer indicating a level of verbosity.

Callees call graph
Callees of mom_ocmip2_cfc::flux_init_ocmip2_cfc calls cluster_mom_couplertype_infra MOM_couplertype_infra cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC mom_couplertype_infra::atmos_ocn_coupler_flux atmos_ocn_coupler_flux mom_ocmip2_cfc::flux_init_ocmip2_cfc flux_init_OCMIP2_CFC mom_ocmip2_cfc::flux_init_ocmip2_cfc->mom_couplertype_infra::atmos_ocn_coupler_flux
Text view
Callers call graph
Callers of mom_ocmip2_cfc::flux_init_ocmip2_cfc calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control mom_ocmip2_cfc::flux_init_ocmip2_cfc flux_init_OCMIP2_CFC mom_ocmip2_cfc::register_ocmip2_cfc register_OCMIP2_CFC mom_ocmip2_cfc::register_ocmip2_cfc->mom_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_ocmip2_cfc::flux_init_ocmip2_cfc
Text view
subroutine initialize_OCMIP2_CFC(restart, day, G, GV, US, h, diag, OBC, CS, sponge_CSp)

Initialize the OCMP2 CFC tracer fields and set up the tracer output.

Parameters
  • restart [in]

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

  • day [in]

    Time of the start of the run.

  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • h [in]

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

  • diag [in]

    A structure that is used to regulate diagnostic output.

  • OBC

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

  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

  • sponge_CSp

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

Callees call graph
Callees of mom_ocmip2_cfc::initialize_ocmip2_cfc calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_restart MOM_restart mom_ocmip2_cfc::init_tracer_cfc init_tracer_CFC [private/internal] mom_ocmip2_cfc::initialize_ocmip2_cfc initialize_OCMIP2_CFC mom_ocmip2_cfc::initialize_ocmip2_cfc->mom_ocmip2_cfc::init_tracer_cfc mom_restart::interface::query_initialized query_initialized (interface) mom_ocmip2_cfc::initialize_ocmip2_cfc->mom_restart::interface::query_initialized mom_restart::interface::set_initialized set_initialized (interface) mom_ocmip2_cfc::initialize_ocmip2_cfc->mom_restart::interface::set_initialized
Text view
Callers call graph
Callers of mom_ocmip2_cfc::initialize_ocmip2_cfc calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::initialize_ocmip2_cfc
Text view
subroutine init_tracer_CFC(h, tr, name, land_val, IC_val, G, GV, US, CS)

This subroutine initializes a tracer array.

Parameters
  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure.

  • US [in]

    A dimensional unit scaling type

  • h [in]

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

  • tr [out]

    The CFC tracer concentration array [mol m-3]

  • name [in]

    The tracer name

  • land_val [in]

    A value the tracer takes over land [mol m-3]

  • IC_val [in]

    The initial condition value for the CRC tracer [mol m-3]

  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

Callees call graph
Callees of mom_ocmip2_cfc::init_tracer_cfc calls cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_io_infra MOM_io_infra cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_z_init MOM_tracer_Z_init mom_error_handler::mom_error MOM_error mom_io::interface::mom_read_data MOM_read_data (interface) mom_io_infra::interface::file_exists file_exists (interface) mom_ocmip2_cfc::init_tracer_cfc init_tracer_CFC [private/internal] mom_ocmip2_cfc::init_tracer_cfc->mom_error_handler::mom_error mom_ocmip2_cfc::init_tracer_cfc->mom_io::interface::mom_read_data mom_ocmip2_cfc::init_tracer_cfc->mom_io_infra::interface::file_exists mom_tracer_z_init::tracer_z_init tracer_Z_init mom_ocmip2_cfc::init_tracer_cfc->mom_tracer_z_init::tracer_z_init
Text view
Callers call graph
Callers of mom_ocmip2_cfc::init_tracer_cfc calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC mom_ocmip2_cfc::init_tracer_cfc init_tracer_CFC [private/internal] mom_ocmip2_cfc::initialize_ocmip2_cfc initialize_OCMIP2_CFC mom_ocmip2_cfc::initialize_ocmip2_cfc->mom_ocmip2_cfc::init_tracer_cfc
Text view
subroutine OCMIP2_CFC_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, CS, evap_CFL_limit, minimum_forcing_depth)

This subroutine applies diapycnal diffusion, souces and sinks and any other column tracer physics or chemistry to the OCMIP2 CFC tracers. CFCs are relatively simple, as they are passive tracers with only a surface flux as a source.

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 thermodynamic and tracer forcing fields. Unused fields have NULL ptrs.

  • dt [in]

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

  • US [in]

    A dimensional unit scaling type

  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

  • evap_CFL_limit [in]

    Limit on the fraction of the water that can be fluxed out of the top layer in a timestep [nondim]

  • minimum_forcing_depth [in]

    The smallest depth over which fluxes can be applied [H ~> m or kg m-2]

Callees call graph
Callees of mom_ocmip2_cfc::ocmip2_cfc_column_physics calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_diabatic MOM_tracer_diabatic mom_coupler_types::extract_coupler_type_data extract_coupler_type_data mom_ocmip2_cfc::ocmip2_cfc_column_physics OCMIP2_CFC_column_physics mom_ocmip2_cfc::ocmip2_cfc_column_physics->mom_coupler_types::extract_coupler_type_data mom_tracer_diabatic::applytracerboundaryfluxesinout applyTracerBoundaryFluxesInOut mom_ocmip2_cfc::ocmip2_cfc_column_physics->mom_tracer_diabatic::applytracerboundaryfluxesinout mom_tracer_diabatic::tracer_vertdiff tracer_vertdiff mom_ocmip2_cfc::ocmip2_cfc_column_physics->mom_tracer_diabatic::tracer_vertdiff
Text view
Callers call graph
Callers of mom_ocmip2_cfc::ocmip2_cfc_column_physics calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::ocmip2_cfc_column_physics
Text view
function OCMIP2_CFC_stock(h, stocks, G, GV, CS, names, units, stock_index)

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

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure.

  • h [in]

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

  • stocks [out]

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

  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

  • names [out]

    The names of the stocks calculated.

  • units [out]

    The units of the stocks calculated.

  • stock_index [in]

    The coded index of a specific stock being sought.

  • OCMIP2_CFC_stock

    The number of stocks calculated here.

Callees call graph
Callees of mom_ocmip2_cfc::ocmip2_cfc_stock calls cluster_mom_io MOM_io cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_spatial_means MOM_spatial_means mom_io::query_vardesc query_vardesc mom_ocmip2_cfc::ocmip2_cfc_stock OCMIP2_CFC_stock mom_ocmip2_cfc::ocmip2_cfc_stock->mom_io::query_vardesc mom_spatial_means::global_mass_int_efp global_mass_int_EFP mom_ocmip2_cfc::ocmip2_cfc_stock->mom_spatial_means::global_mass_int_efp
Text view
Callers call graph
Callers of mom_ocmip2_cfc::ocmip2_cfc_stock calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::ocmip2_cfc_stock
Text view
subroutine OCMIP2_CFC_surface_state(sfc_state, h, G, GV, US, CS)

This subroutine extracts the surface CFC concentrations and other fields that are shared with the atmosphere to calculate CFC fluxes.

Parameters
  • G [in]

    The ocean's grid structure.

  • GV [in]

    The ocean's vertical grid structure

  • sfc_state [inout]

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

  • h [in]

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

  • US [in]

    A dimensional unit scaling type

  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

Callees call graph
Callees of mom_ocmip2_cfc::ocmip2_cfc_surface_state calls cluster_mom_coupler_types MOM_coupler_types cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC mom_coupler_types::set_coupler_type_data set_coupler_type_data mom_ocmip2_cfc::ocmip2_cfc_surface_state OCMIP2_CFC_surface_state mom_ocmip2_cfc::ocmip2_cfc_surface_state->mom_coupler_types::set_coupler_type_data
Text view
Callers call graph
Callers of mom_ocmip2_cfc::ocmip2_cfc_surface_state calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::ocmip2_cfc_surface_state
Text view
subroutine OCMIP2_CFC_end(CS)

Deallocate any memory associated with the OCMIP2 CFC tracer package

Parameters
  • CS

    The control structure returned by a previous call to register_OCMIP2_CFC.

Callers call graph
Callers of mom_ocmip2_cfc::ocmip2_cfc_end calls cluster_mom_ocmip2_cfc MOM_OCMIP2_CFC cluster_mom_tracer_flow_control MOM_tracer_flow_control 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->mom_ocmip2_cfc::ocmip2_cfc_end
Text view
API generated with Flint · Rendered from reStructuredText