MOM_diag_mediator module reference

The subroutines here provide convenient wrappers to the FMS diag_manager interfaces with additional diagnostic capabilities.

Data Types

diag_dsamp

Contained for down sampled masks

axes_grp

A group of 1D axes that comprise a 1D/2D/3D mesh

diag_grids_type

Contains an array to store a diagnostic target grid

diag_grid_storage

Stores all the remapping grids and the model's native space thicknesses

diag_type

x:mean,y:mean,z:mean

diagcs_dsamp

Container for down sampling information

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.

Generic Interfaces

post_data

Make a diagnostic available for averaging or output.

register_scalar_field

Registers a non-array scalar diagnostic, returning an integer handle

downsample_field

Down sample a field

downsample_mask

Down sample the mask of a field

downsample_diag_field

Down sample a diagnostic field

Functions/Subroutines

set_axes_info

Sets up diagnostics axes

set_axes_info_dsamp

set_masks_for_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()

set_masks_for_axes_dsamp

diag_register_area_ids

Attaches the id of cell areas to axes groups for use with cell_measures

register_cell_measure

Sets a handle inside diagnostics mediator to associate 3d cell measures

diag_associate_volume_cell_measure

Attaches the id of cell volumes to axes groups for use with cell_measures

diag_get_volume_cell_measure_dm_id

Returns diag_manager id for cell measure of h-cells

define_axes_group

Define a group of "axes" from a list of handles and associate a mask with it

define_axes_group_dsamp

Defines a group of downsampled "axes" from list of handles

set_diag_mediator_grid

Set up the array extents for doing diagnostics

post_data_0d

Make a real scalar diagnostic available for averaging or output

post_data_1d_k

Make a real 1-d array diagnostic available for averaging or output

post_data_2d

Make a real 2-d array diagnostic available for averaging or output

post_data_2d_low

Make a real 2-d array diagnostic available for averaging or output using a diag_type instead of an integer id.

post_data_3d

Make a real 3-d array diagnostic available for averaging or output.

post_data_3d_low

Make a real 3-d array diagnostic available for averaging or output using a diag_type instead of an integer id.

post_data_3d_by_column

Put data into the buffer for a diagnostic one column at a time

post_data_3d_by_point

Put data into the buffer for a diagnostic one point at a time

post_data_3d_final

Post the final buffer using the standard post_data interface

post_product_u

Calculate and write out diagnostics that are the product of two 3-d arrays at u-points

post_product_sum_u

Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at u-points

post_product_v

Calculate and write out diagnostics that are the product of two 3-d arrays at v-points

post_product_sum_v

Calculate and write out diagnostics that are the vertical sum of the product of two 3-d arrays at v-points

post_xy_average

Post the horizontally area-averaged diagnostic

enable_averaging

This subroutine enables the accumulation of time averages over the specified time interval.

enable_averages

Enable the accumulation of time averages over the specified time interval in time units.

disable_averaging

Call this subroutine to avoid averaging any offered fields.

query_averaging_enabled

Call this subroutine to determine whether the averaging is currently enabled. .true. is returned if it is.

get_diag_time_end

This function returns the valid end time for use with diagnostics that are handled outside of the MOM6 diagnostics infrastructure.

register_diag_field

Returns the "diag_mediator" handle for a group (native, CMOR, z-coord, ...) of diagnostics derived from one field.

register_diag_field_expand_cmor

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.

register_diag_field_expand_axes

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.

add_diag_to_list

Create a diagnostic type and attached to list

xyz_method

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

attach_cell_methods

Attaches "cell_methods" attribute to a variable based on defaults for axes_grp or optional arguments.

register_scalar_field_axes

Registers a non-array scalar diagnostic, returning an integer handle

register_scalar_field_CS

Registers a scalar diagnostic, returning an integer handle

register_static_field

Registers a static diagnostic, returning an integer handle

describe_option

Describe an option setting in the diagnostic files.

ocean_register_diag

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_infrastructure_init

diag_mediator_init

diag_mediator_init initializes the MOM diag_mediator and opens the available diagnostics file, if appropriate.

diag_mediator_set_OBC_info

diag_mediator_set_OBC_info stores limited information about the locations and orientations of open boundary condition segments at velocity points..

diag_set_state_ptrs

Set pointers to the default state fields used to remap diagnostics.

diag_update_remap_grids

Build/update vertical grids for diagnostic remapping.

diag_masks_set

Sets up the 2d and 3d masks for native diagnostics

set_piecemeal_extents

Set the extents and fill values for the piecemeal buffers for all axes

diag_mediator_close_registration

axes_grp_end

diag_mediator_end

get_new_diag_id

Returns a new diagnostic id, it may be necessary to expand the diagnostics array.

initialize_diag_type

Initializes a diag_type (used after allocating new memory)

alloc_diag_with_id

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_available_diag

Log a diagnostic to the available diagnostics file.

log_chksum_diag

Log the diagnostic chksum to the chksum diag file

diag_grid_storage_init

Allocates fields necessary to store diagnostic remapping fields

diag_copy_diag_to_storage

Copy from the main diagnostic arrays to the grid storage as well as the native thicknesses

diag_copy_storage_to_diag

Copy from the stored diagnostic arrays to the main diagnostic grids

diag_save_grids

Save the current diagnostic grids in the temporary structure within diag

diag_restore_grids

Restore the diagnostic grids from the temporary structure within diag

diag_grid_storage_end

Deallocates the fields in the remapping fields container

downsample_diag_masks_set

Allocate and initialize the masks for downsampled diagnostics in diag_cs The downsampled masks in the axes would later "point" to these.

downsample_diag_indices_get

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)

downsample_diag_field_3d

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

downsample_diag_field_2d

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

downsample_field_3d

downsample_field_2d

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

sum_1d

Do a rotationally symmetric sum of the elements of a 1-d array.

square_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.

downsample_mask_2d

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.

downsample_mask_3d

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.

found_in_diagtable

Fakes a register of a diagnostic to find out if an obsolete parameter appears in the diag_table.

MOM_diag_send_complete

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

post_data_1d_k

