MOM_generic_tracer module reference
Drives the generic version of tracers TOPAZ and CFC and other GFDL BGC components
Data Types
Control structure for generic tracers |
Functions/Subroutines
Initializes the generic tracer packages and adds their tracers to the list Adds the tracers in the list of generic tracers to the set of MOM tracers (i.e., MOM-register them) Register these tracers for restart |
|
Register OBC segments for generic tracers |
|
Initialize phase II: Initialize required variables for generic tracers There are some steps of initialization that cannot be done in register_MOM_generic_tracer This is the place and time to do them: Set the grid mask and initial time for all generic tracers. Diag_register them. Z_diag_register them. |
|
Column physics for generic tracers. Get the coupler values for generic tracers that exchange with atmosphere Update generic tracer concentration fields from sources and sinks. Vertically diffuse generic tracer concentration fields. Update generic tracers from bottom and their bottom reservoir. |
|
This subroutine calculates mass-weighted integral on the PE either of all available tracer concentrations, or of a tracer that is being requested specifically, 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 finds the global min and max of either of all available tracer concentrations, or of a tracer that is being requested specifically, returning the number of tracers it has evaluated. It also optionally returns the locations of the extrema. |
|
This subroutine calculates the surface state and sets coupler values for those generic tracers that have flux exchange with atmosphere. |
|
Copy the requested tracer into an array. |
|
This subroutine deallocates the memory owned by this module. |
Type Documentation
- type, public :: MOM_generic_tracer_CS
Control structure for generic tracers
- Parameters
IC_file
The file in which the generic tracer initial values can be found, or an empty string for internal initialization.
Z_IC_file
If true, the generic_tracer IC_file is in Z-space. The default is false.
tracer_IC_val
The initial value assigned to tracers, in concentration units [conc]
tracer_land_val
The values of tracers used where land is masked out, in concentration units [conc]
tracers_may_reinit
If true, tracers may go through the initialization code if they are not found in the restart files.
diag
A structure that is used to regulate the timing of diagnostic output.
restart_CSp
Restart control structure
OBC
open boundary condition type Pointer to the first element of the linked list of generic tracers.
Functions/Subroutine Documentation
- function register_MOM_generic_tracer(HI, GV, param_file, CS, tr_Reg, restart_CS)
Initializes the generic tracer packages and adds their tracers to the list Adds the tracers in the list of generic tracers to the set of MOM tracers (i.e., MOM-register them) Register these tracers for restart
- Parameters
HI [in]
Horizontal index ranges
GV [in]
The ocean's vertical grid structure
param_file [in]
A structure to parse for run-time parameters
CS
Pointer to the control structure for this module
tr_Reg
Pointer to the control structure for the tracer advection and diffusion module.
restart_CS [inout]
MOM restart control struct
Callees call graph
Callers call graph
- subroutine register_MOM_generic_tracer_segments(CS, GV, OBC, tr_Reg, param_file)
Register OBC segments for generic tracers
- Parameters
CS
Pointer to the control structure for this module.
GV [in]
The ocean's vertical grid structure
OBC
This open boundary condition type specifies whether, where, and what open boundary conditions are used.
tr_Reg
Pointer to the control structure for the tracer advection and diffusion module.
param_file [in]
A structure to parse for run-time parameters
Callers call graph
- subroutine initialize_MOM_generic_tracer(restart, day, G, GV, US, h, tv, param_file, diag, OBC, CS, sponge_CSp, ALE_sponge_CSp)
Initialize phase II: Initialize required variables for generic tracers There are some steps of initialization that cannot be done in register_MOM_generic_tracer This is the place and time to do them: Set the grid mask and initial time for all generic tracers. Diag_register them. Z_diag_register them.
This subroutine initializes the NTR tracer fields in tr(:,:,:,:) and it sets 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 [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]
tv [in]
A structure pointing to various thermodynamic variables
param_file [in]
A structure to parse for run-time parameters
diag [in]
Regulates diagnostic output.
OBC
This open boundary condition type specifies whether, where, and what open boundary conditions are used.
CS
Pointer to the control structure for this module.
sponge_CSp
Pointer to the control structure for the sponges.
ALE_sponge_CSp
Pointer to the control structure for the ALE sponges.
Callers call graph
- subroutine MOM_generic_tracer_column_physics(h_old, h_new, ea, eb, fluxes, Hml, dt, G, GV, US, CS, tv, optics, evap_CFL_limit, minimum_forcing_depth)
Column physics for generic tracers. Get the coupler values for generic tracers that exchange with atmosphere Update generic tracer concentration fields from sources and sinks. Vertically diffuse generic tracer concentration fields. Update generic tracers from bottom and their bottom reservoir.
This subroutine applies diapycnal diffusion and any other column tracer physics or chemistry to the tracers from this file. 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]
The amount of fluid entrained from the layer above during this call [H ~> m or kg m-2].
eb [in]
The amount of fluid entrained from the layer below during this call [H ~> m or kg m-2].
fluxes [in]
A structure containing pointers to thermodynamic and tracer forcing fields.
Hml [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
CS
Pointer to the control structure for this module.
tv [in]
A structure pointing to various thermodynamic variables
optics [in]
The structure containing optical properties.
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]
Callers call graph
- function MOM_generic_tracer_stock(h, stocks, G, GV, CS, names, units, stock_index)
This subroutine calculates mass-weighted integral on the PE either of all available tracer concentrations, or of a tracer that is being requested specifically, 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
Pointer to the control structure for this module.
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.
MOM_generic_tracer_stock
Return value, the number of stocks calculated here.
Callers call graph
- function MOM_generic_tracer_min_max(ind_start, got_minmax, gmin, gmax, G, CS, names, units, xgmin, ygmin, zgmin, xgmax, ygmax, zgmax)
This subroutine finds the global min and max of either of all available tracer concentrations, or of a tracer that is being requested specifically, returning the number of tracers it has evaluated. It also optionally returns the locations of the extrema.
- Parameters
ind_start [in]
The index of the tracer to start with
got_minmax [out]
Indicates whether the global min and max are found for each tracer
gmin [out]
Global minimum of each tracer [conc]
gmax [out]
Global maximum of each tracer [conc]
G [in]
The ocean's grid structure
CS
Pointer to the control structure for this module.
names [out]
The names of the stocks calculated.
units [out]
The units of the stocks calculated.
xgmin [out]
The x-position of the global minimum in the units of G%geoLonT, often [degrees_E] or [km] or [m]
ygmin [out]
The y-position of the global minimum in the units of G%geoLatT, often [degrees_N] or [km] or [m]
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] or [m]
ygmax [out]
The y-position of the global maximum in the units of G%geoLatT, often [degrees_N] or [km] or [m]
zgmax [out]
The z-position of the global maximum [layer]
MOM_generic_tracer_min_max
Return value, the number of tracers done here.
Callers call graph
- subroutine MOM_generic_tracer_surface_state(sfc_state, h, G, GV, CS)
This subroutine calculates the surface state and sets coupler values for those generic tracers that have flux exchange with atmosphere.
This subroutine sets up the fields that the coupler needs to calculate the CFC fluxes between the ocean and atmosphere.
- 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 thicknesses [H ~> m or kg m-2]
CS
Pointer to the control structure for this module.
Callers call graph
subroutine MOM_generic_flux_init(verbosity)
- Parameters
verbosity [in]
A 0-9 integer indicating a level of verbosity.
Callers call graph
subroutine MOM_generic_tracer_fluxes_accumulate(flux_tmp, weight)
- Parameters
flux_tmp [in]
A structure containing pointers to thermodynamic and tracer forcing fields.
weight [in]
A weight for accumulating this flux [nondim]
- subroutine MOM_generic_tracer_get(name, member, array, CS)
Copy the requested tracer into an array.
- Parameters
name [in]
Name of requested tracer.
member [in]
The tracer element to return.
array [out]
Array filled by this routine, in arbitrary units [A]
CS
Pointer to the control structure for this module.
Callers call graph
- subroutine end_MOM_generic_tracer(CS)
This subroutine deallocates the memory owned by this module.
- Parameters
CS
Pointer to the control structure for this module.