nw2_tracers module reference

Ideal tracers designed to help diagnose a tracer diffusivity tensor in NeverWorld2

Data Types

nw2_tracers_CS

The control structure for the nw2_tracers package

Functions/Subroutines

register_nw2_tracers

Register the NW2 tracer fields to be used with MOM.

initialize_nw2_tracers

Sets the NW2 traces to their initial values and sets up the tracer output

nw2_tracer_column_physics

Applies diapycnal diffusion, aging and regeneration at the surface to the NW2 tracers

nw2_tracer_dist

The target value of a NeverWorld2 tracer label m [conc] at non-dimensional position x=lon/Lx, y=lat/Ly, z=eta/H

nw2_tracers_end

Deallocate any memory associated with this tracer package

Detailed Description

TBD

Type Documentation

type, public :: nw2_tracers_CS

The control structure for the nw2_tracers package

Parameters
  • ntr

    The number of tracers that are actually used.

  • Time

    A pointer to the ocean model's clock.

  • tr_Reg

    A pointer to the tracer registry

  • tr

    The array of tracers used in this package, in [conc] (g m-3)?

  • restore_rate

    The rate at which the tracer is damped toward its target profile [T-1 ~> s-1]

  • diag

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

  • restart_CSp

    A pointer to the restart controls structure

Functions/Subroutine Documentation

logical function register_nw2_tracers(HI, GV, US, param_file, CS, tr_Reg, restart_CS)

Register the NW2 tracer fields to be used with MOM.

Parameters
  • HI [in]

    A horizontal index type structure

  • GV [in]

    The ocean's vertical grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters

  • CS

    The control structure returned by a previous call to register_nw2_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 struct

Callees call graph
Callees of nw2_tracers::register_nw2_tracers calls cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_tracer_registry MOM_tracer_registry cluster_nw2_tracers nw2_tracers mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::var_desc var_desc mom_tracer_registry::register_tracer register_tracer nw2_tracers::register_nw2_tracers register_nw2_tracers nw2_tracers::register_nw2_tracers->mom_error_handler::mom_error nw2_tracers::register_nw2_tracers->mom_file_parser::interface::get_param nw2_tracers::register_nw2_tracers->mom_file_parser::interface::log_version nw2_tracers::register_nw2_tracers->mom_io::var_desc nw2_tracers::register_nw2_tracers->mom_tracer_registry::register_tracer
Text view
Callers call graph
Callers of nw2_tracers::register_nw2_tracers calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers mom_tracer_flow_control::call_tracer_register call_tracer_register nw2_tracers::register_nw2_tracers register_nw2_tracers mom_tracer_flow_control::call_tracer_register->nw2_tracers::register_nw2_tracers
Text view
subroutine initialize_nw2_tracers(restart, day, G, GV, US, h, tv, diag, CS)

Sets the NW2 traces to their initial values and 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 [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]

  • tv [in]

    A structure pointing to various thermodynamic variables

  • diag [in]

    A structure that is used to regulate diagnostic output.

  • CS

    The control structure returned by a previous call to register_nw2_tracer.

Callees call graph
Callees of nw2_tracers::initialize_nw2_tracers calls cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights cluster_mom_restart MOM_restart cluster_nw2_tracers nw2_tracers mom_error_handler::mom_error MOM_error mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_restart::interface::query_initialized query_initialized (interface) mom_restart::interface::set_initialized set_initialized (interface) nw2_tracers::initialize_nw2_tracers initialize_nw2_tracers nw2_tracers::initialize_nw2_tracers->mom_error_handler::mom_error nw2_tracers::initialize_nw2_tracers->mom_interface_heights::interface::thickness_to_dz nw2_tracers::initialize_nw2_tracers->mom_restart::interface::query_initialized nw2_tracers::initialize_nw2_tracers->mom_restart::interface::set_initialized nw2_tracers::nw2_tracer_dist nw2_tracer_dist [private/internal] nw2_tracers::initialize_nw2_tracers->nw2_tracers::nw2_tracer_dist
Text view
Callers call graph
Callers of nw2_tracers::initialize_nw2_tracers calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers mom_tracer_flow_control::tracer_flow_control_init tracer_flow_control_init nw2_tracers::initialize_nw2_tracers initialize_nw2_tracers mom_tracer_flow_control::tracer_flow_control_init->nw2_tracers::initialize_nw2_tracers
Text view
subroutine nw2_tracer_column_physics(h_old, h_new, ea, eb, fluxes, dt, G, GV, US, tv, CS, evap_CFL_limit, minimum_forcing_depth)

