MOM_OCMIP2_CFC module reference
Simulates CFCs using the OCMIP2 protocols
Data Types
The control structure for the OCMPI2_CFC tracer package |
Functions/Subroutines
Register the OCMIP2 CFC tracers to be used with MOM and read the parameters that are used with this tracer package |
|
This subroutine initializes the air-sea CFC fluxes, and optionally returns the indicies of these fluxes. It can safely be called multiple times. |
|
Initialize the OCMP2 CFC tracer fields and set up the tracer output. |
|
This subroutine initializes a tracer array. |
|
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. |
|
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. |
|
This subroutine extracts the surface CFC concentrations and other fields that are shared with the atmosphere to calculate CFC fluxes. |
|
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
Text view
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_ocmip2_cfc::flux_init_ocmip2_cfc
mom_ocmip2_cfc::register_ocmip2_cfc → mom_string_functions::slasher
mom_ocmip2_cfc::register_ocmip2_cfc → mom_tracer_registry::register_tracer
Callers call graph
- 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
- 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
Callers call graph
- 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
Callers call graph
- 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
Callers call graph
- 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
Callers call graph
- 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
Callers call graph
- 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.