MOM_diag_mediator module reference
The subroutines here provide convenient wrappers to the FMS diag_manager interfaces with additional diagnostic capabilities.
Data Types
Contained for down sampled masks |
|
A group of 1D axes that comprise a 1D/2D/3D mesh |
|
Contains an array to store a diagnostic target grid |
|
Stores all the remapping grids and the model's native space thicknesses |
|
x:mean,y:mean,z:mean |
|
Container for down sampling information |
|
The following data type a list of diagnostic fields an their variants, as well as variables that control the handling of model output. |
Generic Interfaces
Make a diagnostic available for averaging or output. |
|
Registers a non-array scalar diagnostic, returning an integer handle |
|
Down sample a field |
|
Down sample the mask of a field |
|
Down sample a diagnostic field |
Functions/Subroutines
Sets up diagnostics axes |
|
set_masks_for_axes sets up the 2d and 3d masks for diagnostics using the current grid recorded after calling diag_update_remap_grids() |
|
Attaches the id of cell areas to axes groups for use with cell_measures |
|
Sets a handle inside diagnostics mediator to associate 3d cell measures |
|
Attaches the id of cell volumes to axes groups for use with cell_measures |
|
Returns diag_manager id for cell measure of h-cells |
|
Define a group of "axes" from a list of handles and associate a mask with it |
|
Defines a group of downsampled "axes" from list of handles |
|
Set up the array extents for doing diagnostics |
|
Make a real scalar diagnostic available for averaging or output |
|
Make a real 1-d array diagnostic available for averaging or output |
|
Make a real 2-d array diagnostic available for averaging or output |
|
Make a real 2-d array diagnostic available for averaging or output using a diag_type instead of an integer id. |
|
Make a real 3-d array diagnostic available for averaging or output. |
|
Make a real 3-d array diagnostic available for averaging or output using a diag_type instead of an integer id. |
|
Put data into the buffer for a diagnostic one column at a time |
|
Put data into the buffer for a diagnostic one point at a time |
|
Post the final buffer using the standard post_data interface |
|
Calculate and write out diagnostics that are the product of two 3-d arrays at u-points |
|
Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at u-points |
|
Calculate and write out diagnostics that are the product of two 3-d arrays at v-points |
|
Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at v-points |
|
Post the horizontally area-averaged diagnostic |
|
This subroutine enables the accumulation of time averages over the specified time interval. |
|
Enable the accumulation of time averages over the specified time interval in time units. |
|
Call this subroutine to avoid averaging any offered fields. |
|
Call this subroutine to determine whether the averaging is currently enabled. .true. is returned if it is. |
|
This function returns the valid end time for use with diagnostics that are handled outside of the MOM6 diagnostics infrastructure. |
|
Returns the "diag_mediator" handle for a group (native, CMOR, z-coord, ...) of diagnostics derived from one field. |
|
Returns True if either the native or CMOR version of the diagnostic were registered. Updates 'dm_id' after calling register_diag_field_expand_axes() for both native and CMOR variants of the field. |
|
Returns an FMS id from register_diag_field_fms (the diag_manager routine) after expanding axes (axes-group) into handles and conditionally adding an FMS area_id for cell_measures. |
|
Create a diagnostic type and attached to list |
|
Returns an integer encoding the "cell_methods" for diagnostic, allowing simpler access to the cell_method for a given diagnostic at the time of sending |
|
Attaches "cell_methods" attribute to a variable based on defaults for axes_grp or optional arguments. |
|
Registers a non-array scalar diagnostic, returning an integer handle |
|
Registers a scalar diagnostic, returning an integer handle |
|
Registers a static diagnostic, returning an integer handle |
|
Describe an option setting in the diagnostic files. |
|
Registers a diagnostic using the information encapsulated in the vardesc type argument and returns an integer handle to this diagnostic. That integer handle is negative if the diagnostic is unused. |
|
diag_mediator_init initializes the MOM diag_mediator and opens the available diagnostics file, if appropriate. |
|
diag_mediator_set_OBC_info stores limited information about the locations and orientations of open boundary condition segments at velocity points.. |
|
Set pointers to the default state fields used to remap diagnostics. |
|
Build/update vertical grids for diagnostic remapping. |
|
Sets up the 2d and 3d masks for native diagnostics |
|
Set the extents and fill values for the piecemeal buffers for all axes |
|
Returns a new diagnostic id, it may be necessary to expand the diagnostics array. |
|
Initializes a diag_type (used after allocating new memory) |
|
Make a new diagnostic. Either use memory which is in the array of 'primary' diagnostics, or if that is in use, insert it to the list of secondary diagnostics. |
|
Log a diagnostic to the available diagnostics file. |
|
Log the diagnostic chksum to the chksum diag file |
|
Allocates fields necessary to store diagnostic remapping fields |
|
Copy from the main diagnostic arrays to the grid storage as well as the native thicknesses |
|
Copy from the stored diagnostic arrays to the main diagnostic grids |
|
Save the current diagnostic grids in the temporary structure within diag |
|
Restore the diagnostic grids from the temporary structure within diag |
|
Deallocates the fields in the remapping fields container |
|
Allocate and initialize the masks for downsampled diagnostics in diag_cs The downsampled masks in the axes would later "point" to these. |
|
Get the diagnostics-compute indices (to be passed to send_data) based on the shape of the diagnostic field (the same way they are deduced for non-downsampled fields) |
|
This subroutine allocates and computes a downsampled array from an input array. It also determines the diagnostic computational grid indices for the downsampled array. 3d interface |
|
This subroutine allocates and computes a downsampled array from an input array. It also determines the diagnostic computational grid indices for the downsampled array. 2d interface |
|
This subroutine allocates and computes a down sampled 2d array given an input array The down sample method is based on the "cell_methods" for the diagnostics as explained in the above table |
|
Do a rotationally symmetric sum of the elements of a 1-d array. |
|
Return the sum of the elements of a square 2-d array, perhaps using a rotationally symmetric sum. This could eventually wrap symmetric_sum, but for now it also can reproduce the previous answers. |
|
Allocate and compute the 2d down sampled mask. The masks are down sampled based on a minority rule, i.e., a coarse cell is open (1) if at least one of the sub-cells are open, otherwise it's closed (0), using the same points that would appear in the downsampled sum, average or down-selection. |
|
Allocate and compute the 3d down sampled mask. The masks are down sampled based on a minority rule, i.e., a coarse cell is open (1) if at least one of the sub-cells are open, otherwise it's closed (0), using the same points that would appear in the downsampled sum, average or down-selection. |
|
Fakes a register of a diagnostic to find out if an obsolete parameter appears in the diag_table. |
|
Finishes the diag manager reduction methods as needed for the time_step |
Type Documentation
- type, private :: diag_dsamp
Contained for down sampled masks
- Parameters
mask2d
Mask for 2d (x-y) axes [nondim]
mask3d
Mask for 3d axes [nondim]
- type, public :: axes_grp
A group of 1D axes that comprise a 1D/2D/3D mesh
- Parameters
id
The id string for this particular combination of handles.
rank
Number of dimensions in the list of axes.
handles
Handles to 1D axes.
diag_cs
Circular link back to the main diagnostics control structure (Used to avoid passing said structure into every possible call).
x_cell_method
Default nature of data representation, if axes group includes x-direction.
y_cell_method
Default nature of data representation, if axes group includes y-direction.
v_cell_method
Default nature of data representation, if axes group includes vertical direction.
nz
Vertical dimension of diagnostic
vertical_coordinate_number
Index of the corresponding diag_remap_ctrl for this axis group
is_h_point
If true, indicates that this axes group is for an h-point located field.
is_q_point
If true, indicates that this axes group is for a q-point located field.
is_u_point
If true, indicates that this axes group is for a u-point located field.
is_v_point
If true, indicates that this axes group is for a v-point located field.
is_layer
If true, indicates that this axes group is for a layer vertically-located field.
is_interface
If true, indicates that this axes group is for an interface vertically-located field.
is_native
If true, indicates that this axes group is for a native model grid. False for any other grid. Used for rank>2.
needs_remapping
If true, indicates that this axes group is for a intensive layer-located field that must be remapped to these axes. Used for rank>2.
needs_interpolating
If true, indicates that this axes group is for a sampled interface-located field that must be interpolated to these axes. Used for rank>2.
downsample_level_factor
If greater than 1, the factor by which this diagnostic will be downsampled
downsample_level_index
If greater than 0, the index for the downsample level for this diagnostic in the diag_cs%dsamp array.
xyave_axes
The associated 1d axes for horizontally area-averaged diagnostics
id_area
The diag_manager id for area to be used for cell_measure of variables with this axes_grp.
id_volume
The diag_manager id for volume to be used for cell_measure of variables with this axes_grp.
mask2d
Mask for 2d (x-y) axes [nondim]
mask3d
Mask for 3d axes [nondim]
dsamp
Downsample container
piecemeal_2d
A dynamically reallocated buffer for 2d piecemeal diagnostics
piecemeal_3d
A dynamically reallocated buffer for 3d piecemeal diagnostics
- type, private :: diag_grids_type
Contains an array to store a diagnostic target grid
- Parameters
h
Target grid for remapped coordinate [H ~> m or kg m-2] or [Z ~> m]
- type, public :: diag_grid_storage
Stores all the remapping grids and the model's native space thicknesses
- Parameters
num_diag_coords
Number of target coordinates
h_state
Layer thicknesses in native space [H ~> m or kg m-2]
diag_grids
Primarily empty, except h field
- type, private :: diag_type
x:mean,y:mean,z:mean
This type is used to represent a diagnostic at the diag_mediator level.
There can be both 'primary' and 'secondary' diagnostics. The primaries reside in the diag_cs%diags array. They have an id which is an index into this array. The secondaries are 'variations' on the primary diagnostic. For example the CMOR diagnostics are secondary. The secondary diagnostics are kept in a list with the primary diagnostic as the head.
- Parameters
in_use
True if this entry is being used.
fms_diag_id
Underlying FMS diag_manager id.
fms_xyave_diag_id
For a horizontally area-averaged diagnostic.
downsample_diag_id
For a horizontally area-downsampled diagnostic.
debug_str
The diagnostic name and module for FATAL errors and debugging.
axes
The axis group for this diagnostic
next
Pointer to the next diagnostic
conversion_factor
If non-zero, a factor to multiply data by before posting to FMS, often including factors to undo internal scaling in units of [a A-1 ~> 1]
v_extensive
True for vertically extensive fields (vertically integrated). False for intensive (concentrations).
xyz_method
A 3 digit integer encoding the diagnostics cell method It can be used to determine the downsample algorithm
- type diagcs_dsamp
Container for down sampling information
- Parameters
isc
The start i-index of cell centers within the computational domain
iec
The end i-index of cell centers within the computational domain
jsc
The start j-index of cell centers within the computational domain
jec
The end j-index of cell centers within the computational domain
isd
The start i-index of cell centers within the data domain
ied
The end i-index of cell centers within the data domain
jsd
The start j-index of cell centers within the data domain
jed
The end j-index of cell centers within the data domain
isg
The start i-index of cell centers within the global domain
ieg
The end i-index of cell centers within the global domain
jsg
The start j-index of cell centers within the global domain
jeg
The end j-index of cell centers within the global domain
isgB
The start i-index of cell corners within the global domain
iegB
The end i-index of cell corners within the global domain
jsgB
The start j-index of cell corners within the global domain
axesBL
Axes for each location on a diagnostic grid
axesTL
Axes for each location on a diagnostic grid
axesCuL
Axes for each location on a diagnostic grid
axesCvL
Axes for each location on a diagnostic grid
axesBi
Axes for each location on a diagnostic grid
axesTi
Axes for each location on a diagnostic grid
axesCui
Axes for each location on a diagnostic grid
axesCvi
Axes for each location on a diagnostic grid
axesB1
Axes for each location on a diagnostic grid
axesT1
Axes for each location on a diagnostic grid
axesCu1
Axes for each location on a diagnostic grid
axesCv1
Axes for each location on a diagnostic grid
remap_axesTL
Axes for each location on a diagnostic grid
remap_axesBL
Axes for each location on a diagnostic grid
remap_axesCuL
Axes for each location on a diagnostic grid
remap_axesCvL
Axes for each location on a diagnostic grid
remap_axesTi
Axes for each location on a diagnostic grid
remap_axesBi
Axes for each location on a diagnostic grid
remap_axesCui
Axes for each location on a diagnostic grid
remap_axesCvi
Axes for each location on a diagnostic grid
mask2dT
2D mask array for cell-center points [nondim]
mask2dBu
2D mask array for cell-corner points [nondim]
mask2dCu
2D mask array for east-face points [nondim]
mask3dTL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dBL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dCuL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dCvL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dTi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dBi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dCui
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
mask3dCvi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i), all [nondim]
- type, public :: diag_ctrl
The following data type a list of diagnostic fields an their variants, as well as variables that control the handling of model output.
- Parameters
available_diag_doc_unit
The unit number of a diagnostic documentation file. This file is open if available_diag_doc_unit is > 0.
chksum_iounit
The unit number of a diagnostic documentation file. This file is open if available_diag_doc_unit is > 0.
diag_as_chksum
If true, log chksums in a text file instead of posting diagnostics
show_call_tree
Display the call tree while running. Set by VERBOSITY level.
index_space_axes
If true, diagnostic horizontal coordinates axes are in index space.
symmetric_downsample_sums
If true, use rotationally symmetric sums when downsampling diagnostics.
is
The start i-index of cell centers within the computational domain
ie
The end i-index of cell centers within the computational domain
js
The start j-index of cell centers within the computational domain
je
The end j-index of cell centers within the computational domain
isd
The start i-index of cell centers within the data domain
ied
The end i-index of cell centers within the data domain
jsd
The start j-index of cell centers within the data domain
jed
The end j-index of cell centers within the data domain
time_int
The time interval for any fields that are offered for averaging [s].
time_end
The end time of the valid interval for any offered field.
axesBL
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesTL
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCuL
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCvL
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesBi
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesTi
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCui
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCvi
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesB1
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesT1
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCu1
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesCv1
The following are 3D and 2D axis groups defined for output. The names indicate the horizontal (B, T, Cu, or Cv) and vertical (L, i, or 1) locations.
axesZi
A 1-D z-space axis at interfaces
axesZL
A 1-D z-space axis at layer centers
axesNull
An axis group for scalars
mask2dT
2D mask array for cell-center points [nondim]
mask2dBu
2D mask array for cell-corner points [nondim]
mask2dCu
2D mask array for east-face points [nondim]
mask3dTL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dBL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dCuL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dCvL
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dTi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dBi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dCui
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
mask3dCvi
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
num_diag_dsamp_levels
The number of downsampled levels requested in the parameters files (default 0)
diag_dsamp_levels
The downsample levels requested by diag registrations
dsamp
3D mask arrays for diagnostics at layers (mask...L) and interfaces (mask...i) all [nondim]
diags
The list of diagnostics
next_free_diag_id
The next unused diagnostic ID
default missing value to be sent to ALL diagnostics registrations [various]
missing_value
Number of diagnostic vertical coordinates (remapped)
num_diag_coords
Control structure for each possible coordinate
diag_grid_temp
Stores the remapped diagnostic grid
diag_grid_overridden
True if the diagnostic grids have been overriden
remap_axesZL
The 1-D z-space cell-centered axis for remapping
remap_axesTL
Axes used for remapping
remap_axesBL
Axes used for remapping
remap_axesCuL
Axes used for remapping
remap_axesCvL
Axes used for remapping
remap_axesTi
Axes used for remapping
remap_axesBi
Axes used for remapping
remap_axesCui
Axes used for remapping
remap_axesCvi
Axes used for remapping
h
The thicknesses needed for remapping [H ~> m or kg m-2]
T
The temperatures needed for remapping [C ~> degC]
S
The salinities needed for remapping [S ~> ppt]
eqn_of_state
The equation of state type
tv
A structure with thermodynamic variables that are used to convert thicknesses to vertical extents
G
The ocean grid type
GV
The model's vertical ocean grid
US
A dimensional unit scaling type
The volume cell measure (special diagnostic) manager id
volume_cell_measure_dm_id
Number of checksum-only diagnostics
OBC_u
An array that indicates the presence and direction of any open boundary conditions at u-points, with a value of 0 for no OBC, 1 for an Eastern OBC or -1 for a Western OBC
OBC_v
An array that indicates the presence and direction of any open boundary conditions at v-points, with a value of 0 for no OBC, 1 for a Northern OBC or -1 for a Southern OBC
h_begin
Layer thicknesses at the beginning of the timestep used for remapping of extensive variables [H ~> m or kg m-2]
dz_begin
Layer vertical extents at the beginning of the timestep used for remapping of extensive variables [Z ~> m]
Generic Interface Documentation
- interface post_data
Make a diagnostic available for averaging or output.
- Implementations
Callers call graph
Text view
marbl_tracers::marbl_tracers_column_physics → mom_diag_mediator::interface::post_data
marbl_tracers::marbl_tracers_set_forcing → mom_diag_mediator::interface::post_data
mom::step_mom_dynamics → mom_diag_mediator::interface::post_data
mom_ale::ale_regrid → mom_diag_mediator::interface::post_data
mom_ale::ale_remap_tracers → mom_diag_mediator::interface::post_data
mom_ale::ale_remap_velocities → mom_diag_mediator::interface::post_data
mom_ale::pre_ale_diagnostics → mom_diag_mediator::interface::post_data
mom_ale_sponge::apply_ale_sponge → mom_diag_mediator::interface::post_data
mom_barotropic::btstep → mom_diag_mediator::interface::post_data
mom_barotropic::btstep_timeloop → mom_diag_mediator::interface::post_data
mom_bulk_mixed_layer::bulkmixedlayer → mom_diag_mediator::interface::post_data
mom_cfc_cap::cfc_cap_column_physics → mom_diag_mediator::interface::post_data
mom_controlled_forcing::apply_ctrl_forcing → mom_diag_mediator::interface::post_data
mom_coriolisadv::coradcalc_block → mom_diag_mediator::interface::post_data
mom_cvmix_conv::calculate_cvmix_conv → mom_diag_mediator::interface::post_data
mom_cvmix_kpp::kpp_calculate → mom_diag_mediator::interface::post_data
mom_cvmix_kpp::kpp_compute_bld → mom_diag_mediator::interface::post_data
mom_cvmix_kpp::kpp_nonlocaltransport → mom_diag_mediator::interface::post_data
mom_cvmix_shear::calculate_cvmix_shear → mom_diag_mediator::interface::post_data
mom_diabatic_aux::applyboundaryfluxesinout → mom_diag_mediator::interface::post_data
mom_diabatic_aux::set_pen_shortwave → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diagnose_boundary_forcing_tendency → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diagnose_diabatic_diff_tendency → mom_diag_mediator::interface::post_data
mom_diabatic_driver::diagnose_frazil_tendency → mom_diag_mediator::interface::post_data
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::interface::post_data
mom_diag_mediator::post_data_3d_final → mom_diag_mediator::interface::post_data
mom_diag_mediator::post_product_sum_u → mom_diag_mediator::interface::post_data
mom_diag_mediator::post_product_sum_v → mom_diag_mediator::interface::post_data
mom_diag_mediator::post_product_u → mom_diag_mediator::interface::post_data
mom_diag_mediator::post_product_v → mom_diag_mediator::interface::post_data
mom_diagnose_kdwork::kdwork_diagnostics → mom_diag_mediator::interface::post_data
mom_diagnose_mld::diagnosemldbydensitydifference → mom_diag_mediator::interface::post_data
mom_diagnose_mld::diagnosemldbyenergy → mom_diag_mediator::interface::post_data
mom_diagnostics::calculate_diagnostic_fields → mom_diag_mediator::interface::post_data
mom_diagnostics::calculate_energy_diagnostics → mom_diag_mediator::interface::post_data
mom_diagnostics::calculate_vertical_integrals → mom_diag_mediator::interface::post_data
mom_diagnostics::post_surface_dyn_diags → mom_diag_mediator::interface::post_data
mom_diagnostics::post_surface_thermo_diags → mom_diag_mediator::interface::post_data
mom_diagnostics::post_transport_diagnostics → mom_diag_mediator::interface::post_data
mom_diagnostics::write_static_fields → mom_diag_mediator::interface::post_data
mom_diapyc_energy_req::diapyc_energy_req_calc → mom_diag_mediator::interface::post_data
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::interface::post_data
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::interface::post_data
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_diag_mediator::interface::post_data
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::interface::post_data
mom_energetic_pbl::energetic_pbl → mom_diag_mediator::interface::post_data
mom_entrain_diffusive::entrainment_diffusive → mom_diag_mediator::interface::post_data
mom_forcing_type::forcing_diagnostics → mom_diag_mediator::interface::post_data
mom_forcing_type::mech_forcing_diags → mom_diag_mediator::interface::post_data
mom_geothermal::geothermal_entraining → mom_diag_mediator::interface::post_data
mom_geothermal::geothermal_in_place → mom_diag_mediator::interface::post_data
mom_geothermal::geothermal_init → mom_diag_mediator::interface::post_data
mom_hor_bnd_diffusion::hor_bnd_diffusion → mom_diag_mediator::interface::post_data
mom_hor_visc::horizontal_viscosity_block → mom_diag_mediator::interface::post_data
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::interface::post_data
mom_interface_filter::interface_filter → mom_diag_mediator::interface::post_data
mom_internal_tides::internal_tides_init → mom_diag_mediator::interface::post_data
mom_internal_tides::propagate_int_tide → mom_diag_mediator::interface::post_data
mom_kappa_shear::calc_kappa_shear_vertex → mom_diag_mediator::interface::post_data
mom_kappa_shear::calculate_kappa_shear → mom_diag_mediator::interface::post_data
mom_lateral_mixing_coeffs::calc_qg_leith_viscosity → mom_diag_mediator::interface::post_data
mom_lateral_mixing_coeffs::calc_resoln_function → mom_diag_mediator::interface::post_data
mom_lateral_mixing_coeffs::calc_slope_functions → mom_diag_mediator::interface::post_data
mom_lateral_mixing_coeffs::calc_sqg_struct → mom_diag_mediator::interface::post_data
mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old → mom_diag_mediator::interface::post_data
mom_meke::meke_equilibrium_restoring → mom_diag_mediator::interface::post_data
mom_meke::meke_lengthscales → mom_diag_mediator::interface::post_data
mom_meke::ml_meke_calculate_features → mom_diag_mediator::interface::post_data
mom_meke::step_forward_meke → mom_diag_mediator::interface::post_data
mom_meso_sfn_ann::meso_sfn_ann_compute → mom_diag_mediator::interface::post_data
mom_mixed_layer_restrat::mixedlayer_restrat_bml → mom_diag_mediator::interface::post_data
mom_mixed_layer_restrat::mixedlayer_restrat_bodner → mom_diag_mediator::interface::post_data
mom_mixed_layer_restrat::mixedlayer_restrat_om4 → mom_diag_mediator::interface::post_data
mom_neutral_diffusion::neutral_diffusion → mom_diag_mediator::interface::post_data
mom_neutral_diffusion::neutral_diffusion_calc_coeffs → mom_diag_mediator::interface::post_data
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::interface::post_data
mom_oda_incupd::apply_oda_incupd → mom_diag_mediator::interface::post_data
mom_offline_main::offline_redistribute_residual → mom_diag_mediator::interface::post_data
mom_offline_main::post_offline_convergence_diags → mom_diag_mediator::interface::post_data
mom_offline_main::update_offline_fields → mom_diag_mediator::interface::post_data
mom_opacity::set_opacity → mom_diag_mediator::interface::post_data
mom_porous_barriers::porous_widths_interface → mom_diag_mediator::interface::post_data
mom_porous_barriers::porous_widths_layer → mom_diag_mediator::interface::post_data
mom_pressureforce_fv::pressureforce_fv_bouss → mom_diag_mediator::interface::post_data
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_diag_mediator::interface::post_data
mom_pressureforce_mont::pressureforce_mont_bouss → mom_diag_mediator::interface::post_data
mom_pressureforce_mont::pressureforce_mont_nonbouss → mom_diag_mediator::interface::post_data
mom_regularize_layers::regularize_surface → mom_diag_mediator::interface::post_data
mom_set_diffusivity::set_diffusivity → mom_diag_mediator::interface::post_data
mom_set_visc::set_viscous_bbl → mom_diag_mediator::interface::post_data
mom_set_visc::set_viscous_ml → mom_diag_mediator::interface::post_data
mom_sponge::apply_sponge → mom_diag_mediator::interface::post_data
mom_stoch_eos::post_stoch_eos_diags → mom_diag_mediator::interface::post_data
mom_stochastics::apply_skeb → mom_diag_mediator::interface::post_data
mom_stochastics::stochastics_init → mom_diag_mediator::interface::post_data
mom_thickness_diffuse::thickness_diffuse → mom_diag_mediator::interface::post_data
mom_thickness_diffuse::thickness_diffuse_full → mom_diag_mediator::interface::post_data
mom_tidal_mixing::post_tidal_diagnostics → mom_diag_mediator::interface::post_data
mom_tracer_hor_diff::tracer_hordiff → mom_diag_mediator::interface::post_data
mom_tracer_registry::post_tracer_diagnostics_at_sync → mom_diag_mediator::interface::post_data
mom_tracer_registry::post_tracer_integral_diagnostics → mom_diag_mediator::interface::post_data
mom_tracer_registry::post_tracer_transport_diagnostics → mom_diag_mediator::interface::post_data
mom_tracer_registry::postale_tracer_diagnostics → mom_diag_mediator::interface::post_data
mom_vert_friction::vertfpmix → mom_diag_mediator::interface::post_data
mom_vert_friction::vertvisc → mom_diag_mediator::interface::post_data
mom_vert_friction::vertvisc_coef → mom_diag_mediator::interface::post_data
mom_wave_interface::stokes_pgf → mom_diag_mediator::interface::post_data
mom_wave_interface::update_stokes_drift → mom_diag_mediator::interface::post_data
mom_zanna_bolton::compute_energy_source → mom_diag_mediator::interface::post_data
mom_zanna_bolton::compute_stress_divergence → mom_diag_mediator::interface::post_data
mom_zanna_bolton::zb2020_lateral_stress → mom_diag_mediator::interface::post_data
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_diag_mediator::interface::post_data
regional_dyes::dye_tracer_column_physics → mom_diag_mediator::interface::post_data
- interface register_scalar_field
Registers a non-array scalar diagnostic, returning an integer handle
Callers call graph
Text view
mom_diagnose_kdwork::kdwork_init → mom_diag_mediator::interface::register_scalar_field
mom_diagnostics::mom_diagnostics_init → mom_diag_mediator::interface::register_scalar_field
mom_diagnostics::register_surface_diags → mom_diag_mediator::interface::register_scalar_field
mom_forcing_type::register_forcing_type_diags → mom_diag_mediator::interface::register_scalar_field
- interface downsample_field
Down sample a field
- interface downsample_mask
Down sample the mask of a field
- interface downsample_diag_field
Down sample a diagnostic field
Functions/Subroutine Documentation
- subroutine set_axes_info(G, GV, US, param_file, diag_cs, set_vertical)
Sets up diagnostics axes
- Parameters
G [inout]
Ocean grid structure
GV [in]
ocean vertical grid structure
US [in]
A dimensional unit scaling type
param_file [in]
Parameter file structure
diag_cs [inout]
Diagnostics control structure
set_vertical [in]
If true or missing, set up vertical axes
Callees call graph
Text view
mom_diag_mediator::set_axes_info → mom_diag_manager_infra::mom_diag_axis_init
mom_diag_mediator::set_axes_info → mom_diag_mediator::define_axes_group
mom_diag_mediator::set_axes_info → mom_diag_mediator::diag_grid_storage_init
mom_diag_mediator::set_axes_info → mom_diag_mediator::set_axes_info_dsamp
mom_diag_mediator::set_axes_info → mom_diag_mediator::set_piecemeal_extents
mom_diag_mediator::set_axes_info → mom_diag_remap::diag_remap_axes_configured
mom_diag_mediator::set_axes_info → mom_diag_remap::diag_remap_configure_axes
mom_diag_mediator::set_axes_info → mom_diag_remap::diag_remap_get_axes_info
subroutine set_axes_info_dsamp(G, GV, param_file, diag_cs, id_zl_native, id_zi_native)
- Parameters
G [in]
Ocean grid structure
GV [in]
ocean vertical grid structure
param_file [in]
Parameter file structure
diag_cs [inout]
Diagnostics control structure
id_zl_native [in]
ID of native layers
id_zi_native [in]
ID of native interfaces
Callees call graph
Text view
mom_diag_mediator::set_axes_info_dsamp → mom_diag_manager_infra::mom_diag_axis_init
mom_diag_mediator::set_axes_info_dsamp → mom_diag_mediator::define_axes_group_dsamp
mom_diag_mediator::set_axes_info_dsamp → mom_diag_remap::diag_remap_axes_configured
mom_diag_mediator::set_axes_info_dsamp → mom_diag_remap::diag_remap_get_axes_info
Callers call graph
- subroutine set_masks_for_axes(G, diag_cs)
set_masks_for_axes sets up the 2d and 3d masks for diagnostics using the current grid recorded after calling diag_update_remap_grids()
- Parameters
G [in]
The ocean grid type.
diag_cs
A pointer to a type with many variables used for diagnostics
Callees call graph
Text view
mom_diag_mediator::set_masks_for_axes → mom_diag_mediator::set_masks_for_axes_dsamp
mom_diag_mediator::set_masks_for_axes → mom_diag_remap::diag_remap_axes_configured
mom_diag_mediator::set_masks_for_axes → mom_diag_remap::diag_remap_calc_hmask
mom_diag_mediator::set_masks_for_axes → mom_error_handler::assert
subroutine set_masks_for_axes_dsamp(G, diag_cs)
- Parameters
G [in]
The ocean grid type.
diag_cs
A pointer to a type with many variables used for diagnostics
Callees call graph
Callers call graph
- subroutine diag_register_area_ids(diag_cs, id_area_t, id_area_q)
Attaches the id of cell areas to axes groups for use with cell_measures
- Parameters
diag_cs [inout]
Diagnostics control structure
id_area_t [in]
Diag_mediator id for area of h-cells
id_area_q [in]
Diag_mediator id for area of q-cells
Callers call graph
- subroutine register_cell_measure(G, diag, Time)
Sets a handle inside diagnostics mediator to associate 3d cell measures
- Parameters
G [in]
Ocean grid structure
diag [inout]
Regulates diagnostic output
Time [in]
Model time
Callees call graph
- subroutine diag_associate_volume_cell_measure(diag_cs, id_h_volume)
Attaches the id of cell volumes to axes groups for use with cell_measures
- Parameters
diag_cs [inout]
Diagnostics control structure
id_h_volume [in]
Diag_manager id for volume of h-cells
Callers call graph
- integer function diag_get_volume_cell_measure_dm_id(diag_cs)
Returns diag_manager id for cell measure of h-cells
- Parameters
diag_cs [in]
Diagnostics control structure
Callers call graph
- subroutine define_axes_group(diag_cs, handles, axes, nz, vertical_coordinate_number, x_cell_method, y_cell_method, v_cell_method, is_h_point, is_q_point, is_u_point, is_v_point, is_layer, is_interface, is_native, needs_remapping, needs_interpolating, xyave_axes)
Define a group of "axes" from a list of handles and associate a mask with it
- Parameters
diag_cs [in]
Diagnostics control structure
handles [in]
A list of 1D axis handles
axes [out]
The group of 1D axes
nz [in]
Number of layers in this diagnostic grid
vertical_coordinate_number [in]
Index number for vertical coordinate
x_cell_method [in]
A x-direction cell method used to construct the "cell_methods" attribute in CF convention
y_cell_method [in]
A y-direction cell method used to construct the "cell_methods" attribute in CF convention
v_cell_method [in]
A vertical direction cell method used to construct the "cell_methods" attribute in CF convention
is_h_point [in]
If true, indicates this axes group for h-point located fields
is_q_point [in]
If true, indicates this axes group for q-point located fields
is_u_point [in]
If true, indicates this axes group for u-point located fields
is_v_point [in]
If true, indicates this axes group for v-point located fields
is_layer [in]
If true, indicates that this axes group is for a layer vertically-located field.
is_interface [in]
If true, indicates that this axes group is for an interface vertically-located field.
is_native [in]
If true, indicates that this axes group is for a native model grid. False for any other grid.
needs_remapping [in]
If true, indicates that this axes group is for a intensive layer-located field that must be remapped to these axes. Used for rank>2.
needs_interpolating [in]
If true, indicates that this axes group is for a sampled interface-located field that must be interpolated to these axes. Used for rank>2.
xyave_axes
The corresponding axes group for horizontally area-average diagnostics
Callees call graph
Callers call graph
- subroutine define_axes_group_dsamp(diag_cs, handles, axes, dl, nz, vertical_coordinate_number, x_cell_method, y_cell_method, v_cell_method, is_h_point, is_q_point, is_u_point, is_v_point, is_layer, is_interface, is_native, needs_remapping, needs_interpolating, xyave_axes)
Defines a group of downsampled "axes" from list of handles
- Parameters
diag_cs [in]
Diagnostics control structure
handles [in]
A list of 1D axis handles
axes [out]
The group of 1D axes
dl [in]
Downsample level index
nz [in]
Number of layers in this diagnostic grid
vertical_coordinate_number [in]
Index number for vertical coordinate
x_cell_method [in]
A x-direction cell method used to construct the "cell_methods" attribute in CF convention
y_cell_method [in]
A y-direction cell method used to construct the "cell_methods" attribute in CF convention
v_cell_method [in]
A vertical direction cell method used to construct the "cell_methods" attribute in CF convention
is_h_point [in]
If true, indicates this axes group for h-point located fields
is_q_point [in]
If true, indicates this axes group for q-point located fields
is_u_point [in]
If true, indicates this axes group for u-point located fields
is_v_point [in]
If true, indicates this axes group for v-point located fields
is_layer [in]
If true, indicates that this axes group is for a layer vertically-located field.
is_interface [in]
If true, indicates that this axes group is for an interface vertically-located field.
is_native [in]
If true, indicates that this axes group is for a native model grid. False for any other grid.
needs_remapping [in]
If true, indicates that this axes group is for a intensive layer-located field that must be remapped to these axes. Used for rank>2.
needs_interpolating [in]
If true, indicates that this axes group is for a sampled interface-located field that must be interpolated to these axes. Used for rank>2.
xyave_axes
The corresponding axes group for horizontally area-average diagnostics
Callees call graph
Callers call graph
- subroutine set_diag_mediator_grid(G, diag_cs)
Set up the array extents for doing diagnostics
- Parameters
G [inout]
The ocean's grid structure
diag_CS [inout]
Structure used to regulate diagnostic output
- subroutine post_data_0d(diag_field_id, field, diag_cs, is_static)
Make a real scalar diagnostic available for averaging or output
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
real value being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
Callees call graph
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine post_data_1d_k(diag_field_id, field, diag_cs, is_static)
Make a real 1-d array diagnostic available for averaging or output
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
1-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
Callees call graph
Text view
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine post_data_2d(diag_field_id, field, diag_cs, is_static, mask)
Make a real 2-d array diagnostic available for averaging or output
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
2-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
mask [in]
If present, use this real array as the data mask [nondim]
- subroutine post_data_2d_low(diag, field, diag_cs, is_static, mask)
Make a real 2-d array diagnostic available for averaging or output using a diag_type instead of an integer id.
- Parameters
diag [in]
A structure describing the diagnostic to post
field [in]
2-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
mask [in]
If present, use this real array as the data mask [nondim]
Callees call graph
Text view
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::bchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::hchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::uchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::vchksum
mom_diag_mediator::post_data_2d_low → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_data_2d_low → mom_diag_mediator::downsample_field_2d
mom_diag_mediator::post_data_2d_low → mom_diag_mediator::interface::downsample_diag_field
mom_diag_mediator::post_data_2d_low → mom_error_handler::assert
mom_diag_mediator::post_data_2d_low → mom_error_handler::mom_error
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine post_data_3d(diag_field_id, field, diag_cs, is_static, mask, alt_h)
Make a real 3-d array diagnostic available for averaging or output.
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
3-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
mask [in]
If present, use this real array as the data mask [nondim]
alt_h [in]
An alternate thickness to use for vertically remapping this diagnostic [H ~> m or kg m-2].
remapped_field
The vertically remapped diagnostic [A ~> a]
h_diag
A pointer to the thickness to use for vertically remapping this diagnostic [H ~> m or kg m-2].
Callees call graph
Text view
mom_diag_mediator::post_data_3d → mom_cpu_clock_infra::cpu_clock_begin
mom_diag_mediator::post_data_3d → mom_cpu_clock_infra::cpu_clock_end
mom_diag_mediator::post_data_3d → mom_diag_mediator::post_data_3d_low
mom_diag_mediator::post_data_3d → mom_diag_remap::diag_remap_do_remap
mom_diag_mediator::post_data_3d → mom_diag_remap::vertically_interpolate_diag_field
mom_diag_mediator::post_data_3d → mom_diag_remap::vertically_reintegrate_diag_field
mom_diag_mediator::post_data_3d → mom_error_handler::calltree_enter
mom_diag_mediator::post_data_3d → mom_error_handler::calltree_leave
mom_diag_mediator::post_data_3d → mom_error_handler::mom_error
mom_diag_mediator::post_data_3d → mom_interface_heights::interface::thickness_to_dz
- subroutine post_data_3d_low(diag, field, diag_cs, is_static, mask)
Make a real 3-d array diagnostic available for averaging or output using a diag_type instead of an integer id.
- Parameters
diag [in]
A structure describing the diagnostic to post
field [in]
3-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
is_static [in]
If true, this is a static field that is always offered.
mask [in]
If present, use this real array as the data mask [nondim]
Callees call graph
Text view
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::bchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::hchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::uchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::vchksum
mom_diag_mediator::post_data_3d_low → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_data_3d_low → mom_diag_mediator::downsample_field_3d
mom_diag_mediator::post_data_3d_low → mom_diag_mediator::interface::downsample_diag_field
mom_diag_mediator::post_data_3d_low → mom_diag_mediator::post_xy_average
mom_diag_mediator::post_data_3d_low → mom_error_handler::assert
mom_diag_mediator::post_data_3d_low → mom_error_handler::mom_error
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine post_data_3d_by_column(diag_field_id, field, diag_cs, i, j)
Put data into the buffer for a diagnostic one column at a time
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
3-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
i [in]
The i-index to post the data in the buffer
j [in]
The j-index to post the data in the buffer
Callers call graph
- subroutine post_data_3d_by_point(diag_field_id, field, diag_cs, i, j, k)
Put data into the buffer for a diagnostic one point at a time
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
field [in]
3-d array being offered for output or averaging in internally scaled arbitrary units [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
i [in]
The i-index to post the data in the buffer
j [in]
The j-index to post the data in the buffer
k [in]
The k-index to post the data in the buffer
- subroutine post_data_3d_final(diag_field_id, diag_cs)
Post the final buffer using the standard post_data interface
- Parameters
diag_field_id [in]
The id for an output variable returned by a previous call to register_diag_field.
diag_CS [in]
Structure used to regulate diagnostic output
Callees call graph
Callers call graph
- subroutine post_product_u(id, u_a, u_b, G, nz, diag, mask, alt_h)
Calculate and write out diagnostics that are the product of two 3-d arrays at u-points
- Parameters
id [in]
The ID for this diagnostic
G [in]
ocean grid structure
nz [in]
The size of the arrays in the vertical
u_a [in]
The first u-point array in arbitrary units [A]
u_b [in]
The second u-point array in arbitrary units [B]
diag [in]
regulates diagnostic output
mask [in]
If present, use this real array as the data mask [nondim]
alt_h [in]
An alternate thickness to use for vertically remapping this diagnostic [H ~> m or kg m-2]
Callees call graph
Callers call graph
Text view
mom_coriolisadv::coradcalc_block → mom_diag_mediator::post_product_u
mom_diagnostics::calculate_diagnostic_fields → mom_diag_mediator::post_product_u
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::post_product_u
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::post_product_u
mom_hor_visc::horizontal_viscosity_block → mom_diag_mediator::post_product_u
mom_vert_friction::vertvisc → mom_diag_mediator::post_product_u
- subroutine post_product_sum_u(id, u_a, u_b, G, nz, diag)
Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at u-points
- Parameters
id [in]
The ID for this diagnostic
G [in]
ocean grid structure
nz [in]
The size of the arrays in the vertical
u_a [in]
The first u-point array in arbitrary units [A]
u_b [in]
The second u-point array in arbitrary units [B]
diag [in]
regulates diagnostic output
Callees call graph
Callers call graph
Text view
mom_coriolisadv::coradcalc_block → mom_diag_mediator::post_product_sum_u
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::post_product_sum_u
mom_diagnostics::calculate_diagnostic_fields → mom_diag_mediator::post_product_sum_u
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::post_product_sum_u
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::post_product_sum_u
mom_hor_visc::horizontal_viscosity_block → mom_diag_mediator::post_product_sum_u
mom_vert_friction::vertvisc → mom_diag_mediator::post_product_sum_u
- subroutine post_product_v(id, v_a, v_b, G, nz, diag, mask, alt_h)
Calculate and write out diagnostics that are the product of two 3-d arrays at v-points
- Parameters
id [in]
The ID for this diagnostic
G [in]
ocean grid structure
nz [in]
The size of the arrays in the vertical
v_a [in]
The first v-point array in arbitrary units [A]
v_b [in]
The second v-point array in arbitrary units [B]
diag [in]
regulates diagnostic output
mask [in]
If present, use this real array as the data mask [nondim]
alt_h [in]
An alternate thickness to use for vertically remapping this diagnostic [H ~> m or kg m-2]
Callees call graph
Callers call graph
Text view
mom_coriolisadv::coradcalc_block → mom_diag_mediator::post_product_v
mom_diagnostics::calculate_diagnostic_fields → mom_diag_mediator::post_product_v
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::post_product_v
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::post_product_v
mom_hor_visc::horizontal_viscosity_block → mom_diag_mediator::post_product_v
mom_vert_friction::vertvisc → mom_diag_mediator::post_product_v
- subroutine post_product_sum_v(id, v_a, v_b, G, nz, diag)
Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at v-points
- Parameters
id [in]
The ID for this diagnostic
G [in]
ocean grid structure
nz [in]
The size of the arrays in the vertical
v_a [in]
The first v-point array in arbitrary units [A]
v_b [in]
The second v-point array in arbitrary units [B]
diag [in]
regulates diagnostic output
Callees call graph
Callers call graph
Text view
mom_coriolisadv::coradcalc_block → mom_diag_mediator::post_product_sum_v
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::post_product_sum_v
mom_diagnostics::calculate_diagnostic_fields → mom_diag_mediator::post_product_sum_v
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::post_product_sum_v
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::post_product_sum_v
mom_hor_visc::horizontal_viscosity_block → mom_diag_mediator::post_product_sum_v
mom_vert_friction::vertvisc → mom_diag_mediator::post_product_sum_v
- subroutine post_xy_average(diag_cs, diag, field)
Post the horizontally area-averaged diagnostic
- Parameters
diag [in]
This diagnostic
field [in]
Diagnostic field in arbitrary units [A ~> a]
diag_cs [in]
Diagnostics mediator control structure
Callees call graph
Text view
Callers call graph
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine enable_averaging(time_int_in, time_end_in, diag_cs)
This subroutine enables the accumulation of time averages over the specified time interval.
- Parameters
time_int_in [in]
The time interval [s] over which any values that are offered are valid.
time_end_in [in]
The end time of the valid interval
diag_CS [inout]
Structure used to regulate diagnostic output
- subroutine enable_averages(time_int, time_end, diag_CS, T_to_s)
Enable the accumulation of time averages over the specified time interval in time units.
- Parameters
time_int [in]
The time interval over which any values that are offered are valid [T ~> s].
time_end [in]
The end time of the valid interval.
diag_CS [inout]
A structure that is used to regulate diagnostic output
T_to_s [in]
A conversion factor for time_int to seconds [s T-1 ~> 1].
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_diag_mediator::enable_averages
mom::step_mom_tracer_dyn → mom_diag_mediator::enable_averages
mom_barotropic::btstep_timeloop → mom_diag_mediator::enable_averages
mom_controlled_forcing::apply_ctrl_forcing → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::enable_averages
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::enable_averages
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::enable_averages
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::enable_averages
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::enable_averages
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_diag_mediator::enable_averages
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::enable_averages
mom_forcing_type::forcing_diagnostics → mom_diag_mediator::enable_averages
mom_forcing_type::mech_forcing_diags → mom_diag_mediator::enable_averages
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::enable_averages
mom_internal_tides::propagate_int_tide → mom_diag_mediator::enable_averages
mom_stochastics::apply_skeb → mom_diag_mediator::enable_averages
- subroutine disable_averaging(diag_cs)
Call this subroutine to avoid averaging any offered fields.
- Parameters
diag_CS [inout]
Structure used to regulate diagnostic output
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_diag_mediator::disable_averaging
mom::step_mom_dynamics → mom_diag_mediator::disable_averaging
mom::step_mom_tracer_dyn → mom_diag_mediator::disable_averaging
mom_controlled_forcing::apply_ctrl_forcing → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::disable_averaging
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::disable_averaging
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::disable_averaging
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::disable_averaging
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::disable_averaging
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_diag_mediator::disable_averaging
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_diag_mediator::disable_averaging
mom_forcing_type::forcing_diagnostics → mom_diag_mediator::disable_averaging
mom_forcing_type::mech_forcing_diags → mom_diag_mediator::disable_averaging
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::disable_averaging
mom_internal_tides::propagate_int_tide → mom_diag_mediator::disable_averaging
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::disable_averaging
mom_stochastics::apply_skeb → mom_diag_mediator::disable_averaging
- function query_averaging_enabled(diag_cs, time_int, time_end)
Call this subroutine to determine whether the averaging is currently enabled. .true. is returned if it is.
- Parameters
diag_CS [in]
Structure used to regulate diagnostic output
time_int [out]
Current setting of diag%time_int [s]
time_end [out]
Current setting of diag%time_end
Callers call graph
Text view
mom_ale::ale_regrid → mom_diag_mediator::query_averaging_enabled
mom_barotropic::btstep → mom_diag_mediator::query_averaging_enabled
mom_barotropic::btstep_timeloop → mom_diag_mediator::query_averaging_enabled
mom_coriolisadv::coradcalc_block → mom_diag_mediator::query_averaging_enabled
mom_int_tide_input::set_int_tide_input → mom_diag_mediator::query_averaging_enabled
mom_interface_filter::interface_filter → mom_diag_mediator::query_averaging_enabled
mom_internal_tides::propagate_int_tide → mom_diag_mediator::query_averaging_enabled
mom_lateral_mixing_coeffs::calc_resoln_function → mom_diag_mediator::query_averaging_enabled
mom_lateral_mixing_coeffs::calc_slope_functions → mom_diag_mediator::query_averaging_enabled
mom_lateral_mixing_coeffs::calc_sqg_struct → mom_diag_mediator::query_averaging_enabled
mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old → mom_diag_mediator::query_averaging_enabled
mom_mixed_layer_restrat::mixedlayer_restrat_bml → mom_diag_mediator::query_averaging_enabled
mom_mixed_layer_restrat::mixedlayer_restrat_bodner → mom_diag_mediator::query_averaging_enabled
mom_mixed_layer_restrat::mixedlayer_restrat_om4 → mom_diag_mediator::query_averaging_enabled
mom_opacity::set_opacity → mom_diag_mediator::query_averaging_enabled
mom_sponge::apply_sponge → mom_diag_mediator::query_averaging_enabled
mom_thickness_diffuse::thickness_diffuse → mom_diag_mediator::query_averaging_enabled
mom_vert_friction::vertvisc → mom_diag_mediator::query_averaging_enabled
mom_vert_friction::vertvisc_coef → mom_diag_mediator::query_averaging_enabled
- function get_diag_time_end(diag_cs)
This function returns the valid end time for use with diagnostics that are handled outside of the MOM6 diagnostics infrastructure.
- Parameters
diag_CS [in]
Structure used to regulate diagnostic output
Callers call graph
- integer function register_diag_field(module_name, field_name, axes_in, init_time, long_name, units, missing_value, range, mask_variant, standard_name, verbose, do_not_log, err_msg, interp_method, tile_count, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, cell_methods, x_cell_method, y_cell_method, v_cell_method, conversion, v_extensive)
Returns the "diag_mediator" handle for a group (native, CMOR, z-coord, ...) of diagnostics derived from one field.
- Parameters
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes_in [in]
Container w/ up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
mask_variant [in]
If true a logical mask must be provided with post_data calls (not used in MOM?)
verbose [in]
If true, FMS is verbose (not used in MOM?)
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
no clue (not used in MOM?)
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
cell_methods [in]
String to append as cell_methods attribute. Use '' to have no attribute. If present, this overrides the default constructed from the default for each individual axis direction.
x_cell_method [in]
Specifies the cell method for the x-direction. Use '' have no method.
y_cell_method [in]
Specifies the cell method for the y-direction. Use '' have no method.
v_cell_method [in]
Specifies the cell method for the vertical direction. Use '' have no method.
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
v_extensive [in]
True for vertically extensive fields (vertically integrated). Default/absent for intensive.
Callees call graph
Text view
mom_diag_mediator::register_diag_field → mom_diag_mediator::attach_cell_methods
mom_diag_mediator::register_diag_field → mom_diag_mediator::log_available_diag
mom_diag_mediator::register_diag_field → mom_diag_mediator::register_diag_field_expand_cmor
mom_diag_mediator::register_diag_field → mom_diag_remap::diag_remap_set_active
mom_diag_mediator::register_diag_field → mom_error_handler::mom_error
mom_diag_mediator::register_diag_field → mom_error_infra::is_root_pe
mom_diag_mediator::register_diag_field → mom_string_functions::trim_trailing_commas
Callers call graph
Text view
marbl_tracers::initialize_marbl_tracers → mom_diag_mediator::register_diag_field
marbl_tracers::register_marbl_diags → mom_diag_mediator::register_diag_field
mom::register_diags → mom_diag_mediator::register_diag_field
mom_ale::ale_register_diags → mom_diag_mediator::register_diag_field
mom_ale_sponge::init_ale_sponge_diags → mom_diag_mediator::register_diag_field
mom_barotropic::barotropic_init → mom_diag_mediator::register_diag_field
mom_bulk_mixed_layer::bulkmixedlayer_init → mom_diag_mediator::register_diag_field
mom_cfc_cap::initialize_cfc_cap → mom_diag_mediator::register_diag_field
mom_controlled_forcing::controlled_forcing_init → mom_diag_mediator::register_diag_field
mom_coriolisadv::coriolisadv_init → mom_diag_mediator::register_diag_field
mom_cvmix_conv::cvmix_conv_init → mom_diag_mediator::register_diag_field
mom_cvmix_kpp::kpp_init → mom_diag_mediator::register_diag_field
mom_cvmix_shear::cvmix_shear_init → mom_diag_mediator::register_diag_field
mom_diabatic_aux::diabatic_aux_init → mom_diag_mediator::register_diag_field
mom_diabatic_driver::diabatic_driver_init → mom_diag_mediator::register_diag_field
mom_diag_mediator::ocean_register_diag → mom_diag_mediator::register_diag_field
mom_diag_mediator::register_cell_measure → mom_diag_mediator::register_diag_field
mom_diagnose_kdwork::kdwork_init → mom_diag_mediator::register_diag_field
mom_diagnostics::mom_diagnostics_init → mom_diag_mediator::register_diag_field
mom_diagnostics::register_surface_diags → mom_diag_mediator::register_diag_field
mom_diagnostics::register_transport_diags → mom_diag_mediator::register_diag_field
mom_diapyc_energy_req::diapyc_energy_req_init → mom_diag_mediator::register_diag_field
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_diag_mediator::register_diag_field
mom_dynamics_split_rk2b::initialize_dyn_split_rk2b → mom_diag_mediator::register_diag_field
mom_dynamics_unsplit::initialize_dyn_unsplit → mom_diag_mediator::register_diag_field
mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 → mom_diag_mediator::register_diag_field
mom_energetic_pbl::energetic_pbl_init → mom_diag_mediator::register_diag_field
mom_entrain_diffusive::entrain_diffusive_init → mom_diag_mediator::register_diag_field
mom_forcing_type::register_forcing_type_diags → mom_diag_mediator::register_diag_field
mom_geothermal::geothermal_init → mom_diag_mediator::register_diag_field
mom_hor_visc::hor_visc_init → mom_diag_mediator::register_diag_field
mom_int_tide_input::int_tide_input_init → mom_diag_mediator::register_diag_field
mom_interface_filter::interface_filter_init → mom_diag_mediator::register_diag_field
mom_internal_tides::internal_tides_init → mom_diag_mediator::register_diag_field
mom_kappa_shear::kappa_shear_init → mom_diag_mediator::register_diag_field
mom_lateral_mixing_coeffs::varmix_init → mom_diag_mediator::register_diag_field
mom_meke::meke_init → mom_diag_mediator::register_diag_field
mom_meke::ml_meke_init → mom_diag_mediator::register_diag_field
mom_meso_sfn_ann::meso_sfn_ann_init → mom_diag_mediator::register_diag_field
mom_mixed_layer_restrat::mixedlayer_restrat_init → mom_diag_mediator::register_diag_field
mom_oda_driver_mod::init_oda → mom_diag_mediator::register_diag_field
mom_oda_incupd::init_oda_incupd_diags → mom_diag_mediator::register_diag_field
mom_offline_main::register_diags_offline_transport → mom_diag_mediator::register_diag_field
mom_opacity::opacity_init → mom_diag_mediator::register_diag_field
mom_porous_barriers::porous_barriers_init → mom_diag_mediator::register_diag_field
mom_pressureforce_fv::pressureforce_fv_init → mom_diag_mediator::register_diag_field
mom_pressureforce_mont::pressureforce_mont_init → mom_diag_mediator::register_diag_field
mom_regularize_layers::regularize_layers_init → mom_diag_mediator::register_diag_field
mom_set_diffusivity::set_diffusivity_init → mom_diag_mediator::register_diag_field
mom_set_visc::set_visc_init → mom_diag_mediator::register_diag_field
mom_sponge::init_sponge_diags → mom_diag_mediator::register_diag_field
mom_stoch_eos::mom_stoch_eos_init → mom_diag_mediator::register_diag_field
mom_stochastics::stochastics_init → mom_diag_mediator::register_diag_field
mom_thickness_diffuse::thickness_diffuse_init → mom_diag_mediator::register_diag_field
mom_tidal_mixing::tidal_mixing_init → mom_diag_mediator::register_diag_field
mom_tracer_hor_diff::tracer_hor_diff_init → mom_diag_mediator::register_diag_field
mom_tracer_registry::register_tracer_diagnostics → mom_diag_mediator::register_diag_field
mom_vert_friction::vertvisc_init → mom_diag_mediator::register_diag_field
mom_wave_interface::mom_wave_interface_init → mom_diag_mediator::register_diag_field
mom_zanna_bolton::zb2020_init → mom_diag_mediator::register_diag_field
pseudo_salt_tracer::initialize_pseudo_salt_tracer → mom_diag_mediator::register_diag_field
regional_dyes::initialize_dye_tracer → mom_diag_mediator::register_diag_field
- logical function register_diag_field_expand_cmor(dm_id, module_name, field_name, axes, init_time, long_name, units, missing_value, range, mask_variant, standard_name, verbose, do_not_log, err_msg, interp_method, tile_count, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, cell_methods, x_cell_method, y_cell_method, v_cell_method, conversion, v_extensive)
Returns True if either the native or CMOR version of the diagnostic were registered. Updates 'dm_id' after calling register_diag_field_expand_axes() for both native and CMOR variants of the field.
- Parameters
dm_id [inout]
The diag_mediator ID for this diagnostic group
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
mask_variant [in]
If true a logical mask must be provided with post_data calls (not used in MOM?)
verbose [in]
If true, FMS is verbose (not used in MOM?)
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
no clue (not used in MOM?)
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
cell_methods [in]
String to append as cell_methods attribute. Use '' to have no attribute. If present, this overrides the default constructed from the default for each individual axis direction.
x_cell_method [in]
Specifies the cell method for the x-direction. Use '' have no method.
y_cell_method [in]
Specifies the cell method for the y-direction. Use '' have no method.
v_cell_method [in]
Specifies the cell method for the vertical direction. Use '' have no method.
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
v_extensive [in]
True for vertically extensive fields (vertically integrated). Default/absent for intensive.
Callees call graph
Text view
mom_diag_mediator::register_diag_field_expand_cmor → mom_diag_mediator::add_diag_to_list
mom_diag_mediator::register_diag_field_expand_cmor → mom_diag_mediator::attach_cell_methods
mom_diag_mediator::register_diag_field_expand_cmor → mom_diag_mediator::register_diag_field_expand_axes
mom_diag_mediator::register_diag_field_expand_cmor → mom_diag_mediator::xyz_method
Callers call graph
- integer function register_diag_field_expand_axes(module_name, field_name, axes, init_time, long_name, units, missing_value, range, mask_variant, standard_name, verbose, do_not_log, err_msg, interp_method, tile_count)
Returns an FMS id from register_diag_field_fms (the diag_manager routine) after expanding axes (axes-group) into handles and conditionally adding an FMS area_id for cell_measures.
- Parameters
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
mask_variant [in]
If true a logical mask must be provided with post_data calls (not used in MOM?)
verbose [in]
If true, FMS is verbose (not used in MOM?)
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
no clue (not used in MOM?)
Callees call graph
Callers call graph
- subroutine add_diag_to_list(diag_cs, dm_id, fms_id, this_diag, axes, module_name, field_name)
Create a diagnostic type and attached to list
- Parameters
diag_cs
Diagnostics mediator control structure
dm_id [inout]
The diag_mediator ID for this diagnostic group
fms_id [in]
The FMS diag_manager ID for this diagnostic
this_diag
This diagnostic
axes [in]
Container with up to 3 integer handles that indicates axes for this field
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of diagnostic
Callees call graph
Callers call graph
- integer function xyz_method(axes, x_cell_method, y_cell_method, v_cell_method, v_extensive)
Returns an integer encoding the "cell_methods" for diagnostic, allowing simpler access to the cell_method for a given diagnostic at the time of sending
- Parameters
axes [in]
Container w/ up to 3 integer handles that indicates axes for this field
x_cell_method [in]
Specifies the cell method for the x-direction. Use '' have no method.
y_cell_method [in]
Specifies the cell method for the y-direction. Use '' have no method.
v_cell_method [in]
Specifies the cell method for the vertical direction. Use '' have no method.
v_extensive [in]
True for vertically extensive fields (vertically integrated). Default/absent for intensive.
- subroutine attach_cell_methods(id, axes, ostring, cell_methods, x_cell_method, y_cell_method, v_cell_method, v_extensive)
Attaches "cell_methods" attribute to a variable based on defaults for axes_grp or optional arguments.
- Parameters
id [in]
Handle to diagnostic
axes [in]
Container with up to 3 integer handles that indicates axes for this field
ostring [out]
The cell_methods strings that would appear in the file
cell_methods [in]
String to append as cell_methods attribute. Use '' to have no attribute. If present, this overrides the default constructed from the default for each individual axis direction.
x_cell_method [in]
Specifies the cell method for the x-direction. Use '' have no method.
y_cell_method [in]
Specifies the cell method for the y-direction. Use '' have no method.
v_cell_method [in]
Specifies the cell method for the vertical direction. Use '' have no method.
v_extensive [in]
True for vertically extensive fields (vertically integrated). Default/absent for intensive.
Callees call graph
- function register_scalar_field_axes(module_name, field_name, axes, init_time, long_name, units, missing_value, range, standard_name, do_not_log, err_msg, interp_method, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, conversion) result(register_scalar_field)
Registers a non-array scalar diagnostic, returning an integer handle
- Parameters
register_scalar_field
An integer handle for a diagnostic array.
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
Callees call graph
- function register_scalar_field_CS(module_name, field_name, init_time, diag_cs, long_name, units, missing_value, range, standard_name, do_not_log, err_msg, interp_method, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, conversion) result(register_scalar_field)
Registers a scalar diagnostic, returning an integer handle
- Parameters
register_scalar_field
An integer handle for a diagnostic array.
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
init_time [in]
Time at which a field is first available?
diag_CS [inout]
Structure used to regulate diagnostic output
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
Callees call graph
Text view
mom_diag_mediator::register_scalar_field_cs → mom_diag_manager_infra::interface::register_diag_field_infra
mom_diag_mediator::register_scalar_field_cs → mom_diag_mediator::alloc_diag_with_id
mom_diag_mediator::register_scalar_field_cs → mom_diag_mediator::get_new_diag_id
mom_diag_mediator::register_scalar_field_cs → mom_diag_mediator::log_available_diag
mom_diag_mediator::register_scalar_field_cs → mom_error_handler::assert
mom_diag_mediator::register_scalar_field_cs → mom_error_infra::is_root_pe
Callers call graph
- function register_static_field(module_name, field_name, axes, long_name, units, missing_value, range, mask_variant, standard_name, do_not_log, interp_method, tile_count, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, area, x_cell_method, y_cell_method, area_cell_method, conversion)
Registers a static diagnostic, returning an integer handle
- Parameters
register_static_field
An integer handle for a diagnostic array.
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
mask_variant [in]
If true a logical mask must be provided with post_data calls (not used in MOM?)
do_not_log [in]
If true, do not log something (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
no clue (not used in MOM?)
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
area [in]
fms_id for area_t
x_cell_method [in]
Specifies the cell method for the x-direction.
y_cell_method [in]
Specifies the cell method for the y-direction.
area_cell_method [in]
Specifies the cell method for area
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
diag_cs
A structure that is used to regulate diagnostic output
Callees call graph
Text view
mom_diag_mediator::register_static_field → mom_diag_manager_infra::get_mom_diag_axis_name
mom_diag_mediator::register_static_field → mom_diag_manager_infra::interface::mom_diag_field_add_attribute
mom_diag_mediator::register_static_field → mom_diag_manager_infra::register_static_field_infra
mom_diag_mediator::register_static_field → mom_diag_mediator::alloc_diag_with_id
mom_diag_mediator::register_static_field → mom_diag_mediator::get_new_diag_id
mom_diag_mediator::register_static_field → mom_diag_mediator::log_available_diag
mom_diag_mediator::register_static_field → mom_error_handler::assert
mom_diag_mediator::register_static_field → mom_error_infra::is_root_pe
mom_diag_mediator::register_static_field → mom_string_functions::trim_trailing_commas
- subroutine describe_option(opt_name, value, diag_CS)
Describe an option setting in the diagnostic files.
- Parameters
opt_name [in]
The name of the option
value [in]
A character string with the setting of the option.
diag_CS [in]
Structure used to regulate diagnostic output
Callers call graph
- function ocean_register_diag(var_desc, G, diag_CS, day)
Registers a diagnostic using the information encapsulated in the vardesc type argument and returns an integer handle to this diagnostic. That integer handle is negative if the diagnostic is unused.
- Parameters
ocean_register_diag
An integer handle to this diagnostic.
var_desc [in]
The vardesc type describing the diagnostic
G [in]
The ocean's grid type
diag_CS [in]
The diagnostic control structure
day [in]
The current model time
subroutine diag_mediator_infrastructure_init(err_msg)
- Parameters
err_msg [out]
An error message
Callees call graph
Callers call graph
- subroutine diag_mediator_init(G, GV, US, nz, param_file, diag_cs, doc_file_dir)
diag_mediator_init initializes the MOM diag_mediator and opens the available diagnostics file, if appropriate.
- Parameters
G [inout]
The ocean grid type.
GV [in]
The ocean vertical grid structure
US [in]
A dimensional unit scaling type
nz [in]
The number of layers in the model's native grid.
param_file [in]
Parameter file structure
diag_cs [inout]
A pointer to a type with many variables used for diagnostics
doc_file_dir [in]
A directory in which to create the file
Callees call graph
Text view
mom_diag_mediator::diag_mediator_init → mom_coms_infra::pe_here
mom_diag_mediator::diag_mediator_init → mom_cpu_clock_infra::cpu_clock_id
mom_diag_mediator::diag_mediator_init → mom_diag_mediator::initialize_diag_type
mom_diag_mediator::diag_mediator_init → mom_diag_remap::diag_remap_init
mom_diag_mediator::diag_mediator_init → mom_domain_infra::interface::clone_mom_domain
mom_diag_mediator::diag_mediator_init → mom_domain_infra::interface::get_domain_extent
mom_diag_mediator::diag_mediator_init → mom_error_handler::calltree_showquery
mom_diag_mediator::diag_mediator_init → mom_error_handler::mom_error
mom_diag_mediator::diag_mediator_init → mom_error_infra::is_root_pe
mom_diag_mediator::diag_mediator_init → mom_file_parser::interface::get_param
mom_diag_mediator::diag_mediator_init → mom_file_parser::interface::log_version
mom_diag_mediator::diag_mediator_init → mom_io::get_filename_appendix
mom_diag_mediator::diag_mediator_init → mom_string_functions::slasher
- subroutine diag_mediator_set_OBC_info(G, OBC_seg_u, OBC_seg_v, diag_cs)
diag_mediator_set_OBC_info stores limited information about the locations and orientations of open boundary condition segments at velocity points..
- Parameters
G [inout]
The ocean grid type.
OBC_seg_u [in]
An array that indicates the presence and direction of any open boundary conditions at u-points, with a value of 0 for no OBC, a positive value for an Eastern OBC or a negative value for a Western OBC
OBC_seg_v [in]
An array that indicates the presence and direction of any open boundary conditions at v-points, with a value of 0 for no OBC, a positive value for a Northern OBC or a negative value for a Southern OBC
diag_cs [inout]
A defined type used to regulate diagnostics
- subroutine diag_set_state_ptrs(h, tv, diag_cs)
Set pointers to the default state fields used to remap diagnostics.
- Parameters
h [in]
the model thickness array [H ~> m or kg m-2]
tv [in]
A structure with thermodynamic variables that are used to convert thicknesses to vertical extents
diag_cs [inout]
diag mediator control structure
- subroutine diag_update_remap_grids(diag_cs, alt_h, alt_T, alt_S, update_intensive, update_extensive)
Build/update vertical grids for diagnostic remapping.
Note: The target grids need to be updated whenever sea surface height changes.
- Parameters
diag_cs [inout]
Diagnostics control structure
alt_h [in]
Used if remapped grids should be something other than the current thicknesses [H ~> m or kg m-2]
alt_T [in]
Used if remapped grids should be something other than the current temperatures [C ~> degC]
alt_S [in]
Used if remapped grids should be something other than the current salinity [S ~> ppt]
update_intensive [in]
If true (default), update the grids used for intensive diagnostics
update_extensive [in]
If true (not default), update the grids used for intensive diagnostics
Callees call graph
Text view
mom_diag_mediator::diag_update_remap_grids → mom_cpu_clock_infra::cpu_clock_begin
mom_diag_mediator::diag_update_remap_grids → mom_cpu_clock_infra::cpu_clock_end
mom_diag_mediator::diag_update_remap_grids → mom_diag_remap::diag_remap_update
mom_diag_mediator::diag_update_remap_grids → mom_error_handler::calltree_enter
mom_diag_mediator::diag_update_remap_grids → mom_error_handler::calltree_leave
mom_diag_mediator::diag_update_remap_grids → mom_error_handler::mom_error
mom_diag_mediator::diag_update_remap_grids → mom_interface_heights::interface::thickness_to_dz
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_diag_mediator::diag_update_remap_grids
mom::initialize_mom → mom_diag_mediator::diag_update_remap_grids
mom::step_mom_dynamics → mom_diag_mediator::diag_update_remap_grids
mom::step_mom_tracer_dyn → mom_diag_mediator::diag_update_remap_grids
mom_bulk_mixed_layer::bulkmixedlayer → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::diabatic_ale → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::diabatic_ale_legacy → mom_diag_mediator::diag_update_remap_grids
mom_diabatic_driver::layered_diabatic → mom_diag_mediator::diag_update_remap_grids
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_diag_mediator::diag_update_remap_grids
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_diag_mediator::diag_update_remap_grids
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_diag_mediator::diag_update_remap_grids
mom_mixed_layer_restrat::mixedlayer_restrat_bml → mom_diag_mediator::diag_update_remap_grids
mom_mixed_layer_restrat::mixedlayer_restrat_bodner → mom_diag_mediator::diag_update_remap_grids
mom_mixed_layer_restrat::mixedlayer_restrat_om4 → mom_diag_mediator::diag_update_remap_grids
mom_oda_driver_mod::apply_oda_tracer_increments → mom_diag_mediator::diag_update_remap_grids
mom_thickness_diffuse::thickness_diffuse → mom_diag_mediator::diag_update_remap_grids
- subroutine diag_masks_set(G, nz, diag_cs)
Sets up the 2d and 3d masks for native diagnostics
- Parameters
G [in]
The ocean grid type.
nz [in]
The number of layers in the model's native grid.
diag_cs
A pointer to a type with many variables used for diagnostics
Callees call graph
- subroutine set_piecemeal_extents(diag_cs)
Set the extents and fill values for the piecemeal buffers for all axes
- Parameters
diag_cs [inout]
A pointer to a type with many variables used for diagnostics
Callers call graph
subroutine diag_mediator_close_registration(diag_CS)
- Parameters
diag_CS [inout]
Structure used to regulate diagnostic output
Callees call graph
subroutine axes_grp_end(axes)
- Parameters
axes [inout]
Axes group to be destroyed
subroutine diag_mediator_end(time, diag_CS, end_diag_manager)
- Parameters
time [in]
The current model time
diag_CS [inout]
Structure used to regulate diagnostic output
end_diag_manager [in]
If true, call diag_manager_end()
Callees call graph
Text view
mom_diag_mediator::diag_mediator_end → mom_diag_manager_infra::mom_diag_manager_end
mom_diag_mediator::diag_mediator_end → mom_diag_mediator::axes_grp_end
mom_diag_mediator::diag_mediator_end → mom_diag_mediator::diag_grid_storage_end
mom_diag_mediator::diag_mediator_end → mom_diag_remap::diag_remap_end
- integer function get_new_diag_id(diag_cs)
Returns a new diagnostic id, it may be necessary to expand the diagnostics array.
- Parameters
diag_cs [inout]
Diagnostics control structure
Callees call graph
- subroutine initialize_diag_type(diag)
Initializes a diag_type (used after allocating new memory)
- Parameters
diag [inout]
diag_type to be initialized
- subroutine alloc_diag_with_id(diag_id, diag_cs, diag)
Make a new diagnostic. Either use memory which is in the array of 'primary' diagnostics, or if that is in use, insert it to the list of secondary diagnostics.
- Parameters
diag_id [in]
id for the diagnostic
diag_cs [inout]
structure used to regulate diagnostic output
diag
structure representing a diagnostic (inout)
- subroutine log_available_diag(used, module_name, field_name, cell_methods_string, comment, diag_CS, long_name, units, standard_name, variants, dimensions)
Log a diagnostic to the available diagnostics file.
- Parameters
used [in]
Whether this diagnostic was in the diag_table or not
module_name [in]
Name of the diagnostic module
field_name [in]
Name of this diagnostic field
cell_methods_string [in]
The spatial component of the CF cell_methods attribute
comment [in]
A comment to append after [Used|Unused]
diag_CS [in]
The diagnostics control structure
dimensions [in]
Descriptor of the horizontal and vertical dimensions
long_name [in]
CF long name of diagnostic
units [in]
Units for diagnostic
standard_name [in]
CF standardized name of diagnostic
variants [in]
Alternate modules and variable names for this diagnostic and derived diagnostics
Callees call graph
- subroutine log_chksum_diag(docunit, description, chksum)
Log the diagnostic chksum to the chksum diag file
- Parameters
docunit [in]
Handle of the log file
description [in]
Name of the diagnostic module
chksum [in]
chksum of the diagnostic
- subroutine diag_grid_storage_init(grid_storage, G, GV, diag)
Allocates fields necessary to store diagnostic remapping fields
- Parameters
grid_storage [inout]
Structure containing a snapshot of the target grids
G [in]
Horizontal grid
GV [in]
ocean vertical grid structure
diag [in]
Diagnostic control structure used as the constructor template for this routine
- subroutine diag_copy_diag_to_storage(grid_storage, h_state, diag)
Copy from the main diagnostic arrays to the grid storage as well as the native thicknesses
- Parameters
grid_storage [inout]
Structure containing a snapshot of the target grids
h_state [in]
Current model thicknesses [H ~> m or kg m-2]
diag [in]
Diagnostic control structure used as the constructor
Callers call graph
- subroutine diag_copy_storage_to_diag(diag, grid_storage)
Copy from the stored diagnostic arrays to the main diagnostic grids
- Parameters
diag [inout]
Diagnostic control structure used as the constructor
grid_storage [in]
Structure containing a snapshot of the target grids
Callers call graph
- subroutine diag_save_grids(diag)
Save the current diagnostic grids in the temporary structure within diag
- Parameters
diag [inout]
Diagnostic control structure used as the constructor
- subroutine diag_restore_grids(diag)
Restore the diagnostic grids from the temporary structure within diag
- Parameters
diag [inout]
Diagnostic control structure used as the constructor
- subroutine diag_grid_storage_end(grid_storage)
Deallocates the fields in the remapping fields container
- Parameters
grid_storage [inout]
Structure containing a snapshot of the target grids
Callers call graph
- subroutine downsample_diag_masks_set(G, nz, diag_cs)
Allocate and initialize the masks for downsampled diagnostics in diag_cs The downsampled masks in the axes would later "point" to these.
- Parameters
G [in]
The ocean grid type.
nz [in]
The number of layers in the model's native grid.
diag_cs
A pointer to a type with many variables used for diagnostics
Callees call graph
Callers call graph
- subroutine downsample_diag_indices_get(fo1, fo2, dl, diag_cs, isv, iev, jsv, jev)
Get the diagnostics-compute indices (to be passed to send_data) based on the shape of the diagnostic field (the same way they are deduced for non-downsampled fields)
- Parameters
fo1 [in]
The size of the original diag field in x on data domain including halos
fo2 [in]
The size of the original diag field in y on data domain including halos
dl [in]
Index of downsample level
diag_CS [in]
Structure used to regulate diagnostic output
isv [out]
i-start index for diagnostics
iev [out]
i-end index for diagnostics
jsv [out]
j-start index for diagnostics
jev [out]
j-end index for diagnostics
Callees call graph
- subroutine downsample_diag_field_3d(locfield, locfield_dsamp, dl, diag_cs, diag, isv, iev, jsv, jev, mask)
This subroutine allocates and computes a downsampled array from an input array. It also determines the diagnostic computational grid indices for the downsampled array. 3d interface
- Parameters
locfield
Input array pointer in arbitrary units [A ~> a]
locfield_dsamp [inout]
Output (downsampled) array [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
diag [in]
A structure describing the diagnostic to post
dl [in]
Index of Level of down sampling
isv [inout]
i-start index for diagnostics
iev [inout]
i-end index for diagnostics
jsv [inout]
j-start index for diagnostics
jev [inout]
j-end index for diagnostics
mask [in]
If present, use this real array as the data mask [nondim]
- subroutine downsample_diag_field_2d(locfield, locfield_dsamp, dl, diag_cs, diag, isv, iev, jsv, jev, mask)
This subroutine allocates and computes a downsampled array from an input array. It also determines the diagnostic computational grid indices for the downsampled array. 2d interface
- Parameters
locfield
Input array pointer in arbitrary units [A ~> a]
locfield_dsamp [inout]
Output (downsampled) array [A ~> a]
diag_CS [in]
Structure used to regulate diagnostic output
diag [in]
A structure describing the diagnostic to post
dl [in]
Index of Level of down sampling
isv [inout]
i-start index for diagnostics
iev [inout]
i-end index for diagnostics
jsv [inout]
j-start index for diagnostics
jev [inout]
j-end index for diagnostics
mask [in]
If present, use this real array as the data mask [nondim].
- subroutine downsample_field_3d(field_in, field_out, dL, method, mask, diag_cs, diag, isv_o, jsv_o, isv_d, iev_d, jsv_d, jev_d)
The down sample algorithm
The down sample method could be deduced (before send_data call) from the diag%x_cell_method, diag%y_cell_method and diag%v_cell_method
This is the summary of the down sample algorithm for a diagnostic field f:
\begin{equation*} f(Id,Jd) = \sum_{i,j} f(Id+i,Jd+j) * weight(Id+i,Jd+j) / [ \sum_{i,j} weight(Id+i,Jd+j)] \end{equation*}Here, i and j run from 0 to dl-1 (dl being the down sample level). Id,Jd are the down sampled (coarse grid) indices run over the coarsened compute grid, if and jf are the original (fine grid) indices.
Example x_cell y_cell v_cell algorithm_id implemented weight(if,jf) --------------------------------------------------------------------------------------- theta mean mean mean MMM =222 G%areaT(if,jf)*h(if,jf) u point mean mean PMM =022 dyCu(if,jf)*h(if,jf)*delta(if,Id) v mean point mean MPM =202 dxCv(if,jf)*h(if,jf)*delta(jf,Jd) ? point sum mean PSM =012 h(if,jf)*delta(if,Id) volcello sum sum sum SSS =111 1 T_dfxy_co sum sum point SSP =110 1 umo point sum sum PSS =011 1*delta(if,Id) vmo sum point sum SPS =101 1*delta(jf,Jd) umo_2d point sum point PSP =010 1*delta(if,Id) vmo_2d sum point point SPP =100 1*delta(jf,Jd) ? point mean point PMP =020 dyCu(if,jf)*delta(if,Id) ? mean point point MPP =200 dxCv(if,jf)*delta(jf,Jd) w mean mean point MMP =220 G%areaT(if,jf) h*theta mean mean sum MMS =221 G%areaT(if,jf) delta is the Kronecker deltaThis subroutine allocates and computes a down sampled 3d array given an input array The down sample method is based on the "cell_methods" for the diagnostics as explained in the above table
- Parameters
field_in
Original field to be downsampled in arbitrary units [A ~> a]
field_out
Downsampled field in the same arbitrary units [A ~> a]
dL [in]
Level of down sampling
method [in]
Sampling method
mask
Mask for input field [nondim]
diag_CS [in]
Structure used to regulate diagnostic output
diag [in]
A structure describing the diagnostic to post
isv_o [in]
Original i-start index
jsv_o [in]
Original j-start index
isv_d [in]
i-start index of down sampled data
iev_d [in]
i-end index of down sampled data
jsv_d [in]
j-start index of down sampled data
jev_d [in]
j-end index of down sampled data
Callees call graph
Callers call graph
- subroutine downsample_field_2d(field_in, field_out, dl, method, mask, diag_cs, diag, isv_o, jsv_o, isv_d, iev_d, jsv_d, jev_d)
This subroutine allocates and computes a down sampled 2d array given an input array The down sample method is based on the "cell_methods" for the diagnostics as explained in the above table
- Parameters
field_in
Original field to be downsampled in arbitrary units [A ~> a]
field_out
Downsampled field in the same arbitrary units [A ~> a]
dl [in]
Level of down sampling
method [in]
Sampling method
mask
Mask for input field [nondim]
diag_CS [in]
Structure used to regulate diagnostic output
diag [in]
A structure describing the diagnostic to post
isv_o [in]
Original i-start index
jsv_o [in]
Original j-start index
isv_d [in]
i-start index of down sampled data
iev_d [in]
i-end index of down sampled data
jsv_d [in]
j-start index of down sampled data
jev_d [in]
j-end index of down sampled data
Callees call graph
Callers call graph
- function sum_1d(field, sz) result(sum)
Do a rotationally symmetric sum of the elements of a 1-d array.
- Parameters
sz [in]
The size of the array to sum
field [in]
The field to sum in arbitrary units [A ~> a]
sum
The rotationally symmetric sum of the entries in field [A ~> a]
Callers call graph
- function square_sum(field, sz, naive_sum) result(sum)
Return the sum of the elements of a square 2-d array, perhaps using a rotationally symmetric sum. This could eventually wrap symmetric_sum, but for now it also can reproduce the previous answers.
- Parameters
sz [in]
The size of the array along each axis
field [in]
The field to sum in arbitrary units [A ~> a]
naive_sum [in]
If true, sum the elements in the order they appear in memory.
sum
The sum of the entries in field [A ~> a]
Callees call graph
Callers call graph
- subroutine downsample_mask_2d(mask_in, mask_dsamp, dL, method, isc_o, jsc_o, isd_o, jsd_o, isc_d, iec_d, jsc_d, jec_d, isd_d, ied_d, jsd_d, jed_d)
Allocate and compute the 2d down sampled mask. The masks are down sampled based on a minority rule, i.e., a coarse cell is open (1) if at least one of the sub-cells are open, otherwise it's closed (0), using the same points that would appear in the downsampled sum, average or down-selection.
- Parameters
isd_o [in]
Original data domain i-start index
jsd_o [in]
Original data domain j-start index
mask_in [in]
Original mask to be down sampled [nondim]
mask_dsamp
Down-sampled mask [nondim]
method [in]
Sampling method
dL [in]
Level of down sampling
isc_o [in]
Original i-start index
jsc_o [in]
Original j-start index
isc_d [in]
Computational i-start index of down sampled data
iec_d [in]
Computational i-end index of down sampled data
jsc_d [in]
Computational j-start index of down sampled data
jec_d [in]
Computational j-end index of down sampled data
isd_d [in]
Data domain i-start index of down sampled data
ied_d [in]
Data domain i-end index of down sampled data
jsd_d [in]
Data domain j-start index of down sampled data
jed_d [in]
Data domain j-end index of down sampled data
- subroutine downsample_mask_3d(mask_in, mask_dsamp, dL, method, isc_o, jsc_o, isd_o, jsd_o, isc_d, iec_d, jsc_d, jec_d, isd_d, ied_d, jsd_d, jed_d)
Allocate and compute the 3d down sampled mask. The masks are down sampled based on a minority rule, i.e., a coarse cell is open (1) if at least one of the sub-cells are open, otherwise it's closed (0), using the same points that would appear in the downsampled sum, average or down-selection.
- Parameters
isd_o [in]
Original data domain i-start index
jsd_o [in]
Original data domain j-start index
mask_in [in]
Original mask to be down sampled [nondim]
mask_dsamp
Down-sampled mask [nondim]
dL [in]
Level of down sampling
method [in]
Sampling method
isc_o [in]
Original i-start index
jsc_o [in]
Original j-start index
isc_d [in]
Computational i-start index of down sampled data
iec_d [in]
Computational i-end index of down sampled data
jsc_d [in]
Computational j-start index of down sampled data
jec_d [in]
Computational j-end index of down sampled data
isd_d [in]
Computational i-start index of down sampled data
ied_d [in]
Computational i-end index of down sampled data
jsd_d [in]
Computational j-start index of down sampled data
jed_d [in]
Computational j-end index of down sampled data
- logical function found_in_diagtable(diag, varName)
Fakes a register of a diagnostic to find out if an obsolete parameter appears in the diag_table.
- Parameters
diag [in]
A structure used to control diagnostics.
varName [in]
The obsolete diagnostic name
Callees call graph
Callers call graph
- subroutine MOM_diag_send_complete()
Finishes the diag manager reduction methods as needed for the time_step