Applies diapycnal diffusion, aging and regeneration at the surface to the NW2 tracers

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

  • tv [in]

    A structure pointing to various thermodynamic variables

  • CS

    The control structure returned by a previous call to register_nw2_tracer.

  • 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 nw2_tracers::nw2_tracer_column_physics calls cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights cluster_mom_tracer_diabatic MOM_tracer_diabatic cluster_nw2_tracers nw2_tracers mom_error_handler::mom_error MOM_error mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_tracer_diabatic::applytracerboundaryfluxesinout applyTracerBoundaryFluxesInOut mom_tracer_diabatic::tracer_vertdiff tracer_vertdiff nw2_tracers::nw2_tracer_column_physics nw2_tracer_column_physics nw2_tracers::nw2_tracer_column_physics->mom_error_handler::mom_error nw2_tracers::nw2_tracer_column_physics->mom_interface_heights::interface::thickness_to_dz nw2_tracers::nw2_tracer_column_physics->mom_tracer_diabatic::applytracerboundaryfluxesinout nw2_tracers::nw2_tracer_column_physics->mom_tracer_diabatic::tracer_vertdiff nw2_tracers::nw2_tracer_dist nw2_tracer_dist [private/internal] nw2_tracers::nw2_tracer_column_physics->nw2_tracers::nw2_tracer_dist
Text view
Callers call graph
Callers of nw2_tracers::nw2_tracer_column_physics calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers mom_tracer_flow_control::call_tracer_column_fns call_tracer_column_fns nw2_tracers::nw2_tracer_column_physics nw2_tracer_column_physics mom_tracer_flow_control::call_tracer_column_fns->nw2_tracers::nw2_tracer_column_physics
Text view
real function nw2_tracer_dist(m, G, GV, eta, i, j, k)

The target value of a NeverWorld2 tracer label m [conc] at non-dimensional position x=lon/Lx, y=lat/Ly, z=eta/H

Parameters
  • m [in]

    Indicates the NW2 tracer

  • G [in]

    The ocean's grid structure

  • GV [in]

    The ocean's vertical grid structure

  • eta [in]

    Interface position [Z ~> m]

  • i [in]

    Cell index i

  • j [in]

    Cell index j

  • k [in]

    Layer index k

Callers call graph
Callers of nw2_tracers::nw2_tracer_dist calls cluster_nw2_tracers nw2_tracers nw2_tracers::initialize_nw2_tracers initialize_nw2_tracers nw2_tracers::nw2_tracer_dist nw2_tracer_dist [private/internal] nw2_tracers::initialize_nw2_tracers->nw2_tracers::nw2_tracer_dist nw2_tracers::nw2_tracer_column_physics nw2_tracer_column_physics nw2_tracers::nw2_tracer_column_physics->nw2_tracers::nw2_tracer_dist
Text view
subroutine nw2_tracers_end(CS)

Deallocate any memory associated with this tracer package

Parameters
  • CS

    The control structure returned by a previous call to register_nw2_tracers.

Callers call graph
Callers of nw2_tracers::nw2_tracers_end calls cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_nw2_tracers nw2_tracers mom_tracer_flow_control::tracer_flow_control_end tracer_flow_control_end nw2_tracers::nw2_tracers_end nw2_tracers_end mom_tracer_flow_control::tracer_flow_control_end->nw2_tracers::nw2_tracers_end
Text view
API generated with Flint · Rendered from reStructuredText