pseudo_salt_tracer module reference
A tracer package that mimics salinity
Data Types
The control structure for the pseudo-salt tracer |
Functions/Subroutines
Register the pseudo-salt tracer with MOM6, and return .true. if the tracer is to be used. |
|
Initialize the pseudo-salt tracer |
|
Apply sources, sinks and diapycnal diffusion to the tracers in this package. |
|
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 fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler. |
|
Deallocate memory associated with this tracer package |
Detailed Description
By Andrew Shao, 2016
This file contains the routines necessary to model a passive tracer that uses the same boundary fluxes as salinity. At the beginning of the run, salt is set to the same as tv%S. Any deviations between this salt-like tracer and tv%S signifies a difference between how active and passive tracers are treated.
Type Documentation
- type, public :: pseudo_salt_tracer_CS
The control structure for the pseudo-salt tracer
- Parameters
tr_ptr
pointer to tracer inside Tr_reg
Time
A pointer to the ocean model's clock.
tr_Reg
A pointer to the MOM tracer registry
ps
The array of pseudo-salt tracer used in this subroutine [ppt]
diff
The difference between the pseudo-salt tracer and the real salt [ppt].
pseudo_salt_may_reinit
Hard coding since this should not matter
id_psd
A diagnostic ID
diag
A structure that is used to regulate the timing of diagnostic output.
restart_CSp
A pointer to the restart control structure
tr_desc
A description and metadata for the pseudo-salt tracer
Functions/Subroutine Documentation
- function register_pseudo_salt_tracer(HI, GV, param_file, CS, tr_Reg, restart_CS)
Register the pseudo-salt tracer with MOM6, and return .true. if the tracer is to be used.
- 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
The control structure returned by a previous call to register_pseudo_salt_tracer.
tr_Reg
A pointer that is set to point to the control structure for the tracer advection and diffusion module
restart_CS [inout]
MOM restart control structure
Callees call graph
Text view
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_error_handler::mom_error
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_file_parser::interface::log_version
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_io::query_vardesc
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_io::var_desc
pseudo_salt_tracer::register_pseudo_salt_tracer → mom_tracer_registry::register_tracer
Callers call graph
- subroutine initialize_pseudo_salt_tracer(restart, day, G, GV, US, h, diag, OBC, CS, sponge_CSp, tv)
Initialize the pseudo-salt tracer
- 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_pseudo_salt_tracer
sponge_CSp
Pointer to the control structure for the sponges
tv [in]
A structure containing various thermodynamic variables
Callees call graph
Text view
pseudo_salt_tracer::initialize_pseudo_salt_tracer → mom_diag_mediator::register_diag_field
pseudo_salt_tracer::initialize_pseudo_salt_tracer → mom_io::query_vardesc
pseudo_salt_tracer::initialize_pseudo_salt_tracer → mom_restart::interface::query_initialized
pseudo_salt_tracer::initialize_pseudo_salt_tracer → mom_restart::interface::set_initialized
Callers call graph
- subroutine pseudo_salt_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, CS, tv, debug, KPP_CSp, nonLocalTrans, evap_CFL_limit, minimum_forcing_depth)
Apply sources, sinks and diapycnal diffusion to the tracers in this package.
- 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 thermodynamic and tracer forcing fields
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_pseudo_salt_tracer
tv [in]
A structure pointing to various thermodynamic variables
debug [in]
If true calculate checksums
KPP_CSp
KPP control structure
nonLocalTrans [in]
Non-local transport [nondim]
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
Text view
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_checksums::interface::hchksum
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_cvmix_kpp::kpp_nonlocaltransport
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_diag_mediator::interface::post_data
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_tracer_diabatic::applytracerboundaryfluxesinout
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_tracer_diabatic::tracer_vertdiff
Callers call graph
- function pseudo_salt_stock(h, stocks, G, GV, CS, names, units, stock_index)
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_pseudo_salt_tracer
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
pseudo_salt_stock
Return value: the number of stocks calculated here
Callees call graph
Callers call graph
- subroutine pseudo_salt_tracer_surface_state(sfc_state, h, G, GV, CS)
This subroutine extracts the surface fields from this tracer package that are to be shared with the atmosphere in coupled configurations. This particular tracer package does not report anything back to the coupler.
- 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]
CS
The control structure returned by a previous call to register_pseudo_salt_tracer
- subroutine pseudo_salt_tracer_end(CS)
Deallocate memory associated with this tracer package
- Parameters
CS
The control structure returned by a previous call to register_pseudo_salt_tracer