Callers call graph
Callers of mom_diag_mediator::interface::post_data calls cluster_marbl_tracers MARBL_tracers cluster_mom MOM cluster_mom_ale MOM_ALE cluster_mom_ale_sponge MOM_ALE_sponge cluster_mom_barotropic MOM_barotropic cluster_mom_bulk_mixed_layer MOM_bulk_mixed_layer cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_cvmix_conv MOM_CVMix_conv cluster_mom_cvmix_kpp MOM_CVMix_KPP cluster_mom_cvmix_shear MOM_CVMix_shear cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnose_kdwork MOM_diagnose_kdwork cluster_mom_diagnose_mld MOM_diagnose_mld cluster_mom_diagnostics MOM_diagnostics cluster_mom_diapyc_energy_req MOM_diapyc_energy_req cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_energetic_pbl MOM_energetic_PBL cluster_mom_entrain_diffusive MOM_entrain_diffusive cluster_mom_forcing_type MOM_forcing_type cluster_mom_geothermal MOM_geothermal cluster_mom_hor_bnd_diffusion MOM_hor_bnd_diffusion cluster_mom_hor_visc MOM_hor_visc cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_interface_filter MOM_interface_filter cluster_mom_internal_tides MOM_internal_tides cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_lateral_mixing_coeffs MOM_lateral_mixing_coeffs cluster_mom_meke MOM_MEKE cluster_mom_meso_sfn_ann MOM_meso_sfn_ANN cluster_mom_mixed_layer_restrat MOM_mixed_layer_restrat cluster_mom_neutral_diffusion MOM_neutral_diffusion cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_oda_incupd MOM_oda_incupd cluster_mom_offline_main MOM_offline_main cluster_mom_opacity MOM_opacity cluster_mom_porous_barriers MOM_porous_barriers cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_pressureforce_mont MOM_PressureForce_Mont cluster_mom_regularize_layers MOM_regularize_layers cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_set_visc MOM_set_visc cluster_mom_sponge MOM_sponge cluster_mom_stoch_eos MOM_stoch_eos cluster_mom_stochastics MOM_stochastics cluster_mom_thickness_diffuse MOM_thickness_diffuse cluster_mom_tidal_mixing MOM_tidal_mixing cluster_mom_tracer_hor_diff MOM_tracer_hor_diff cluster_mom_tracer_registry MOM_tracer_registry cluster_mom_vert_friction MOM_vert_friction cluster_mom_wave_interface MOM_wave_interface cluster_mom_zanna_bolton MOM_Zanna_Bolton cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes marbl_tracers::marbl_tracers_column_physics MARBL_tracers_column_physics mom_diag_mediator::interface::post_data post_data (interface) marbl_tracers::marbl_tracers_column_physics->mom_diag_mediator::interface::post_data marbl_tracers::marbl_tracers_set_forcing MARBL_tracers_set_forcing marbl_tracers::marbl_tracers_set_forcing->mom_diag_mediator::interface::post_data mom::step_mom step_MOM mom::step_mom->mom_diag_mediator::interface::post_data mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_diag_mediator::interface::post_data mom_ale::ale_regrid ALE_regrid mom_ale::ale_regrid->mom_diag_mediator::interface::post_data mom_ale::ale_remap_tracers ALE_remap_tracers mom_ale::ale_remap_tracers->mom_diag_mediator::interface::post_data mom_ale::ale_remap_velocities ALE_remap_velocities mom_ale::ale_remap_velocities->mom_diag_mediator::interface::post_data mom_ale::pre_ale_diagnostics pre_ALE_diagnostics mom_ale::pre_ale_diagnostics->mom_diag_mediator::interface::post_data mom_ale_sponge::apply_ale_sponge apply_ALE_sponge mom_ale_sponge::apply_ale_sponge->mom_diag_mediator::interface::post_data mom_barotropic::btstep btstep mom_barotropic::btstep->mom_diag_mediator::interface::post_data mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_diag_mediator::interface::post_data mom_bulk_mixed_layer::bulkmixedlayer bulkmixedlayer mom_bulk_mixed_layer::bulkmixedlayer->mom_diag_mediator::interface::post_data mom_cfc_cap::cfc_cap_column_physics CFC_cap_column_physics mom_cfc_cap::cfc_cap_column_physics->mom_diag_mediator::interface::post_data mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::interface::post_data mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_coriolisadv::coradcalc_block->mom_diag_mediator::interface::post_data mom_cvmix_conv::calculate_cvmix_conv calculate_CVMix_conv mom_cvmix_conv::calculate_cvmix_conv->mom_diag_mediator::interface::post_data mom_cvmix_kpp::kpp_calculate KPP_calculate mom_cvmix_kpp::kpp_calculate->mom_diag_mediator::interface::post_data mom_cvmix_kpp::kpp_compute_bld KPP_compute_BLD mom_cvmix_kpp::kpp_compute_bld->mom_diag_mediator::interface::post_data mom_cvmix_kpp::kpp_nonlocaltransport KPP_NonLocalTransport mom_cvmix_kpp::kpp_nonlocaltransport->mom_diag_mediator::interface::post_data mom_cvmix_shear::calculate_cvmix_shear calculate_CVMix_shear mom_cvmix_shear::calculate_cvmix_shear->mom_diag_mediator::interface::post_data mom_diabatic_aux::applyboundaryfluxesinout applyBoundaryFluxesInOut mom_diabatic_aux::applyboundaryfluxesinout->mom_diag_mediator::interface::post_data mom_diabatic_aux::set_pen_shortwave set_pen_shortwave mom_diabatic_aux::set_pen_shortwave->mom_diag_mediator::interface::post_data mom_diabatic_driver::diabatic diabatic mom_diabatic_driver::diabatic->mom_diag_mediator::interface::post_data mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diag_mediator::interface::post_data mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diag_mediator::interface::post_data mom_diabatic_driver::diagnose_boundary_forcing_tendency diagnose_boundary_forcing_tendency [private/internal] mom_diabatic_driver::diagnose_boundary_forcing_tendency->mom_diag_mediator::interface::post_data mom_diabatic_driver::diagnose_diabatic_diff_tendency diagnose_diabatic_diff_tendency [private/internal] mom_diabatic_driver::diagnose_diabatic_diff_tendency->mom_diag_mediator::interface::post_data mom_diabatic_driver::diagnose_frazil_tendency diagnose_frazil_tendency [private/internal] mom_diabatic_driver::diagnose_frazil_tendency->mom_diag_mediator::interface::post_data mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::interface::post_data mom_diag_mediator::post_data_3d_final post_data_3d_final mom_diag_mediator::post_data_3d_final->mom_diag_mediator::interface::post_data mom_diag_mediator::post_product_sum_u post_product_sum_u mom_diag_mediator::post_product_sum_u->mom_diag_mediator::interface::post_data mom_diag_mediator::post_product_sum_v post_product_sum_v mom_diag_mediator::post_product_sum_v->mom_diag_mediator::interface::post_data mom_diag_mediator::post_product_u post_product_u mom_diag_mediator::post_product_u->mom_diag_mediator::interface::post_data mom_diag_mediator::post_product_v post_product_v mom_diag_mediator::post_product_v->mom_diag_mediator::interface::post_data mom_diagnose_kdwork::kdwork_diagnostics KdWork_Diagnostics mom_diagnose_kdwork::kdwork_diagnostics->mom_diag_mediator::interface::post_data mom_diagnose_mld::diagnosemldbydensitydifference diagnoseMLDbyDensityDifference mom_diagnose_mld::diagnosemldbydensitydifference->mom_diag_mediator::interface::post_data mom_diagnose_mld::diagnosemldbyenergy diagnoseMLDbyEnergy mom_diagnose_mld::diagnosemldbyenergy->mom_diag_mediator::interface::post_data mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::interface::post_data mom_diagnostics::calculate_energy_diagnostics calculate_energy_diagnostics [private/internal] mom_diagnostics::calculate_energy_diagnostics->mom_diag_mediator::interface::post_data mom_diagnostics::calculate_vertical_integrals calculate_vertical_integrals [private/internal] mom_diagnostics::calculate_vertical_integrals->mom_diag_mediator::interface::post_data mom_diagnostics::post_surface_dyn_diags post_surface_dyn_diags mom_diagnostics::post_surface_dyn_diags->mom_diag_mediator::interface::post_data mom_diagnostics::post_surface_thermo_diags post_surface_thermo_diags mom_diagnostics::post_surface_thermo_diags->mom_diag_mediator::interface::post_data mom_diagnostics::post_transport_diagnostics post_transport_diagnostics mom_diagnostics::post_transport_diagnostics->mom_diag_mediator::interface::post_data mom_diagnostics::write_static_fields write_static_fields mom_diagnostics::write_static_fields->mom_diag_mediator::interface::post_data mom_diapyc_energy_req::diapyc_energy_req_calc diapyc_energy_req_calc mom_diapyc_energy_req::diapyc_energy_req_calc->mom_diag_mediator::interface::post_data mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_diag_mediator::interface::post_data mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::interface::post_data mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_diag_mediator::interface::post_data mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 step_MOM_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2->mom_diag_mediator::interface::post_data mom_energetic_pbl::energetic_pbl energetic_PBL mom_energetic_pbl::energetic_pbl->mom_diag_mediator::interface::post_data mom_entrain_diffusive::entrainment_diffusive entrainment_diffusive mom_entrain_diffusive::entrainment_diffusive->mom_diag_mediator::interface::post_data mom_forcing_type::forcing_diagnostics forcing_diagnostics mom_forcing_type::forcing_diagnostics->mom_diag_mediator::interface::post_data mom_forcing_type::mech_forcing_diags mech_forcing_diags mom_forcing_type::mech_forcing_diags->mom_diag_mediator::interface::post_data mom_geothermal::geothermal_entraining geothermal_entraining mom_geothermal::geothermal_entraining->mom_diag_mediator::interface::post_data mom_geothermal::geothermal_in_place geothermal_in_place mom_geothermal::geothermal_in_place->mom_diag_mediator::interface::post_data mom_geothermal::geothermal_init geothermal_init mom_geothermal::geothermal_init->mom_diag_mediator::interface::post_data mom_hor_bnd_diffusion::hor_bnd_diffusion hor_bnd_diffusion mom_hor_bnd_diffusion::hor_bnd_diffusion->mom_diag_mediator::interface::post_data mom_hor_visc::horizontal_viscosity_block horizontal_viscosity_block [private/internal] mom_hor_visc::horizontal_viscosity_block->mom_diag_mediator::interface::post_data mom_int_tide_input::set_int_tide_input set_int_tide_input mom_int_tide_input::set_int_tide_input->mom_diag_mediator::interface::post_data mom_interface_filter::interface_filter interface_filter mom_interface_filter::interface_filter->mom_diag_mediator::interface::post_data mom_internal_tides::internal_tides_init internal_tides_init mom_internal_tides::internal_tides_init->mom_diag_mediator::interface::post_data mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_diag_mediator::interface::post_data mom_kappa_shear::calc_kappa_shear_vertex Calc_kappa_shear_vertex mom_kappa_shear::calc_kappa_shear_vertex->mom_diag_mediator::interface::post_data mom_kappa_shear::calculate_kappa_shear Calculate_kappa_shear mom_kappa_shear::calculate_kappa_shear->mom_diag_mediator::interface::post_data mom_lateral_mixing_coeffs::calc_qg_leith_viscosity calc_QG_Leith_viscosity mom_lateral_mixing_coeffs::calc_qg_leith_viscosity->mom_diag_mediator::interface::post_data mom_lateral_mixing_coeffs::calc_resoln_function calc_resoln_function mom_lateral_mixing_coeffs::calc_resoln_function->mom_diag_mediator::interface::post_data mom_lateral_mixing_coeffs::calc_slope_functions calc_slope_functions mom_lateral_mixing_coeffs::calc_slope_functions->mom_diag_mediator::interface::post_data mom_lateral_mixing_coeffs::calc_sqg_struct calc_sqg_struct mom_lateral_mixing_coeffs::calc_sqg_struct->mom_diag_mediator::interface::post_data mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old calc_Visbeck_coeffs_old [private/internal] mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old->mom_diag_mediator::interface::post_data mom_meke::meke_equilibrium_restoring MEKE_equilibrium_restoring [private/internal] mom_meke::meke_equilibrium_restoring->mom_diag_mediator::interface::post_data mom_meke::meke_lengthscales MEKE_lengthScales [private/internal] mom_meke::meke_lengthscales->mom_diag_mediator::interface::post_data mom_meke::ml_meke_calculate_features ML_MEKE_calculate_features [private/internal] mom_meke::ml_meke_calculate_features->mom_diag_mediator::interface::post_data mom_meke::step_forward_meke step_forward_MEKE mom_meke::step_forward_meke->mom_diag_mediator::interface::post_data mom_meso_sfn_ann::meso_sfn_ann_compute meso_sfn_ANN_compute mom_meso_sfn_ann::meso_sfn_ann_compute->mom_diag_mediator::interface::post_data mom_mixed_layer_restrat::mixedlayer_restrat_bml mixedlayer_restrat_BML [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bml->mom_diag_mediator::interface::post_data mom_mixed_layer_restrat::mixedlayer_restrat_bodner mixedlayer_restrat_Bodner [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bodner->mom_diag_mediator::interface::post_data mom_mixed_layer_restrat::mixedlayer_restrat_om4 mixedlayer_restrat_OM4 [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_om4->mom_diag_mediator::interface::post_data mom_neutral_diffusion::neutral_diffusion neutral_diffusion mom_neutral_diffusion::neutral_diffusion->mom_diag_mediator::interface::post_data mom_neutral_diffusion::neutral_diffusion_calc_coeffs neutral_diffusion_calc_coeffs mom_neutral_diffusion::neutral_diffusion_calc_coeffs->mom_diag_mediator::interface::post_data mom_oda_driver_mod::apply_oda_tracer_increments apply_oda_tracer_increments mom_oda_driver_mod::apply_oda_tracer_increments->mom_diag_mediator::interface::post_data mom_oda_incupd::apply_oda_incupd apply_oda_incupd mom_oda_incupd::apply_oda_incupd->mom_diag_mediator::interface::post_data mom_offline_main::offline_redistribute_residual offline_redistribute_residual mom_offline_main::offline_redistribute_residual->mom_diag_mediator::interface::post_data mom_offline_main::post_offline_convergence_diags post_offline_convergence_diags mom_offline_main::post_offline_convergence_diags->mom_diag_mediator::interface::post_data mom_offline_main::update_offline_fields update_offline_fields mom_offline_main::update_offline_fields->mom_diag_mediator::interface::post_data mom_opacity::set_opacity set_opacity mom_opacity::set_opacity->mom_diag_mediator::interface::post_data mom_porous_barriers::porous_widths_interface porous_widths_interface mom_porous_barriers::porous_widths_interface->mom_diag_mediator::interface::post_data mom_porous_barriers::porous_widths_layer porous_widths_layer mom_porous_barriers::porous_widths_layer->mom_diag_mediator::interface::post_data mom_pressureforce_fv::pressureforce_fv_bouss PressureForce_FV_Bouss mom_pressureforce_fv::pressureforce_fv_bouss->mom_diag_mediator::interface::post_data mom_pressureforce_fv::pressureforce_fv_nonbouss PressureForce_FV_nonBouss mom_pressureforce_fv::pressureforce_fv_nonbouss->mom_diag_mediator::interface::post_data mom_pressureforce_mont::pressureforce_mont_bouss PressureForce_Mont_Bouss mom_pressureforce_mont::pressureforce_mont_bouss->mom_diag_mediator::interface::post_data mom_pressureforce_mont::pressureforce_mont_nonbouss PressureForce_Mont_nonBouss mom_pressureforce_mont::pressureforce_mont_nonbouss->mom_diag_mediator::interface::post_data mom_regularize_layers::regularize_surface regularize_surface [private/internal] mom_regularize_layers::regularize_surface->mom_diag_mediator::interface::post_data mom_set_diffusivity::set_diffusivity set_diffusivity mom_set_diffusivity::set_diffusivity->mom_diag_mediator::interface::post_data mom_set_visc::set_viscous_bbl set_viscous_BBL mom_set_visc::set_viscous_bbl->mom_diag_mediator::interface::post_data mom_set_visc::set_viscous_ml set_viscous_ML mom_set_visc::set_viscous_ml->mom_diag_mediator::interface::post_data mom_sponge::apply_sponge apply_sponge mom_sponge::apply_sponge->mom_diag_mediator::interface::post_data mom_stoch_eos::post_stoch_eos_diags post_stoch_EOS_diags mom_stoch_eos::post_stoch_eos_diags->mom_diag_mediator::interface::post_data mom_stochastics::apply_skeb apply_skeb mom_stochastics::apply_skeb->mom_diag_mediator::interface::post_data mom_stochastics::stochastics_init stochastics_init mom_stochastics::stochastics_init->mom_diag_mediator::interface::post_data mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::interface::post_data mom_thickness_diffuse::thickness_diffuse_full thickness_diffuse_full [private/internal] mom_thickness_diffuse::thickness_diffuse_full->mom_diag_mediator::interface::post_data mom_tidal_mixing::post_tidal_diagnostics post_tidal_diagnostics mom_tidal_mixing::post_tidal_diagnostics->mom_diag_mediator::interface::post_data mom_tracer_hor_diff::tracer_hordiff tracer_hordiff mom_tracer_hor_diff::tracer_hordiff->mom_diag_mediator::interface::post_data mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync mom_tracer_registry::post_tracer_diagnostics_at_sync->mom_diag_mediator::interface::post_data mom_tracer_registry::post_tracer_integral_diagnostics post_tracer_integral_diagnostics mom_tracer_registry::post_tracer_integral_diagnostics->mom_diag_mediator::interface::post_data mom_tracer_registry::post_tracer_transport_diagnostics post_tracer_transport_diagnostics mom_tracer_registry::post_tracer_transport_diagnostics->mom_diag_mediator::interface::post_data mom_tracer_registry::postale_tracer_diagnostics postALE_tracer_diagnostics mom_tracer_registry::postale_tracer_diagnostics->mom_diag_mediator::interface::post_data mom_vert_friction::vertfpmix vertFPmix mom_vert_friction::vertfpmix->mom_diag_mediator::interface::post_data mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::interface::post_data mom_vert_friction::vertvisc_coef vertvisc_coef mom_vert_friction::vertvisc_coef->mom_diag_mediator::interface::post_data mom_wave_interface::stokes_pgf Stokes_PGF mom_wave_interface::stokes_pgf->mom_diag_mediator::interface::post_data mom_wave_interface::update_stokes_drift Update_Stokes_Drift mom_wave_interface::update_stokes_drift->mom_diag_mediator::interface::post_data mom_zanna_bolton::compute_energy_source compute_energy_source [private/internal] mom_zanna_bolton::compute_energy_source->mom_diag_mediator::interface::post_data mom_zanna_bolton::compute_stress_divergence compute_stress_divergence [private/internal] mom_zanna_bolton::compute_stress_divergence->mom_diag_mediator::interface::post_data mom_zanna_bolton::zb2020_lateral_stress ZB2020_lateral_stress mom_zanna_bolton::zb2020_lateral_stress->mom_diag_mediator::interface::post_data pseudo_salt_tracer::pseudo_salt_tracer_column_physics pseudo_salt_tracer_column_physics pseudo_salt_tracer::pseudo_salt_tracer_column_physics->mom_diag_mediator::interface::post_data regional_dyes::dye_tracer_column_physics dye_tracer_column_physics regional_dyes::dye_tracer_column_physics->mom_diag_mediator::interface::post_data
Text view
interface register_scalar_field

Registers a non-array scalar diagnostic, returning an integer handle

Callers call graph
Callers of mom_diag_mediator::interface::register_scalar_field calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnose_kdwork MOM_diagnose_kdwork cluster_mom_diagnostics MOM_diagnostics cluster_mom_forcing_type MOM_forcing_type mom_diag_mediator::interface::register_scalar_field register_scalar_field (interface) mom_diagnose_kdwork::kdwork_init KdWork_init mom_diagnose_kdwork::kdwork_init->mom_diag_mediator::interface::register_scalar_field mom_diagnostics::mom_diagnostics_init MOM_diagnostics_init mom_diagnostics::mom_diagnostics_init->mom_diag_mediator::interface::register_scalar_field mom_diagnostics::register_surface_diags register_surface_diags mom_diagnostics::register_surface_diags->mom_diag_mediator::interface::register_scalar_field mom_forcing_type::register_forcing_type_diags register_forcing_type_diags mom_forcing_type::register_forcing_type_diags->mom_diag_mediator::interface::register_scalar_field
Text view
interface downsample_field

Down sample a field

Callers call graph
Callers of mom_diag_mediator::interface::downsample_field calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_diag_field_2d downsample_diag_field_2d [private/internal] mom_diag_mediator::interface::downsample_field downsample_field (interface) [private/internal] mom_diag_mediator::downsample_diag_field_2d->mom_diag_mediator::interface::downsample_field mom_diag_mediator::downsample_diag_field_3d downsample_diag_field_3d [private/internal] mom_diag_mediator::downsample_diag_field_3d->mom_diag_mediator::interface::downsample_field
Text view
interface downsample_mask

Down sample the mask of a field

Callers call graph
Callers of mom_diag_mediator::interface::downsample_mask calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_diag_masks_set downsample_diag_masks_set [private/internal] mom_diag_mediator::interface::downsample_mask downsample_mask (interface) [private/internal] mom_diag_mediator::downsample_diag_masks_set->mom_diag_mediator::interface::downsample_mask mom_diag_mediator::set_masks_for_axes_dsamp set_masks_for_axes_dsamp [private/internal] mom_diag_mediator::set_masks_for_axes_dsamp->mom_diag_mediator::interface::downsample_mask
Text view
interface downsample_diag_field

Down sample a diagnostic field

Callers call graph
Callers of mom_diag_mediator::interface::downsample_diag_field calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::downsample_diag_field downsample_diag_field (interface) [private/internal] mom_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_diag_mediator::post_data_2d_low->mom_diag_mediator::interface::downsample_diag_field mom_diag_mediator::post_data_3d_low post_data_3d_low [private/internal] mom_diag_mediator::post_data_3d_low->mom_diag_mediator::interface::downsample_diag_field
Text view

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
Callees of mom_diag_mediator::set_axes_info calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap mom_diag_manager_infra::mom_diag_axis_init MOM_diag_axis_init mom_diag_mediator::define_axes_group define_axes_group mom_diag_mediator::diag_grid_storage_init diag_grid_storage_init mom_diag_mediator::set_axes_info set_axes_info 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_dsamp set_axes_info_dsamp [private/internal] mom_diag_mediator::set_axes_info->mom_diag_mediator::set_axes_info_dsamp mom_diag_mediator::set_piecemeal_extents set_piecemeal_extents mom_diag_mediator::set_axes_info->mom_diag_mediator::set_piecemeal_extents mom_diag_remap::diag_remap_axes_configured diag_remap_axes_configured mom_diag_mediator::set_axes_info->mom_diag_remap::diag_remap_axes_configured mom_diag_remap::diag_remap_configure_axes diag_remap_configure_axes mom_diag_mediator::set_axes_info->mom_diag_remap::diag_remap_configure_axes mom_diag_remap::diag_remap_get_axes_info diag_remap_get_axes_info mom_diag_mediator::set_axes_info->mom_diag_remap::diag_remap_get_axes_info
Text view
Callers call graph
Callers of mom_diag_mediator::set_axes_info calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::set_axes_info set_axes_info mom::initialize_mom->mom_diag_mediator::set_axes_info
Text view

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
Callees of mom_diag_mediator::set_axes_info_dsamp calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap mom_diag_manager_infra::mom_diag_axis_init MOM_diag_axis_init mom_diag_mediator::define_axes_group_dsamp define_axes_group_dsamp [private/internal] mom_diag_mediator::set_axes_info_dsamp set_axes_info_dsamp [private/internal] 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_remap::diag_remap_axes_configured diag_remap_axes_configured mom_diag_mediator::set_axes_info_dsamp->mom_diag_remap::diag_remap_axes_configured mom_diag_remap::diag_remap_get_axes_info diag_remap_get_axes_info mom_diag_mediator::set_axes_info_dsamp->mom_diag_remap::diag_remap_get_axes_info
Text view
Callers call graph
Callers of mom_diag_mediator::set_axes_info_dsamp calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::set_axes_info set_axes_info mom_diag_mediator::set_axes_info_dsamp set_axes_info_dsamp [private/internal] mom_diag_mediator::set_axes_info->mom_diag_mediator::set_axes_info_dsamp
Text view
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
Callees of mom_diag_mediator::set_masks_for_axes calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_error_handler MOM_error_handler mom_diag_mediator::set_masks_for_axes set_masks_for_axes mom_diag_mediator::set_masks_for_axes_dsamp set_masks_for_axes_dsamp [private/internal] mom_diag_mediator::set_masks_for_axes->mom_diag_mediator::set_masks_for_axes_dsamp mom_diag_remap::diag_remap_axes_configured diag_remap_axes_configured mom_diag_mediator::set_masks_for_axes->mom_diag_remap::diag_remap_axes_configured mom_diag_remap::diag_remap_calc_hmask diag_remap_calc_hmask mom_diag_mediator::set_masks_for_axes->mom_diag_remap::diag_remap_calc_hmask mom_error_handler::assert assert mom_diag_mediator::set_masks_for_axes->mom_error_handler::assert
Text view
Callers call graph
Callers of mom_diag_mediator::set_masks_for_axes calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::set_masks_for_axes set_masks_for_axes mom::initialize_mom->mom_diag_mediator::set_masks_for_axes
Text view

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
Callees of mom_diag_mediator::set_masks_for_axes_dsamp calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::downsample_mask downsample_mask (interface) [private/internal] mom_diag_mediator::set_masks_for_axes_dsamp set_masks_for_axes_dsamp [private/internal] mom_diag_mediator::set_masks_for_axes_dsamp->mom_diag_mediator::interface::downsample_mask mom_diag_mediator::xyz_method xyz_method [private/internal] mom_diag_mediator::set_masks_for_axes_dsamp->mom_diag_mediator::xyz_method
Text view
Callers call graph
Callers of mom_diag_mediator::set_masks_for_axes_dsamp calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::set_masks_for_axes set_masks_for_axes mom_diag_mediator::set_masks_for_axes_dsamp set_masks_for_axes_dsamp [private/internal] mom_diag_mediator::set_masks_for_axes->mom_diag_mediator::set_masks_for_axes_dsamp
Text view
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
Callers of mom_diag_mediator::diag_register_area_ids calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics mom_diag_mediator::diag_register_area_ids diag_register_area_ids mom_diagnostics::write_static_fields write_static_fields mom_diagnostics::write_static_fields->mom_diag_mediator::diag_register_area_ids
Text view
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
Callees of mom_diag_mediator::register_cell_measure calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_associate_volume_cell_measure diag_associate_volume_cell_measure mom_diag_mediator::register_cell_measure register_cell_measure mom_diag_mediator::register_cell_measure->mom_diag_mediator::diag_associate_volume_cell_measure mom_diag_mediator::register_diag_field register_diag_field mom_diag_mediator::register_cell_measure->mom_diag_mediator::register_diag_field
Text view
Callers call graph
Callers of mom_diag_mediator::register_cell_measure calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::register_cell_measure register_cell_measure mom::initialize_mom->mom_diag_mediator::register_cell_measure
Text view
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
Callers of mom_diag_mediator::diag_associate_volume_cell_measure calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_associate_volume_cell_measure diag_associate_volume_cell_measure mom_diag_mediator::register_cell_measure register_cell_measure mom_diag_mediator::register_cell_measure->mom_diag_mediator::diag_associate_volume_cell_measure
Text view
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
Callers of mom_diag_mediator::diag_get_volume_cell_measure_dm_id calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics mom_diag_mediator::diag_get_volume_cell_measure_dm_id diag_get_volume_cell_measure_dm_id mom_diagnostics::mom_diagnostics_init MOM_diagnostics_init mom_diagnostics::mom_diagnostics_init->mom_diag_mediator::diag_get_volume_cell_measure_dm_id
Text view
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
Callees of mom_diag_mediator::define_axes_group calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_string_functions MOM_string_functions mom_diag_mediator::define_axes_group define_axes_group mom_error_handler::mom_error MOM_error mom_diag_mediator::define_axes_group->mom_error_handler::mom_error mom_string_functions::ints_to_string ints_to_string mom_diag_mediator::define_axes_group->mom_string_functions::ints_to_string
Text view
Callers call graph
Callers of mom_diag_mediator::define_axes_group calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_internal_tides MOM_internal_tides mom_diag_mediator::define_axes_group define_axes_group mom_diag_mediator::set_axes_info set_axes_info mom_diag_mediator::set_axes_info->mom_diag_mediator::define_axes_group mom_internal_tides::internal_tides_init internal_tides_init mom_internal_tides::internal_tides_init->mom_diag_mediator::define_axes_group
Text view
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
Callees of mom_diag_mediator::define_axes_group_dsamp calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_string_functions MOM_string_functions mom_diag_mediator::define_axes_group_dsamp define_axes_group_dsamp [private/internal] mom_error_handler::mom_error MOM_error mom_diag_mediator::define_axes_group_dsamp->mom_error_handler::mom_error mom_string_functions::ints_to_string ints_to_string mom_diag_mediator::define_axes_group_dsamp->mom_string_functions::ints_to_string
Text view
Callers call graph
Callers of mom_diag_mediator::define_axes_group_dsamp calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::define_axes_group_dsamp define_axes_group_dsamp [private/internal] mom_diag_mediator::set_axes_info_dsamp set_axes_info_dsamp [private/internal] mom_diag_mediator::set_axes_info_dsamp->mom_diag_mediator::define_axes_group_dsamp
Text view
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
Callees of mom_diag_mediator::post_data_0d calls cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_checksums::chksum0 chksum0 mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_manager_infra::interface::send_data_infra send_data_infra (interface) mom_diag_mediator::post_data_0d post_data_0d [private/internal] mom_diag_mediator::post_data_0d->mom_checksums::chksum0 mom_diag_mediator::post_data_0d->mom_cpu_clock_infra::cpu_clock_begin mom_diag_mediator::post_data_0d->mom_cpu_clock_infra::cpu_clock_end mom_diag_mediator::post_data_0d->mom_diag_manager_infra::interface::send_data_infra mom_error_handler::assert assert mom_diag_mediator::post_data_0d->mom_error_handler::assert
Text view

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
Callees of mom_diag_mediator::post_data_1d_k calls cluster_mom_checksums MOM_checksums cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_checksums::zchksum zchksum mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_manager_infra::interface::send_data_infra send_data_infra (interface) mom_diag_mediator::post_data_1d_k post_data_1d_k mom_diag_mediator::post_data_1d_k->mom_checksums::zchksum mom_diag_mediator::post_data_1d_k->mom_cpu_clock_infra::cpu_clock_begin mom_diag_mediator::post_data_1d_k->mom_cpu_clock_infra::cpu_clock_end mom_diag_mediator::post_data_1d_k->mom_diag_manager_infra::interface::send_data_infra mom_error_handler::assert assert mom_diag_mediator::post_data_1d_k->mom_error_handler::assert
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]

Callees call graph
Callees of mom_diag_mediator::post_data_2d calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_mediator::post_data_2d post_data_2d [private/internal] mom_diag_mediator::post_data_2d->mom_cpu_clock_infra::cpu_clock_begin mom_diag_mediator::post_data_2d->mom_cpu_clock_infra::cpu_clock_end mom_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_diag_mediator::post_data_2d->mom_diag_mediator::post_data_2d_low mom_error_handler::assert assert mom_diag_mediator::post_data_2d->mom_error_handler::assert
Text view
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
Callees of mom_diag_mediator::post_data_2d_low calls cluster_mom_checksums MOM_checksums cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_checksums::interface::bchksum Bchksum (interface) mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uchksum uchksum (interface) mom_checksums::interface::vchksum vchksum (interface) mom_diag_manager_infra::interface::send_data_infra send_data_infra (interface) mom_diag_mediator::downsample_field_2d downsample_field_2d [private/internal] mom_diag_mediator::interface::downsample_diag_field downsample_diag_field (interface) [private/internal] mom_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] 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_error_handler::assert assert mom_diag_mediator::post_data_2d_low->mom_error_handler::assert mom_error_handler::mom_error MOM_error mom_diag_mediator::post_data_2d_low->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::post_data_2d_low calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::post_data_2d post_data_2d [private/internal] mom_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_diag_mediator::post_data_2d->mom_diag_mediator::post_data_2d_low
Text view

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
Callees of mom_diag_mediator::post_data_3d calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_mediator::post_data_3d post_data_3d [private/internal] 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_low post_data_3d_low [private/internal] mom_diag_mediator::post_data_3d->mom_diag_mediator::post_data_3d_low mom_diag_remap::diag_remap_do_remap diag_remap_do_remap mom_diag_mediator::post_data_3d->mom_diag_remap::diag_remap_do_remap mom_diag_remap::vertically_interpolate_diag_field vertically_interpolate_diag_field mom_diag_mediator::post_data_3d->mom_diag_remap::vertically_interpolate_diag_field mom_diag_remap::vertically_reintegrate_diag_field vertically_reintegrate_diag_field mom_diag_mediator::post_data_3d->mom_diag_remap::vertically_reintegrate_diag_field mom_error_handler::assert assert mom_diag_mediator::post_data_3d->mom_error_handler::assert mom_error_handler::calltree_enter callTree_enter mom_diag_mediator::post_data_3d->mom_error_handler::calltree_enter mom_error_handler::calltree_leave callTree_leave mom_diag_mediator::post_data_3d->mom_error_handler::calltree_leave mom_error_handler::mom_error MOM_error mom_diag_mediator::post_data_3d->mom_error_handler::mom_error mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_diag_mediator::post_data_3d->mom_interface_heights::interface::thickness_to_dz
Text view
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
Callees of mom_diag_mediator::post_data_3d_low calls cluster_mom_checksums MOM_checksums cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_checksums::interface::bchksum Bchksum (interface) mom_checksums::interface::hchksum hchksum (interface) mom_checksums::interface::uchksum uchksum (interface) mom_checksums::interface::vchksum vchksum (interface) mom_diag_manager_infra::interface::send_data_infra send_data_infra (interface) mom_diag_mediator::downsample_field_3d downsample_field_3d [private/internal] mom_diag_mediator::interface::downsample_diag_field downsample_diag_field (interface) [private/internal] mom_diag_mediator::post_data_3d_low post_data_3d_low [private/internal] 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_xy_average post_xy_average [private/internal] mom_diag_mediator::post_data_3d_low->mom_diag_mediator::post_xy_average mom_error_handler::assert assert mom_diag_mediator::post_data_3d_low->mom_error_handler::assert mom_error_handler::mom_error MOM_error mom_diag_mediator::post_data_3d_low->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::post_data_3d_low calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::post_data_3d post_data_3d [private/internal] mom_diag_mediator::post_data_3d_low post_data_3d_low [private/internal] mom_diag_mediator::post_data_3d->mom_diag_mediator::post_data_3d_low
Text view

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
Callers of mom_diag_mediator::post_data_3d_by_column calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_energetic_pbl MOM_energetic_PBL mom_diag_mediator::post_data_3d_by_column post_data_3d_by_column mom_energetic_pbl::energetic_pbl energetic_PBL mom_energetic_pbl::energetic_pbl->mom_diag_mediator::post_data_3d_by_column
Text view
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
Callees of mom_diag_mediator::post_data_3d_final calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::post_data_3d_final post_data_3d_final mom_diag_mediator::post_data_3d_final->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_diag_mediator::post_data_3d_final calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_energetic_pbl MOM_energetic_PBL mom_diag_mediator::post_data_3d_final post_data_3d_final mom_energetic_pbl::energetic_pbl energetic_PBL mom_energetic_pbl::energetic_pbl->mom_diag_mediator::post_data_3d_final
Text view
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
Callees of mom_diag_mediator::post_product_u calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::post_product_u post_product_u mom_diag_mediator::post_product_u->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_diag_mediator::post_product_u calls cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_hor_visc MOM_hor_visc cluster_mom_vert_friction MOM_vert_friction mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_diag_mediator::post_product_u post_product_u mom_coriolisadv::coradcalc_block->mom_diag_mediator::post_product_u mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::post_product_u mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_diag_mediator::post_product_u mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::post_product_u mom_hor_visc::horizontal_viscosity_block horizontal_viscosity_block [private/internal] mom_hor_visc::horizontal_viscosity_block->mom_diag_mediator::post_product_u mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::post_product_u
Text view
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
Callees of mom_diag_mediator::post_product_sum_u calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::post_product_sum_u post_product_sum_u mom_diag_mediator::post_product_sum_u->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_diag_mediator::post_product_sum_u calls cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_hor_visc MOM_hor_visc cluster_mom_vert_friction MOM_vert_friction mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_diag_mediator::post_product_sum_u post_product_sum_u mom_coriolisadv::coradcalc_block->mom_diag_mediator::post_product_sum_u mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::post_product_sum_u mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::post_product_sum_u mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 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 step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::post_product_sum_u mom_hor_visc::horizontal_viscosity_block horizontal_viscosity_block [private/internal] mom_hor_visc::horizontal_viscosity_block->mom_diag_mediator::post_product_sum_u mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::post_product_sum_u
Text view
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
Callees of mom_diag_mediator::post_product_v calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::post_product_v post_product_v mom_diag_mediator::post_product_v->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_diag_mediator::post_product_v calls cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_hor_visc MOM_hor_visc cluster_mom_vert_friction MOM_vert_friction mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_diag_mediator::post_product_v post_product_v mom_coriolisadv::coradcalc_block->mom_diag_mediator::post_product_v mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::post_product_v mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_diag_mediator::post_product_v mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::post_product_v mom_hor_visc::horizontal_viscosity_block horizontal_viscosity_block [private/internal] mom_hor_visc::horizontal_viscosity_block->mom_diag_mediator::post_product_v mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::post_product_v
Text view
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
Callees of mom_diag_mediator::post_product_sum_v calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::interface::post_data post_data (interface) mom_diag_mediator::post_product_sum_v post_product_sum_v mom_diag_mediator::post_product_sum_v->mom_diag_mediator::interface::post_data
Text view
Callers call graph
Callers of mom_diag_mediator::post_product_sum_v calls cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_hor_visc MOM_hor_visc cluster_mom_vert_friction MOM_vert_friction mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_diag_mediator::post_product_sum_v post_product_sum_v mom_coriolisadv::coradcalc_block->mom_diag_mediator::post_product_sum_v mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::post_product_sum_v mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::post_product_sum_v mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 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 step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::post_product_sum_v mom_hor_visc::horizontal_viscosity_block horizontal_viscosity_block [private/internal] mom_hor_visc::horizontal_viscosity_block->mom_diag_mediator::post_product_sum_v mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::post_product_sum_v
Text view
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
Callees of mom_diag_mediator::post_xy_average calls cluster_mom_checksums MOM_checksums cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_error_handler MOM_error_handler mom_checksums::zchksum zchksum mom_diag_manager_infra::interface::send_data_infra send_data_infra (interface) mom_diag_mediator::post_xy_average post_xy_average [private/internal] mom_diag_mediator::post_xy_average->mom_checksums::zchksum mom_diag_mediator::post_xy_average->mom_diag_manager_infra::interface::send_data_infra mom_diag_remap::horizontally_average_diag_field horizontally_average_diag_field mom_diag_mediator::post_xy_average->mom_diag_remap::horizontally_average_diag_field mom_error_handler::assert assert mom_diag_mediator::post_xy_average->mom_error_handler::assert
Text view
Callers call graph
Callers of mom_diag_mediator::post_xy_average calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::post_data_3d_low post_data_3d_low [private/internal] mom_diag_mediator::post_xy_average post_xy_average [private/internal] mom_diag_mediator::post_data_3d_low->mom_diag_mediator::post_xy_average
Text view

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

Callers call graph
Callers of mom_diag_mediator::enable_averaging calls cluster_mom_barotropic MOM_barotropic cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_oda_driver_mod MOM_oda_driver_mod mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_diag_mediator::enable_averaging enable_averaging mom_barotropic::btstep_timeloop->mom_diag_mediator::enable_averaging mom_oda_driver_mod::apply_oda_tracer_increments apply_oda_tracer_increments mom_oda_driver_mod::apply_oda_tracer_increments->mom_diag_mediator::enable_averaging
Text view
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
Callers of mom_diag_mediator::enable_averages calls cluster_mom MOM cluster_mom_barotropic MOM_barotropic cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_forcing_type MOM_forcing_type cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_internal_tides MOM_internal_tides cluster_mom_stochastics MOM_stochastics mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_diag_mediator::enable_averages enable_averages mom::ale_regridding_and_remapping->mom_diag_mediator::enable_averages mom::step_mom step_MOM mom::step_mom->mom_diag_mediator::enable_averages mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_diag_mediator::enable_averages mom::step_mom_thermo step_MOM_thermo [private/internal] mom::step_mom_thermo->mom_diag_mediator::enable_averages mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom::step_mom_tracer_dyn->mom_diag_mediator::enable_averages mom::step_offline step_offline mom::step_offline->mom_diag_mediator::enable_averages mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_diag_mediator::enable_averages mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::enable_averages mom_diabatic_driver::diabatic diabatic mom_diabatic_driver::diabatic->mom_diag_mediator::enable_averages mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diag_mediator::enable_averages mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diag_mediator::enable_averages mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::enable_averages mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_diag_mediator::enable_averages mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::enable_averages mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_diag_mediator::enable_averages mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 step_MOM_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2->mom_diag_mediator::enable_averages mom_forcing_type::forcing_diagnostics forcing_diagnostics mom_forcing_type::forcing_diagnostics->mom_diag_mediator::enable_averages mom_forcing_type::mech_forcing_diags mech_forcing_diags mom_forcing_type::mech_forcing_diags->mom_diag_mediator::enable_averages mom_int_tide_input::set_int_tide_input set_int_tide_input mom_int_tide_input::set_int_tide_input->mom_diag_mediator::enable_averages mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_diag_mediator::enable_averages mom_stochastics::apply_skeb apply_skeb mom_stochastics::apply_skeb->mom_diag_mediator::enable_averages
Text view
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
Callers of mom_diag_mediator::disable_averaging calls cluster_mom MOM cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_forcing_type MOM_forcing_type cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_internal_tides MOM_internal_tides cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_stochastics MOM_stochastics mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_diag_mediator::disable_averaging disable_averaging mom::ale_regridding_and_remapping->mom_diag_mediator::disable_averaging mom::step_mom step_MOM mom::step_mom->mom_diag_mediator::disable_averaging mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_diag_mediator::disable_averaging mom::step_mom_thermo step_MOM_thermo [private/internal] mom::step_mom_thermo->mom_diag_mediator::disable_averaging mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom::step_mom_tracer_dyn->mom_diag_mediator::disable_averaging mom::step_offline step_offline mom::step_offline->mom_diag_mediator::disable_averaging mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::apply_ctrl_forcing->mom_diag_mediator::disable_averaging mom_diabatic_driver::diabatic diabatic mom_diabatic_driver::diabatic->mom_diag_mediator::disable_averaging mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diag_mediator::disable_averaging mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diag_mediator::disable_averaging mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::disable_averaging mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_diag_mediator::disable_averaging mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::disable_averaging mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_diag_mediator::disable_averaging mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 step_MOM_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2->mom_diag_mediator::disable_averaging mom_forcing_type::forcing_diagnostics forcing_diagnostics mom_forcing_type::forcing_diagnostics->mom_diag_mediator::disable_averaging mom_forcing_type::mech_forcing_diags mech_forcing_diags mom_forcing_type::mech_forcing_diags->mom_diag_mediator::disable_averaging mom_int_tide_input::set_int_tide_input set_int_tide_input mom_int_tide_input::set_int_tide_input->mom_diag_mediator::disable_averaging mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_diag_mediator::disable_averaging mom_oda_driver_mod::apply_oda_tracer_increments apply_oda_tracer_increments mom_oda_driver_mod::apply_oda_tracer_increments->mom_diag_mediator::disable_averaging mom_stochastics::apply_skeb apply_skeb mom_stochastics::apply_skeb->mom_diag_mediator::disable_averaging
Text view
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
Callers of mom_diag_mediator::query_averaging_enabled calls cluster_mom_ale MOM_ALE cluster_mom_barotropic MOM_barotropic cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_interface_filter MOM_interface_filter cluster_mom_internal_tides MOM_internal_tides cluster_mom_lateral_mixing_coeffs MOM_lateral_mixing_coeffs cluster_mom_mixed_layer_restrat MOM_mixed_layer_restrat cluster_mom_opacity MOM_opacity cluster_mom_sponge MOM_sponge cluster_mom_thickness_diffuse MOM_thickness_diffuse cluster_mom_vert_friction MOM_vert_friction mom_ale::ale_regrid ALE_regrid mom_diag_mediator::query_averaging_enabled query_averaging_enabled mom_ale::ale_regrid->mom_diag_mediator::query_averaging_enabled mom_barotropic::btstep btstep mom_barotropic::btstep->mom_diag_mediator::query_averaging_enabled mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_diag_mediator::query_averaging_enabled mom_coriolisadv::coradcalc_block CorAdCalc_block [private/internal] mom_coriolisadv::coradcalc_block->mom_diag_mediator::query_averaging_enabled mom_int_tide_input::set_int_tide_input set_int_tide_input mom_int_tide_input::set_int_tide_input->mom_diag_mediator::query_averaging_enabled mom_interface_filter::interface_filter interface_filter mom_interface_filter::interface_filter->mom_diag_mediator::query_averaging_enabled mom_internal_tides::propagate_int_tide propagate_int_tide mom_internal_tides::propagate_int_tide->mom_diag_mediator::query_averaging_enabled mom_lateral_mixing_coeffs::calc_resoln_function calc_resoln_function mom_lateral_mixing_coeffs::calc_resoln_function->mom_diag_mediator::query_averaging_enabled mom_lateral_mixing_coeffs::calc_slope_functions calc_slope_functions mom_lateral_mixing_coeffs::calc_slope_functions->mom_diag_mediator::query_averaging_enabled mom_lateral_mixing_coeffs::calc_sqg_struct calc_sqg_struct mom_lateral_mixing_coeffs::calc_sqg_struct->mom_diag_mediator::query_averaging_enabled mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old calc_Visbeck_coeffs_old [private/internal] mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old->mom_diag_mediator::query_averaging_enabled mom_mixed_layer_restrat::mixedlayer_restrat_bml mixedlayer_restrat_BML [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bml->mom_diag_mediator::query_averaging_enabled mom_mixed_layer_restrat::mixedlayer_restrat_bodner mixedlayer_restrat_Bodner [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bodner->mom_diag_mediator::query_averaging_enabled mom_mixed_layer_restrat::mixedlayer_restrat_om4 mixedlayer_restrat_OM4 [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_om4->mom_diag_mediator::query_averaging_enabled mom_opacity::set_opacity set_opacity mom_opacity::set_opacity->mom_diag_mediator::query_averaging_enabled mom_sponge::apply_sponge apply_sponge mom_sponge::apply_sponge->mom_diag_mediator::query_averaging_enabled mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::query_averaging_enabled mom_vert_friction::vertvisc vertvisc mom_vert_friction::vertvisc->mom_diag_mediator::query_averaging_enabled mom_vert_friction::vertvisc_coef vertvisc_coef mom_vert_friction::vertvisc_coef->mom_diag_mediator::query_averaging_enabled
Text view
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
Callers of mom_diag_mediator::get_diag_time_end calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics mom_diag_mediator::get_diag_time_end get_diag_time_end mom_diagnostics::post_surface_thermo_diags post_surface_thermo_diags mom_diagnostics::post_surface_thermo_diags->mom_diag_mediator::get_diag_time_end
Text view
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
Callees of mom_diag_mediator::register_diag_field calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_string_functions MOM_string_functions mom_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::register_diag_field register_diag_field 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_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::register_diag_field->mom_diag_mediator::register_diag_field_expand_cmor mom_diag_remap::diag_remap_set_active diag_remap_set_active mom_diag_mediator::register_diag_field->mom_diag_remap::diag_remap_set_active mom_error_handler::mom_error MOM_error mom_diag_mediator::register_diag_field->mom_error_handler::mom_error mom_error_infra::is_root_pe is_root_pe mom_diag_mediator::register_diag_field->mom_error_infra::is_root_pe mom_string_functions::trim_trailing_commas trim_trailing_commas mom_diag_mediator::register_diag_field->mom_string_functions::trim_trailing_commas
Text view
Callers call graph
Callers of mom_diag_mediator::register_diag_field calls cluster_marbl_tracers MARBL_tracers cluster_mom MOM cluster_mom_ale MOM_ALE cluster_mom_ale_sponge MOM_ALE_sponge cluster_mom_barotropic MOM_barotropic cluster_mom_bulk_mixed_layer MOM_bulk_mixed_layer cluster_mom_cfc_cap MOM_CFC_cap cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_coriolisadv MOM_CoriolisAdv cluster_mom_cvmix_conv MOM_CVMix_conv cluster_mom_cvmix_kpp MOM_CVMix_KPP cluster_mom_cvmix_shear MOM_CVMix_shear cluster_mom_diabatic_aux MOM_diabatic_aux cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnose_kdwork MOM_diagnose_kdwork cluster_mom_diagnostics MOM_diagnostics cluster_mom_diapyc_energy_req MOM_diapyc_energy_req cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_dynamics_unsplit_rk2 MOM_dynamics_unsplit_RK2 cluster_mom_energetic_pbl MOM_energetic_PBL cluster_mom_entrain_diffusive MOM_entrain_diffusive cluster_mom_forcing_type MOM_forcing_type cluster_mom_geothermal MOM_geothermal cluster_mom_hor_visc MOM_hor_visc cluster_mom_int_tide_input MOM_int_tide_input cluster_mom_interface_filter MOM_interface_filter cluster_mom_internal_tides MOM_internal_tides cluster_mom_kappa_shear MOM_kappa_shear cluster_mom_lateral_mixing_coeffs MOM_lateral_mixing_coeffs cluster_mom_meke MOM_MEKE cluster_mom_meso_sfn_ann MOM_meso_sfn_ANN cluster_mom_mixed_layer_restrat MOM_mixed_layer_restrat cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_oda_incupd MOM_oda_incupd cluster_mom_offline_main MOM_offline_main cluster_mom_opacity MOM_opacity cluster_mom_porous_barriers MOM_porous_barriers cluster_mom_pressureforce_fv MOM_PressureForce_FV cluster_mom_pressureforce_mont MOM_PressureForce_Mont cluster_mom_regularize_layers MOM_regularize_layers cluster_mom_set_diffusivity MOM_set_diffusivity cluster_mom_set_visc MOM_set_visc cluster_mom_sponge MOM_sponge cluster_mom_stoch_eos MOM_stoch_eos cluster_mom_stochastics MOM_stochastics cluster_mom_thickness_diffuse MOM_thickness_diffuse cluster_mom_tidal_mixing MOM_tidal_mixing cluster_mom_tracer_hor_diff MOM_tracer_hor_diff cluster_mom_tracer_registry MOM_tracer_registry cluster_mom_vert_friction MOM_vert_friction cluster_mom_wave_interface MOM_wave_interface cluster_mom_zanna_bolton MOM_Zanna_Bolton cluster_pseudo_salt_tracer pseudo_salt_tracer cluster_regional_dyes regional_dyes marbl_tracers::initialize_marbl_tracers initialize_MARBL_tracers mom_diag_mediator::register_diag_field register_diag_field marbl_tracers::initialize_marbl_tracers->mom_diag_mediator::register_diag_field marbl_tracers::register_marbl_diags register_MARBL_diags [private/internal] marbl_tracers::register_marbl_diags->mom_diag_mediator::register_diag_field mom::register_diags register_diags [private/internal] mom::register_diags->mom_diag_mediator::register_diag_field mom_ale::ale_register_diags ALE_register_diags mom_ale::ale_register_diags->mom_diag_mediator::register_diag_field mom_ale_sponge::init_ale_sponge_diags init_ALE_sponge_diags mom_ale_sponge::init_ale_sponge_diags->mom_diag_mediator::register_diag_field mom_barotropic::barotropic_init barotropic_init mom_barotropic::barotropic_init->mom_diag_mediator::register_diag_field mom_bulk_mixed_layer::bulkmixedlayer_init bulkmixedlayer_init mom_bulk_mixed_layer::bulkmixedlayer_init->mom_diag_mediator::register_diag_field mom_cfc_cap::initialize_cfc_cap initialize_CFC_cap mom_cfc_cap::initialize_cfc_cap->mom_diag_mediator::register_diag_field mom_controlled_forcing::controlled_forcing_init controlled_forcing_init mom_controlled_forcing::controlled_forcing_init->mom_diag_mediator::register_diag_field mom_coriolisadv::coriolisadv_init CoriolisAdv_init mom_coriolisadv::coriolisadv_init->mom_diag_mediator::register_diag_field mom_cvmix_conv::cvmix_conv_init CVMix_conv_init mom_cvmix_conv::cvmix_conv_init->mom_diag_mediator::register_diag_field mom_cvmix_kpp::kpp_init KPP_init mom_cvmix_kpp::kpp_init->mom_diag_mediator::register_diag_field mom_cvmix_shear::cvmix_shear_init CVMix_shear_init mom_cvmix_shear::cvmix_shear_init->mom_diag_mediator::register_diag_field mom_diabatic_aux::diabatic_aux_init diabatic_aux_init mom_diabatic_aux::diabatic_aux_init->mom_diag_mediator::register_diag_field mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_diabatic_driver::diabatic_driver_init->mom_diag_mediator::register_diag_field mom_diag_mediator::ocean_register_diag ocean_register_diag mom_diag_mediator::ocean_register_diag->mom_diag_mediator::register_diag_field mom_diag_mediator::register_cell_measure register_cell_measure mom_diag_mediator::register_cell_measure->mom_diag_mediator::register_diag_field mom_diagnose_kdwork::kdwork_init KdWork_init mom_diagnose_kdwork::kdwork_init->mom_diag_mediator::register_diag_field mom_diagnostics::mom_diagnostics_init MOM_diagnostics_init mom_diagnostics::mom_diagnostics_init->mom_diag_mediator::register_diag_field mom_diagnostics::register_surface_diags register_surface_diags mom_diagnostics::register_surface_diags->mom_diag_mediator::register_diag_field mom_diagnostics::register_transport_diags register_transport_diags mom_diagnostics::register_transport_diags->mom_diag_mediator::register_diag_field mom_diapyc_energy_req::diapyc_energy_req_init diapyc_energy_req_init mom_diapyc_energy_req::diapyc_energy_req_init->mom_diag_mediator::register_diag_field mom_dynamics_split_rk2::initialize_dyn_split_rk2 initialize_dyn_split_RK2 mom_dynamics_split_rk2::initialize_dyn_split_rk2->mom_diag_mediator::register_diag_field mom_dynamics_split_rk2b::initialize_dyn_split_rk2b initialize_dyn_split_RK2b mom_dynamics_split_rk2b::initialize_dyn_split_rk2b->mom_diag_mediator::register_diag_field mom_dynamics_unsplit::initialize_dyn_unsplit initialize_dyn_unsplit mom_dynamics_unsplit::initialize_dyn_unsplit->mom_diag_mediator::register_diag_field mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2 initialize_dyn_unsplit_RK2 mom_dynamics_unsplit_rk2::initialize_dyn_unsplit_rk2->mom_diag_mediator::register_diag_field mom_energetic_pbl::energetic_pbl_init energetic_PBL_init mom_energetic_pbl::energetic_pbl_init->mom_diag_mediator::register_diag_field mom_entrain_diffusive::entrain_diffusive_init entrain_diffusive_init mom_entrain_diffusive::entrain_diffusive_init->mom_diag_mediator::register_diag_field mom_forcing_type::register_forcing_type_diags register_forcing_type_diags mom_forcing_type::register_forcing_type_diags->mom_diag_mediator::register_diag_field mom_geothermal::geothermal_init geothermal_init mom_geothermal::geothermal_init->mom_diag_mediator::register_diag_field mom_hor_visc::hor_visc_init hor_visc_init mom_hor_visc::hor_visc_init->mom_diag_mediator::register_diag_field mom_int_tide_input::int_tide_input_init int_tide_input_init mom_int_tide_input::int_tide_input_init->mom_diag_mediator::register_diag_field mom_interface_filter::interface_filter_init interface_filter_init mom_interface_filter::interface_filter_init->mom_diag_mediator::register_diag_field mom_internal_tides::internal_tides_init internal_tides_init mom_internal_tides::internal_tides_init->mom_diag_mediator::register_diag_field mom_kappa_shear::kappa_shear_init kappa_shear_init mom_kappa_shear::kappa_shear_init->mom_diag_mediator::register_diag_field mom_lateral_mixing_coeffs::varmix_init VarMix_init mom_lateral_mixing_coeffs::varmix_init->mom_diag_mediator::register_diag_field mom_meke::meke_init MEKE_init mom_meke::meke_init->mom_diag_mediator::register_diag_field mom_meke::ml_meke_init ML_MEKE_init [private/internal] mom_meke::ml_meke_init->mom_diag_mediator::register_diag_field mom_meso_sfn_ann::meso_sfn_ann_init meso_sfn_ANN_init mom_meso_sfn_ann::meso_sfn_ann_init->mom_diag_mediator::register_diag_field mom_mixed_layer_restrat::mixedlayer_restrat_init mixedlayer_restrat_init mom_mixed_layer_restrat::mixedlayer_restrat_init->mom_diag_mediator::register_diag_field mom_oda_driver_mod::init_oda init_oda mom_oda_driver_mod::init_oda->mom_diag_mediator::register_diag_field mom_oda_incupd::init_oda_incupd_diags init_oda_incupd_diags mom_oda_incupd::init_oda_incupd_diags->mom_diag_mediator::register_diag_field mom_offline_main::register_diags_offline_transport register_diags_offline_transport mom_offline_main::register_diags_offline_transport->mom_diag_mediator::register_diag_field mom_opacity::opacity_init opacity_init mom_opacity::opacity_init->mom_diag_mediator::register_diag_field mom_porous_barriers::porous_barriers_init porous_barriers_init mom_porous_barriers::porous_barriers_init->mom_diag_mediator::register_diag_field mom_pressureforce_fv::pressureforce_fv_init PressureForce_FV_init mom_pressureforce_fv::pressureforce_fv_init->mom_diag_mediator::register_diag_field mom_pressureforce_mont::pressureforce_mont_init PressureForce_Mont_init mom_pressureforce_mont::pressureforce_mont_init->mom_diag_mediator::register_diag_field mom_regularize_layers::regularize_layers_init regularize_layers_init mom_regularize_layers::regularize_layers_init->mom_diag_mediator::register_diag_field mom_set_diffusivity::set_diffusivity_init set_diffusivity_init mom_set_diffusivity::set_diffusivity_init->mom_diag_mediator::register_diag_field mom_set_visc::set_visc_init set_visc_init mom_set_visc::set_visc_init->mom_diag_mediator::register_diag_field mom_sponge::init_sponge_diags init_sponge_diags mom_sponge::init_sponge_diags->mom_diag_mediator::register_diag_field mom_stoch_eos::mom_stoch_eos_init MOM_stoch_eos_init mom_stoch_eos::mom_stoch_eos_init->mom_diag_mediator::register_diag_field mom_stochastics::stochastics_init stochastics_init mom_stochastics::stochastics_init->mom_diag_mediator::register_diag_field mom_thickness_diffuse::thickness_diffuse_init thickness_diffuse_init mom_thickness_diffuse::thickness_diffuse_init->mom_diag_mediator::register_diag_field mom_tidal_mixing::tidal_mixing_init tidal_mixing_init mom_tidal_mixing::tidal_mixing_init->mom_diag_mediator::register_diag_field mom_tracer_hor_diff::tracer_hor_diff_init tracer_hor_diff_init mom_tracer_hor_diff::tracer_hor_diff_init->mom_diag_mediator::register_diag_field mom_tracer_registry::register_tracer_diagnostics register_tracer_diagnostics mom_tracer_registry::register_tracer_diagnostics->mom_diag_mediator::register_diag_field mom_vert_friction::vertvisc_init vertvisc_init mom_vert_friction::vertvisc_init->mom_diag_mediator::register_diag_field mom_wave_interface::mom_wave_interface_init MOM_wave_interface_init mom_wave_interface::mom_wave_interface_init->mom_diag_mediator::register_diag_field mom_zanna_bolton::zb2020_init ZB2020_init mom_zanna_bolton::zb2020_init->mom_diag_mediator::register_diag_field pseudo_salt_tracer::initialize_pseudo_salt_tracer initialize_pseudo_salt_tracer pseudo_salt_tracer::initialize_pseudo_salt_tracer->mom_diag_mediator::register_diag_field regional_dyes::initialize_dye_tracer initialize_dye_tracer regional_dyes::initialize_dye_tracer->mom_diag_mediator::register_diag_field
Text view
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
Callees of mom_diag_mediator::register_diag_field_expand_cmor calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] 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::xyz_method xyz_method [private/internal] mom_diag_mediator::register_diag_field_expand_cmor->mom_diag_mediator::xyz_method
Text view
Callers call graph
Callers of mom_diag_mediator::register_diag_field_expand_cmor calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::register_diag_field register_diag_field mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::register_diag_field->mom_diag_mediator::register_diag_field_expand_cmor
Text view
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
Callees of mom_diag_mediator::register_diag_field_expand_axes calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator mom_diag_manager_infra::interface::register_diag_field_infra register_diag_field_infra (interface) mom_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_diag_mediator::register_diag_field_expand_axes->mom_diag_manager_infra::interface::register_diag_field_infra
Text view
Callers call graph
Callers of mom_diag_mediator::register_diag_field_expand_axes calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::register_diag_field_expand_cmor->mom_diag_mediator::register_diag_field_expand_axes
Text view
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
Callees of mom_diag_mediator::add_diag_to_list calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_diag_mediator::add_diag_to_list->mom_diag_mediator::alloc_diag_with_id mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::add_diag_to_list->mom_diag_mediator::get_new_diag_id mom_error_handler::assert assert mom_diag_mediator::add_diag_to_list->mom_error_handler::assert
Text view
Callers call graph
Callers of mom_diag_mediator::add_diag_to_list calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::register_diag_field_expand_cmor->mom_diag_mediator::add_diag_to_list
Text view
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.

Callees call graph
Callees of mom_diag_mediator::xyz_method calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::xyz_method xyz_method [private/internal] mom_error_handler::mom_error MOM_error mom_diag_mediator::xyz_method->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::xyz_method calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::xyz_method xyz_method [private/internal] mom_diag_mediator::register_diag_field_expand_cmor->mom_diag_mediator::xyz_method mom_diag_mediator::set_masks_for_axes_dsamp set_masks_for_axes_dsamp [private/internal] mom_diag_mediator::set_masks_for_axes_dsamp->mom_diag_mediator::xyz_method
Text view
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
Callees of mom_diag_mediator::attach_cell_methods calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_manager_infra::get_mom_diag_axis_name get_MOM_diag_axis_name mom_diag_manager_infra::interface::mom_diag_field_add_attribute MOM_diag_field_add_attribute (interface) mom_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_diag_mediator::attach_cell_methods->mom_diag_manager_infra::get_mom_diag_axis_name mom_diag_mediator::attach_cell_methods->mom_diag_manager_infra::interface::mom_diag_field_add_attribute mom_error_handler::mom_error MOM_error mom_diag_mediator::attach_cell_methods->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::attach_cell_methods calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_diag_mediator::register_diag_field register_diag_field mom_diag_mediator::register_diag_field->mom_diag_mediator::attach_cell_methods mom_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_diag_mediator::register_diag_field_expand_cmor->mom_diag_mediator::attach_cell_methods
Text view
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
Callees of mom_diag_mediator::register_scalar_field_axes calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::register_scalar_field_axes register_scalar_field_axes [private/internal] mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_diag_mediator::register_scalar_field_axes->mom_diag_mediator::register_scalar_field_cs
Text view
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
Callees of mom_diag_mediator::register_scalar_field_cs calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra mom_diag_manager_infra::interface::register_diag_field_infra register_diag_field_infra (interface) mom_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] 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_error_handler::assert assert mom_diag_mediator::register_scalar_field_cs->mom_error_handler::assert mom_error_infra::is_root_pe is_root_pe mom_diag_mediator::register_scalar_field_cs->mom_error_infra::is_root_pe
Text view
Callers call graph
Callers of mom_diag_mediator::register_scalar_field_cs calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::register_scalar_field_axes register_scalar_field_axes [private/internal] mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_diag_mediator::register_scalar_field_axes->mom_diag_mediator::register_scalar_field_cs
Text view
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
Callees of mom_diag_mediator::register_static_field calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_string_functions MOM_string_functions mom_diag_manager_infra::get_mom_diag_axis_name get_MOM_diag_axis_name mom_diag_manager_infra::interface::mom_diag_field_add_attribute MOM_diag_field_add_attribute (interface) mom_diag_manager_infra::register_static_field_infra register_static_field_infra mom_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::register_static_field register_static_field 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_error_handler::assert assert mom_diag_mediator::register_static_field->mom_error_handler::assert mom_error_infra::is_root_pe is_root_pe mom_diag_mediator::register_static_field->mom_error_infra::is_root_pe mom_string_functions::trim_trailing_commas trim_trailing_commas mom_diag_mediator::register_static_field->mom_string_functions::trim_trailing_commas
Text view
Callers call graph
Callers of mom_diag_mediator::register_static_field calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_geothermal MOM_geothermal cluster_mom_stochastics MOM_stochastics mom_diag_mediator::register_static_field register_static_field mom_diagnostics::write_static_fields write_static_fields mom_diagnostics::write_static_fields->mom_diag_mediator::register_static_field mom_geothermal::geothermal_init geothermal_init mom_geothermal::geothermal_init->mom_diag_mediator::register_static_field mom_stochastics::stochastics_init stochastics_init mom_stochastics::stochastics_init->mom_diag_mediator::register_static_field
Text view
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
Callers of mom_diag_mediator::describe_option calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::describe_option describe_option [private/internal] mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::log_available_diag->mom_diag_mediator::describe_option
Text view
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

Callees call graph
Callees of mom_diag_mediator::ocean_register_diag calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io mom_diag_mediator::ocean_register_diag ocean_register_diag mom_diag_mediator::register_diag_field register_diag_field mom_diag_mediator::ocean_register_diag->mom_diag_mediator::register_diag_field mom_error_handler::mom_error MOM_error mom_diag_mediator::ocean_register_diag->mom_error_handler::mom_error mom_io::query_vardesc query_vardesc mom_diag_mediator::ocean_register_diag->mom_io::query_vardesc
Text view

subroutine diag_mediator_infrastructure_init(err_msg)

Parameters
  • err_msg [out]

    An error message

Callees call graph
Callees of mom_diag_mediator::diag_mediator_infrastructure_init calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator mom_diag_manager_infra::mom_diag_manager_init MOM_diag_manager_init mom_diag_mediator::diag_mediator_infrastructure_init diag_mediator_infrastructure_init mom_diag_mediator::diag_mediator_infrastructure_init->mom_diag_manager_infra::mom_diag_manager_init
Text view
Callers call graph
Callers of mom_diag_mediator::diag_mediator_infrastructure_init calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_mediator_infrastructure_init diag_mediator_infrastructure_init mom::initialize_mom->mom_diag_mediator::diag_mediator_infrastructure_init
Text view
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
Callees of mom_diag_mediator::diag_mediator_init calls cluster_mom_coms_infra MOM_coms_infra cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_file_parser MOM_file_parser cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions mom_coms_infra::pe_here PE_here mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_diag_mediator::diag_mediator_init diag_mediator_init 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::initialize_diag_type initialize_diag_type [private/internal] mom_diag_mediator::diag_mediator_init->mom_diag_mediator::initialize_diag_type mom_diag_remap::diag_remap_init diag_remap_init mom_diag_mediator::diag_mediator_init->mom_diag_remap::diag_remap_init mom_domain_infra::interface::clone_mom_domain clone_MOM_domain (interface) mom_diag_mediator::diag_mediator_init->mom_domain_infra::interface::clone_mom_domain mom_domain_infra::interface::get_domain_extent get_domain_extent (interface) mom_diag_mediator::diag_mediator_init->mom_domain_infra::interface::get_domain_extent mom_error_handler::calltree_showquery callTree_showQuery mom_diag_mediator::diag_mediator_init->mom_error_handler::calltree_showquery mom_error_handler::mom_error MOM_error mom_diag_mediator::diag_mediator_init->mom_error_handler::mom_error mom_error_infra::is_root_pe is_root_pe mom_diag_mediator::diag_mediator_init->mom_error_infra::is_root_pe mom_file_parser::interface::get_param get_param (interface) mom_diag_mediator::diag_mediator_init->mom_file_parser::interface::get_param mom_file_parser::interface::log_version log_version (interface) mom_diag_mediator::diag_mediator_init->mom_file_parser::interface::log_version mom_io::get_filename_appendix get_filename_appendix mom_diag_mediator::diag_mediator_init->mom_io::get_filename_appendix mom_string_functions::slasher slasher mom_diag_mediator::diag_mediator_init->mom_string_functions::slasher
Text view
Callers call graph
Callers of mom_diag_mediator::diag_mediator_init calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_mediator_init diag_mediator_init mom::initialize_mom->mom_diag_mediator::diag_mediator_init
Text view
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

Callers call graph
Callers of mom_diag_mediator::diag_mediator_set_obc_info calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_mediator_set_obc_info diag_mediator_set_OBC_info mom::initialize_mom->mom_diag_mediator::diag_mediator_set_obc_info
Text view
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

Callers call graph
Callers of mom_diag_mediator::diag_set_state_ptrs calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_set_state_ptrs diag_set_state_ptrs mom::initialize_mom->mom_diag_mediator::diag_set_state_ptrs
Text view
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
Callees of mom_diag_mediator::diag_update_remap_grids calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap cluster_mom_error_handler MOM_error_handler cluster_mom_interface_heights MOM_interface_heights mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_diag_mediator::diag_update_remap_grids diag_update_remap_grids 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_remap::diag_remap_update diag_remap_update mom_diag_mediator::diag_update_remap_grids->mom_diag_remap::diag_remap_update mom_error_handler::calltree_enter callTree_enter mom_diag_mediator::diag_update_remap_grids->mom_error_handler::calltree_enter mom_error_handler::calltree_leave callTree_leave mom_diag_mediator::diag_update_remap_grids->mom_error_handler::calltree_leave mom_error_handler::mom_error MOM_error mom_diag_mediator::diag_update_remap_grids->mom_error_handler::mom_error mom_interface_heights::interface::thickness_to_dz thickness_to_dz (interface) mom_diag_mediator::diag_update_remap_grids->mom_interface_heights::interface::thickness_to_dz
Text view
Callers call graph
Callers of mom_diag_mediator::diag_update_remap_grids calls cluster_mom MOM cluster_mom_bulk_mixed_layer MOM_bulk_mixed_layer cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_mixed_layer_restrat MOM_mixed_layer_restrat cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_thickness_diffuse MOM_thickness_diffuse mom::ale_regridding_and_remapping ALE_regridding_and_remapping [private/internal] mom_diag_mediator::diag_update_remap_grids diag_update_remap_grids mom::ale_regridding_and_remapping->mom_diag_mediator::diag_update_remap_grids mom::initialize_mom initialize_MOM mom::initialize_mom->mom_diag_mediator::diag_update_remap_grids mom::step_mom step_MOM mom::step_mom->mom_diag_mediator::diag_update_remap_grids mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_diag_mediator::diag_update_remap_grids mom::step_mom_tracer_dyn step_MOM_tracer_dyn [private/internal] mom::step_mom_tracer_dyn->mom_diag_mediator::diag_update_remap_grids mom_bulk_mixed_layer::bulkmixedlayer bulkmixedlayer mom_bulk_mixed_layer::bulkmixedlayer->mom_diag_mediator::diag_update_remap_grids mom_diabatic_driver::diabatic_ale diabatic_ALE [private/internal] mom_diabatic_driver::diabatic_ale->mom_diag_mediator::diag_update_remap_grids mom_diabatic_driver::diabatic_ale_legacy diabatic_ALE_legacy [private/internal] mom_diabatic_driver::diabatic_ale_legacy->mom_diag_mediator::diag_update_remap_grids mom_diabatic_driver::layered_diabatic layered_diabatic [private/internal] mom_diabatic_driver::layered_diabatic->mom_diag_mediator::diag_update_remap_grids mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 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 step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_diag_mediator::diag_update_remap_grids mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_diag_mediator::diag_update_remap_grids mom_mixed_layer_restrat::mixedlayer_restrat_bml mixedlayer_restrat_BML [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bml->mom_diag_mediator::diag_update_remap_grids mom_mixed_layer_restrat::mixedlayer_restrat_bodner mixedlayer_restrat_Bodner [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_bodner->mom_diag_mediator::diag_update_remap_grids mom_mixed_layer_restrat::mixedlayer_restrat_om4 mixedlayer_restrat_OM4 [private/internal] mom_mixed_layer_restrat::mixedlayer_restrat_om4->mom_diag_mediator::diag_update_remap_grids mom_oda_driver_mod::apply_oda_tracer_increments apply_oda_tracer_increments mom_oda_driver_mod::apply_oda_tracer_increments->mom_diag_mediator::diag_update_remap_grids mom_thickness_diffuse::thickness_diffuse thickness_diffuse mom_thickness_diffuse::thickness_diffuse->mom_diag_mediator::diag_update_remap_grids
Text view
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
Callees of mom_diag_mediator::diag_masks_set calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_masks_set diag_masks_set mom_diag_mediator::downsample_diag_masks_set downsample_diag_masks_set [private/internal] mom_diag_mediator::diag_masks_set->mom_diag_mediator::downsample_diag_masks_set
Text view
Callers call graph
Callers of mom_diag_mediator::diag_masks_set calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_masks_set diag_masks_set mom::initialize_mom->mom_diag_mediator::diag_masks_set
Text view
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
Callers of mom_diag_mediator::set_piecemeal_extents calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::set_axes_info set_axes_info mom_diag_mediator::set_piecemeal_extents set_piecemeal_extents mom_diag_mediator::set_axes_info->mom_diag_mediator::set_piecemeal_extents
Text view

subroutine diag_mediator_close_registration(diag_CS)

Parameters
  • diag_CS [inout]

    Structure used to regulate diagnostic output

Callees call graph
Callees of mom_diag_mediator::diag_mediator_close_registration calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap mom_diag_mediator::diag_mediator_close_registration diag_mediator_close_registration mom_diag_remap::diag_remap_diag_registration_closed diag_remap_diag_registration_closed mom_diag_mediator::diag_mediator_close_registration->mom_diag_remap::diag_remap_diag_registration_closed
Text view
Callers call graph
Callers of mom_diag_mediator::diag_mediator_close_registration calls cluster_External External cluster_mom_diag_mediator MOM_diag_mediator External::mom6 MOM6 mom_diag_mediator::diag_mediator_close_registration diag_mediator_close_registration External::mom6->mom_diag_mediator::diag_mediator_close_registration
Text view

subroutine axes_grp_end(axes)

Parameters
  • axes [inout]

    Axes group to be destroyed

Callers call graph
Callers of mom_diag_mediator::axes_grp_end calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::axes_grp_end axes_grp_end [private/internal] mom_diag_mediator::diag_mediator_end diag_mediator_end mom_diag_mediator::diag_mediator_end->mom_diag_mediator::axes_grp_end
Text view

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
Callees of mom_diag_mediator::diag_mediator_end calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diag_remap MOM_diag_remap mom_diag_manager_infra::mom_diag_manager_end MOM_diag_manager_end mom_diag_mediator::axes_grp_end axes_grp_end [private/internal] mom_diag_mediator::diag_grid_storage_end diag_grid_storage_end mom_diag_mediator::diag_mediator_end diag_mediator_end 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_remap::diag_remap_end diag_remap_end mom_diag_mediator::diag_mediator_end->mom_diag_remap::diag_remap_end
Text view
Callers call graph
Callers of mom_diag_mediator::diag_mediator_end calls cluster_External External cluster_mom_diag_mediator MOM_diag_mediator External::mom6 MOM6 mom_diag_mediator::diag_mediator_end diag_mediator_end External::mom6->mom_diag_mediator::diag_mediator_end
Text view
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
Callees of mom_diag_mediator::get_new_diag_id calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::initialize_diag_type initialize_diag_type [private/internal] mom_diag_mediator::get_new_diag_id->mom_diag_mediator::initialize_diag_type mom_error_handler::assert assert mom_diag_mediator::get_new_diag_id->mom_error_handler::assert
Text view
Callers call graph
Callers of mom_diag_mediator::get_new_diag_id calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::add_diag_to_list->mom_diag_mediator::get_new_diag_id mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_diag_mediator::register_scalar_field_cs->mom_diag_mediator::get_new_diag_id mom_diag_mediator::register_static_field register_static_field mom_diag_mediator::register_static_field->mom_diag_mediator::get_new_diag_id
Text view
subroutine initialize_diag_type(diag)

Initializes a diag_type (used after allocating new memory)

Parameters
  • diag [inout]

    diag_type to be initialized

Callers call graph
Callers of mom_diag_mediator::initialize_diag_type calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_mediator_init diag_mediator_init mom_diag_mediator::initialize_diag_type initialize_diag_type [private/internal] mom_diag_mediator::diag_mediator_init->mom_diag_mediator::initialize_diag_type mom_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_diag_mediator::get_new_diag_id->mom_diag_mediator::initialize_diag_type
Text view
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)

Callers call graph
Callers of mom_diag_mediator::alloc_diag_with_id calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_diag_mediator::add_diag_to_list->mom_diag_mediator::alloc_diag_with_id mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_diag_mediator::register_scalar_field_cs->mom_diag_mediator::alloc_diag_with_id mom_diag_mediator::register_static_field register_static_field mom_diag_mediator::register_static_field->mom_diag_mediator::alloc_diag_with_id
Text view
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
Callees of mom_diag_mediator::log_available_diag calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::describe_option describe_option [private/internal] mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::log_available_diag->mom_diag_mediator::describe_option
Text view
Callers call graph
Callers of mom_diag_mediator::log_available_diag calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::log_available_diag log_available_diag [private/internal] mom_diag_mediator::register_diag_field register_diag_field mom_diag_mediator::register_diag_field->mom_diag_mediator::log_available_diag mom_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_diag_mediator::register_scalar_field_cs->mom_diag_mediator::log_available_diag mom_diag_mediator::register_static_field register_static_field mom_diag_mediator::register_static_field->mom_diag_mediator::log_available_diag
Text view
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

Callers call graph
Callers of mom_diag_mediator::diag_grid_storage_init calls cluster_mom MOM cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_grid_storage_init diag_grid_storage_init mom::initialize_mom->mom_diag_mediator::diag_grid_storage_init mom_diabatic_driver::diabatic_driver_init diabatic_driver_init mom_diabatic_driver::diabatic_driver_init->mom_diag_mediator::diag_grid_storage_init mom_diag_mediator::set_axes_info set_axes_info mom_diag_mediator::set_axes_info->mom_diag_mediator::diag_grid_storage_init
Text view
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
Callers of mom_diag_mediator::diag_copy_diag_to_storage calls cluster_mom MOM cluster_mom_diag_mediator MOM_diag_mediator mom::initialize_mom initialize_MOM mom_diag_mediator::diag_copy_diag_to_storage diag_copy_diag_to_storage mom::initialize_mom->mom_diag_mediator::diag_copy_diag_to_storage mom::step_mom step_MOM mom::step_mom->mom_diag_mediator::diag_copy_diag_to_storage
Text view
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
Callers of mom_diag_mediator::diag_copy_storage_to_diag calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::diag_copy_storage_to_diag diag_copy_storage_to_diag mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::diag_copy_storage_to_diag mom_diagnostics::post_transport_diagnostics post_transport_diagnostics mom_diagnostics::post_transport_diagnostics->mom_diag_mediator::diag_copy_storage_to_diag mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync mom_tracer_registry::post_tracer_diagnostics_at_sync->mom_diag_mediator::diag_copy_storage_to_diag
Text view
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

Callers call graph
Callers of mom_diag_mediator::diag_save_grids calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::diag_save_grids diag_save_grids mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::diag_save_grids mom_diagnostics::post_transport_diagnostics post_transport_diagnostics mom_diagnostics::post_transport_diagnostics->mom_diag_mediator::diag_save_grids mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync mom_tracer_registry::post_tracer_diagnostics_at_sync->mom_diag_mediator::diag_save_grids
Text view
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

Callers call graph
Callers of mom_diag_mediator::diag_restore_grids calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_diagnostics MOM_diagnostics cluster_mom_tracer_registry MOM_tracer_registry mom_diag_mediator::diag_restore_grids diag_restore_grids mom_diagnostics::calculate_diagnostic_fields calculate_diagnostic_fields mom_diagnostics::calculate_diagnostic_fields->mom_diag_mediator::diag_restore_grids mom_diagnostics::post_transport_diagnostics post_transport_diagnostics mom_diagnostics::post_transport_diagnostics->mom_diag_mediator::diag_restore_grids mom_tracer_registry::post_tracer_diagnostics_at_sync post_tracer_diagnostics_at_sync mom_tracer_registry::post_tracer_diagnostics_at_sync->mom_diag_mediator::diag_restore_grids
Text view
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
Callers of mom_diag_mediator::diag_grid_storage_end calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_grid_storage_end diag_grid_storage_end mom_diag_mediator::diag_mediator_end diag_mediator_end mom_diag_mediator::diag_mediator_end->mom_diag_mediator::diag_grid_storage_end
Text view
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
Callees of mom_diag_mediator::downsample_diag_masks_set calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_diag_masks_set downsample_diag_masks_set [private/internal] mom_diag_mediator::interface::downsample_mask downsample_mask (interface) [private/internal] mom_diag_mediator::downsample_diag_masks_set->mom_diag_mediator::interface::downsample_mask
Text view
Callers call graph
Callers of mom_diag_mediator::downsample_diag_masks_set calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::diag_masks_set diag_masks_set mom_diag_mediator::downsample_diag_masks_set downsample_diag_masks_set [private/internal] mom_diag_mediator::diag_masks_set->mom_diag_mediator::downsample_diag_masks_set
Text view
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
Callees of mom_diag_mediator::downsample_diag_indices_get calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_diag_indices_get downsample_diag_indices_get [private/internal] mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_diag_indices_get->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::downsample_diag_indices_get calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_diag_field_2d downsample_diag_field_2d [private/internal] mom_diag_mediator::downsample_diag_indices_get downsample_diag_indices_get [private/internal] mom_diag_mediator::downsample_diag_field_2d->mom_diag_mediator::downsample_diag_indices_get mom_diag_mediator::downsample_diag_field_3d downsample_diag_field_3d [private/internal] mom_diag_mediator::downsample_diag_field_3d->mom_diag_mediator::downsample_diag_indices_get
Text view
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]

Callees call graph
Callees of mom_diag_mediator::downsample_diag_field_3d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_diag_field_3d downsample_diag_field_3d [private/internal] mom_diag_mediator::downsample_diag_indices_get downsample_diag_indices_get [private/internal] mom_diag_mediator::downsample_diag_field_3d->mom_diag_mediator::downsample_diag_indices_get mom_diag_mediator::interface::downsample_field downsample_field (interface) [private/internal] mom_diag_mediator::downsample_diag_field_3d->mom_diag_mediator::interface::downsample_field mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_diag_field_3d->mom_error_handler::mom_error
Text view
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].

Callees call graph
Callees of mom_diag_mediator::downsample_diag_field_2d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_diag_field_2d downsample_diag_field_2d [private/internal] mom_diag_mediator::downsample_diag_indices_get downsample_diag_indices_get [private/internal] mom_diag_mediator::downsample_diag_field_2d->mom_diag_mediator::downsample_diag_indices_get mom_diag_mediator::interface::downsample_field downsample_field (interface) [private/internal] mom_diag_mediator::downsample_diag_field_2d->mom_diag_mediator::interface::downsample_field mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_diag_field_2d->mom_error_handler::mom_error
Text view
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 delta

This 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
Callees of mom_diag_mediator::downsample_field_3d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_field_3d downsample_field_3d [private/internal] mom_diag_mediator::square_sum square_sum [private/internal] mom_diag_mediator::downsample_field_3d->mom_diag_mediator::square_sum mom_diag_mediator::sum_1d sum_1d [private/internal] mom_diag_mediator::downsample_field_3d->mom_diag_mediator::sum_1d mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_field_3d->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::downsample_field_3d calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_field_3d downsample_field_3d [private/internal] mom_diag_mediator::post_data_3d_low post_data_3d_low [private/internal] mom_diag_mediator::post_data_3d_low->mom_diag_mediator::downsample_field_3d
Text view
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
Callees of mom_diag_mediator::downsample_field_2d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_field_2d downsample_field_2d [private/internal] mom_diag_mediator::square_sum square_sum [private/internal] mom_diag_mediator::downsample_field_2d->mom_diag_mediator::square_sum mom_diag_mediator::sum_1d sum_1d [private/internal] mom_diag_mediator::downsample_field_2d->mom_diag_mediator::sum_1d mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_field_2d->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_diag_mediator::downsample_field_2d calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_field_2d downsample_field_2d [private/internal] mom_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_diag_mediator::post_data_2d_low->mom_diag_mediator::downsample_field_2d
Text view
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
Callers of mom_diag_mediator::sum_1d calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_field_2d downsample_field_2d [private/internal] mom_diag_mediator::sum_1d sum_1d [private/internal] mom_diag_mediator::downsample_field_2d->mom_diag_mediator::sum_1d mom_diag_mediator::downsample_field_3d downsample_field_3d [private/internal] mom_diag_mediator::downsample_field_3d->mom_diag_mediator::sum_1d
Text view
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
Callees of mom_diag_mediator::square_sum calls cluster_mom_array_transform MOM_array_transform cluster_mom_diag_mediator MOM_diag_mediator mom_array_transform::interface::symmetric_sum symmetric_sum (interface) mom_diag_mediator::square_sum square_sum [private/internal] mom_diag_mediator::square_sum->mom_array_transform::interface::symmetric_sum
Text view
Callers call graph
Callers of mom_diag_mediator::square_sum calls cluster_mom_diag_mediator MOM_diag_mediator mom_diag_mediator::downsample_field_2d downsample_field_2d [private/internal] mom_diag_mediator::square_sum square_sum [private/internal] mom_diag_mediator::downsample_field_2d->mom_diag_mediator::square_sum mom_diag_mediator::downsample_field_3d downsample_field_3d [private/internal] mom_diag_mediator::downsample_field_3d->mom_diag_mediator::square_sum
Text view
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

Callees call graph
Callees of mom_diag_mediator::downsample_mask_2d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_mask_2d downsample_mask_2d [private/internal] mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_mask_2d->mom_error_handler::mom_error
Text view
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

Callees call graph
Callees of mom_diag_mediator::downsample_mask_3d calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_error_handler MOM_error_handler mom_diag_mediator::downsample_mask_3d downsample_mask_3d [private/internal] mom_error_handler::mom_error MOM_error mom_diag_mediator::downsample_mask_3d->mom_error_handler::mom_error
Text view
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
Callees of mom_diag_mediator::found_in_diagtable calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator mom_diag_manager_infra::register_static_field_infra register_static_field_infra mom_diag_mediator::found_in_diagtable found_in_diagtable mom_diag_mediator::found_in_diagtable->mom_diag_manager_infra::register_static_field_infra
Text view
Callers call graph
Callers of mom_diag_mediator::found_in_diagtable calls cluster_mom_diag_mediator MOM_diag_mediator cluster_mom_obsolete_diagnostics MOM_obsolete_diagnostics mom_diag_mediator::found_in_diagtable found_in_diagtable mom_obsolete_diagnostics::diag_found diag_found [private/internal] mom_obsolete_diagnostics::diag_found->mom_diag_mediator::found_in_diagtable
Text view
subroutine MOM_diag_send_complete()

Finishes the diag manager reduction methods as needed for the time_step

Callees call graph
Callees of mom_diag_mediator::mom_diag_send_complete calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_diag_mediator MOM_diag_mediator mom_diag_manager_infra::diag_send_complete_infra diag_send_complete_infra mom_diag_mediator::mom_diag_send_complete MOM_diag_send_complete mom_diag_mediator::mom_diag_send_complete->mom_diag_manager_infra::diag_send_complete_infra
Text view
API generated with Flint · Rendered from reStructuredText