MOM_tracer_advect module reference
This module contains the subroutines that advect tracers along coordinate surfaces.
Data Types
Control structure for this module |
Functions/Subroutines
This routine time steps the tracer concentration using a monotonic, conservative, weakly diffusive scheme. |
|
This subroutine does 1-d flux-form advection in the zonal direction using a monotonic piecewise linear scheme. |
|
This subroutine does 1-d flux-form advection using a monotonic piecewise linear scheme. |
|
Initialize lateral tracer advection module |
|
Close the tracer advection module |
Detailed Description
This program contains the subroutines that advect tracers horizontally (i.e. along layers).
* advect_tracer advects tracer concentrations using a combination
of the modified flux advection scheme from Easter (Mon. Wea. Rev.,
with tracer distributions given by the monotonic piecewise parabolic method, as described in Carpenter et al. (MWR, 1990). This scheme conserves the total amount of tracer while avoiding spurious maxima and minima of the tracer concentration.
advect_tracer subroutine determines the volume of a layer in a grid cell at the previous instance when the tracer concentration was changed, so it is essential that the volume fluxes should be correct. It is also important that the tracer advection occurs before each calculation of the diabatic forcing.
The advection scheme of some tracers can be set to be different to that used by active tracers.
Type Documentation
- type, public :: tracer_advect_CS
Control structure for this module
- Parameters
dt
The baroclinic dynamics time step [T ~> s].
diag
A structure that is used to regulate the timing of diagnostic output.
debug
If true, write verbose checksums for debugging purposes.
useHuynhStencilBug
If true, use the incorrect stencil width. This is provided for compatibility with legacy simuations.
pass_uhr_vhr_t_hprev
A structure used for group passes
default_advect_scheme
Determines which reconstruction to use
Functions/Subroutine Documentation
- subroutine advect_tracer(h_end, uhtr, vhtr, OBC, dt, G, GV, US, CS, Reg, x_first_in, vol_prev, max_iter_in, update_vol_prev, uhr_out, vhr_out, flux_type)
This routine time steps the tracer concentration using a monotonic, conservative, weakly diffusive scheme.
- Parameters
G [inout]
ocean grid structure
GV [in]
ocean vertical grid structure
h_end [in]
Layer thickness after advection [H ~> m or kg m-2]
uhtr [in]
Accumulated volume or mass flux through the zonal faces [H L2 ~> m3 or kg]
vhtr [in]
Accumulated volume or mass flux through the meridional faces [H L2 ~> m3 or kg]
OBC
specifies whether, where, and what OBCs are used
dt [in]
time increment [T ~> s]
US [in]
A dimensional unit scaling type
CS
control structure for module
Reg
pointer to tracer registry
x_first_in [in]
If present, indicate whether to update first in the x- or y-direction.
vol_prev [inout]
Cell volume before advection [H L2 ~> m3 or kg]. If update_vol_prev is true, the returned value is the cell volume after the transport that was done by this call, and if all the transport could be accommodated it should be close to h_end*G%areaT.
max_iter_in [in]
The maximum number of iterations
update_vol_prev [in]
If present and true, update vol_prev to return its value after the tracer have been updated.
uhr_out [out]
Remaining accumulated volume or mass fluxes through the zonal faces [H L2 ~> m3 or kg]
vhr_out [out]
Remaining accumulated volume or mass fluxes through the meridional faces [H L2 ~> m3 or kg]
flux_type [in]
Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow
flux_type_ctrl
To allow setting a default value for flux_type
Callees call graph
Text view
mom_tracer_advect::advect_tracer → mom_coms_infra::interface::sum_across_pes
mom_tracer_advect::advect_tracer → mom_cpu_clock_infra::cpu_clock_begin
mom_tracer_advect::advect_tracer → mom_cpu_clock_infra::cpu_clock_end
mom_tracer_advect::advect_tracer → mom_domain_infra::do_group_pass
mom_tracer_advect::advect_tracer → mom_domain_infra::interface::create_group_pass
mom_tracer_advect::advect_tracer → mom_error_handler::mom_error
mom_tracer_advect::advect_tracer → mom_tracer_advect::advect_x
mom_tracer_advect::advect_tracer → mom_tracer_advect::advect_y
Callers call graph
Text view
- subroutine advect_x(Tr, hprev, uhr, uh_neglect, OBC, domore_u, ntr, Idt, is, ie, js, je, k, G, GV, US, flux_type, advect_this_tracer, advect_schemes)
This subroutine does 1-d flux-form advection in the zonal direction using a monotonic piecewise linear scheme.
- Parameters
G [inout]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
ntr [in]
The number of tracers
Tr [inout]
The array of registered tracers to work on
hprev [inout]
cell volume at the end of previous tracer change [H L2 ~> m3 or kg]
uhr [inout]
accumulated volume/mass flux through the zonal face [H L2 ~> m3 or kg]
uh_neglect [in]
A tiny zonal mass flux that can be neglected [H L2 ~> m3 or kg]
OBC
specifies whether, where, and what OBCs are used
domore_u [inout]
If true, there is more advection to be done in this u-row
Idt [in]
The inverse of dt [T-1 ~> s-1]
is [in]
The starting tracer i-index to work on
ie [in]
The ending tracer i-index to work on
js [in]
The starting tracer j-index to work on
je [in]
The ending tracer j-index to work on
k [in]
The k-level to work on
US [in]
A dimensional unit scaling type
flux_type [in]
Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow
advect_this_tracer [in]
If true, advect this tracer
advect_schemes [in]
list of advection schemes to use
- subroutine advect_y(Tr, hprev, vhr, vh_neglect, OBC, domore_v, ntr, Idt, is, ie, js, je, k, G, GV, US, flux_type, advect_this_tracer, advect_schemes)
This subroutine does 1-d flux-form advection using a monotonic piecewise linear scheme.
- Parameters
G [inout]
The ocean's grid structure
GV [in]
The ocean's vertical grid structure
ntr [in]
The number of tracers
Tr [inout]
The array of registered tracers to work on
hprev [inout]
cell volume at the end of previous tracer change [H L2 ~> m3 or kg]
vhr [inout]
accumulated volume/mass flux through the meridional face [H L2 ~> m3 or kg]
vh_neglect [inout]
A tiny meridional mass flux that can be neglected [H L2 ~> m3 or kg]
OBC
specifies whether, where, and what OBCs are used
domore_v [inout]
If true, there is more advection to be done in this v-row
Idt [in]
The inverse of dt [T-1 ~> s-1]
is [in]
The starting tracer i-index to work on
ie [in]
The ending tracer i-index to work on
js [in]
The starting tracer j-index to work on
je [in]
The ending tracer j-index to work on
k [in]
The k-level to work on
US [in]
A dimensional unit scaling type
flux_type [in]
Indicates whether uhtr, vhtr are the flux due to the residual (= 0), resolved (= 1), or parameterized (= 2) flow
advect_this_tracer [in]
If true, advect this tracer
advect_schemes [in]
list of advection schemes to use
- subroutine tracer_advect_init(Time, G, US, param_file, diag, CS)
Initialize lateral tracer advection module
- Parameters
Time [in]
current model time
G [in]
ocean grid structure
US [in]
A dimensional unit scaling type
param_file [in]
open file to parse for model parameters
diag [inout]
regulates diagnostic output
CS
module control structure
Callees call graph
Text view
mom_tracer_advect::tracer_advect_init → mom_cpu_clock_infra::cpu_clock_id
mom_tracer_advect::tracer_advect_init → mom_error_handler::mom_error
mom_tracer_advect::tracer_advect_init → mom_file_parser::interface::get_param
mom_tracer_advect::tracer_advect_init → mom_file_parser::interface::log_version
mom_tracer_advect::tracer_advect_init → mom_tracer_advect_schemes::set_tracer_advect_scheme
- subroutine tracer_advect_end(CS)
Close the tracer advection module
- Parameters
CS
module control structure