MOM_IS_diag_mediator module reference

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

Data Types

axes_grp

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

diag_type

This type is used to represent a diagnostic at the diag_mediator level.

diag_ctrl

The diag_ctrl data type contains times to regulate diagnostics along with masks and axes to use with diagnostics, and a list of structures with data about each diagnostic.

Generic Interfaces

post_IS_data

Make a diagnostic available for averaging or output.

register_MOM_IS_scalar_field

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

Functions/Subroutines

set_IS_axes_info

Set up the grid and axis information for use by the ice shelf model.

diag_register_area_ids

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

define_axes_group

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

set_IS_diag_mediator_grid

Set up the array extents for doing diagnostics

post_IS_data_0d

Make a real ice shelf scalar diagnostic available for averaging or output

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

enable_averaging

Enable 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

Indicate whether averaging diagnostics is currently enabled

MOM_IS_diag_mediator_infrastructure_init

This subroutine initializes the diag_manager via the MOM6 infrastructure

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_MOM_IS_diag_field

Returns the "diag_mediator" handle for a group (native, CMOR, ...) 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

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 non-array scalar diagnostic, returning an integer handle

register_MOM_IS_static_field

Registers a static diagnostic, returning an integer handle

describe_option

Add a description of an option to the documentation file

MOM_IS_diag_mediator_init

Initialize the MOM_IS diag_mediator and opens the available diagnostics file, if appropriate.

diag_masks_set

Sets up the 2d masks for native diagnostics

MOM_IS_diag_mediator_close_registration

Prevent the registration of additional diagnostics, so that the creation of files can occur

MOM_IS_diag_mediator_end

Deallocate memory associated with the MOM_IS diag mediator

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

log_available_diag

Log a diagnostic to the available diagnostics file.

log_chksum_diag

Log the diagnostic chksum to the chksum diag file

found_in_diagtable

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

MOM_IS_diag_send_complete

Finishes the diag manager reduction methods as needed for the time_step

Type Documentation

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.

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

  • id_area

    The diag_manager id for area to be used for cell_measure of variables with this axes_grp.

  • mask2d

    Mask for 2d (x-y) axes [nondim]

  • mask2d_comp

    Mask for 2-d axes on the computational domain for this diagnostic [nondim]

type, private :: diag_type

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.

  • 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]

type, public :: diag_ctrl

The diag_ctrl data type contains times to regulate diagnostics along with masks and axes to use with diagnostics, and a list of structures with data about each diagnostic.

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.

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

  • axesB1

    The following are 3D and 2D axis groups defined for output. The names indicate the horizontal locations (B, T, Cu, or Cv) and vertical locations (here just 1).

  • axesT1

    The following are 3D and 2D axis groups defined for output. The names indicate the horizontal locations (B, T, Cu, or Cv) and vertical locations (here just 1).

  • axesCu1

    The following are 3D and 2D axis groups defined for output. The names indicate the horizontal locations (B, T, Cu, or Cv) and vertical locations (here just 1).

  • axesCv1

    The following are 3D and 2D axis groups defined for output. The names indicate the horizontal locations (B, T, Cu, or Cv) and vertical locations (here just 1).

  • 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]

  • mask2dCv

    2D mask array for north-face points [nondim]

  • mask2dT_comp

    2D cell-center mask on the computational domain [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]

  • G

    The ocean grid type

  • US

    A dimensional unit scaling type

    Number of checksum-only diagnostics

Generic Interface Documentation

interface post_IS_data

Make a diagnostic available for averaging or output.

Implementations

post_IS_data_0d

Callers call graph
Callers of mom_is_diag_mediator::interface::post_is_data calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_ice_shelf_dynamics MOM_ice_shelf_dynamics cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_is_diag_mediator::interface::post_is_data post_IS_data (interface) mom_ice_shelf::shelf_calc_flux->mom_is_diag_mediator::interface::post_is_data mom_ice_shelf::solo_step_ice_shelf solo_step_ice_shelf mom_ice_shelf::solo_step_ice_shelf->mom_is_diag_mediator::interface::post_is_data mom_ice_shelf_dynamics::is_dynamics_post_data IS_dynamics_post_data mom_ice_shelf_dynamics::is_dynamics_post_data->mom_is_diag_mediator::interface::post_is_data mom_ice_shelf_dynamics::is_dynamics_post_data_2 IS_dynamics_post_data_2 [private/internal] mom_ice_shelf_dynamics::is_dynamics_post_data_2->mom_is_diag_mediator::interface::post_is_data
Text view
interface register_MOM_IS_scalar_field

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

Callers call graph
Callers of mom_is_diag_mediator::interface::register_mom_is_scalar_field calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::interface::register_mom_is_scalar_field register_MOM_IS_scalar_field (interface) mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::interface::register_mom_is_scalar_field
Text view

Functions/Subroutine Documentation

subroutine set_IS_axes_info(G, diag_cs, axes_set_name)

Set up the grid and axis information for use by the ice shelf model.

Parameters
  • G [in]

    The horizontal grid type

  • diag_cs [inout]

    A structure that is used to regulate diagnostic output

  • axes_set_name [in]

    A name to use for this set of axes. The default is "ice".

Callees call graph
Callees of mom_is_diag_mediator::set_is_axes_info calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::mom_diag_axis_init MOM_diag_axis_init mom_is_diag_mediator::define_axes_group define_axes_group mom_is_diag_mediator::set_is_axes_info set_IS_axes_info mom_is_diag_mediator::set_is_axes_info->mom_diag_manager_infra::mom_diag_axis_init mom_is_diag_mediator::set_is_axes_info->mom_is_diag_mediator::define_axes_group
Text view
Callers call graph
Callers of mom_is_diag_mediator::set_is_axes_info calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::set_is_axes_info set_IS_axes_info mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::set_is_axes_info
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

subroutine define_axes_group(diag_cs, handles, axes, x_cell_method, y_cell_method, is_h_point, is_q_point, is_u_point, is_v_point)

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

Parameters
  • diag_cs [in]

    Structure used to regulate diagnostic output

  • handles [in]

    A list of 1D axis handles that define the axis group

  • axes [out]

    The group of axes that is set up here

  • 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

  • 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

Callees call graph
Callees of mom_is_diag_mediator::define_axes_group calls cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator cluster_mom_string_functions MOM_string_functions mom_error_handler::mom_error MOM_error mom_is_diag_mediator::define_axes_group define_axes_group mom_is_diag_mediator::define_axes_group->mom_error_handler::mom_error mom_string_functions::ints_to_string ints_to_string mom_is_diag_mediator::define_axes_group->mom_string_functions::ints_to_string
Text view
Callers call graph
Callers of mom_is_diag_mediator::define_axes_group calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::define_axes_group define_axes_group mom_is_diag_mediator::set_is_axes_info set_IS_axes_info mom_is_diag_mediator::set_is_axes_info->mom_is_diag_mediator::define_axes_group
Text view
subroutine set_IS_diag_mediator_grid(G, diag_cs)

Set up the array extents for doing diagnostics

Parameters
  • G [inout]

    The horizontal grid type

  • diag_cs [inout]

    Structure used to regulate diagnostic output

subroutine post_IS_data_0d(diag_field_id, field, diag_cs, is_static)

Make a real ice shelf 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_MOM_IS_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_is_diag_mediator::post_is_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_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator 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_error_handler::assert assert mom_is_diag_mediator::post_is_data_0d post_IS_data_0d mom_is_diag_mediator::post_is_data_0d->mom_checksums::chksum0 mom_is_diag_mediator::post_is_data_0d->mom_cpu_clock_infra::cpu_clock_begin mom_is_diag_mediator::post_is_data_0d->mom_cpu_clock_infra::cpu_clock_end mom_is_diag_mediator::post_is_data_0d->mom_diag_manager_infra::interface::send_data_infra mom_is_diag_mediator::post_is_data_0d->mom_error_handler::assert
Text view
Callers call graph
Callers of mom_is_diag_mediator::post_is_data_0d calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::process_and_post_scalar_data process_and_post_scalar_data [private/internal] mom_is_diag_mediator::post_is_data_0d post_IS_data_0d mom_ice_shelf::process_and_post_scalar_data->mom_is_diag_mediator::post_is_data_0d
Text view

External calls

time_manager_mod
  • get_time (time_manager_mod::get_time)

subroutine post_IS_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_MOM_IS_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_is_diag_mediator::post_is_data_2d calls cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_error_handler::assert assert mom_is_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_is_diag_mediator::post_is_data_2d post_IS_data_2d [private/internal] mom_is_diag_mediator::post_is_data_2d->mom_cpu_clock_infra::cpu_clock_begin mom_is_diag_mediator::post_is_data_2d->mom_cpu_clock_infra::cpu_clock_end mom_is_diag_mediator::post_is_data_2d->mom_error_handler::assert mom_is_diag_mediator::post_is_data_2d->mom_is_diag_mediator::post_data_2d_low
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_is_diag_mediator::post_data_2d_low calls cluster_mom_checksums MOM_checksums cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator 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_error_handler::assert assert mom_error_handler::mom_error MOM_error mom_is_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_is_diag_mediator::post_data_2d_low->mom_checksums::interface::bchksum mom_is_diag_mediator::post_data_2d_low->mom_checksums::interface::hchksum mom_is_diag_mediator::post_data_2d_low->mom_checksums::interface::uchksum mom_is_diag_mediator::post_data_2d_low->mom_checksums::interface::vchksum mom_is_diag_mediator::post_data_2d_low->mom_diag_manager_infra::interface::send_data_infra mom_is_diag_mediator::post_data_2d_low->mom_error_handler::assert mom_is_diag_mediator::post_data_2d_low->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_is_diag_mediator::post_data_2d_low calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::post_data_2d_low post_data_2d_low [private/internal] mom_is_diag_mediator::post_is_data_2d post_IS_data_2d [private/internal] mom_is_diag_mediator::post_is_data_2d->mom_is_diag_mediator::post_data_2d_low
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)

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

Parameters
  • time_int_in [in]

    The time interval [s] over which any values that are offered are valid.

  • time_end_in [in]

    The end time of the valid interval

  • diag_cs [inout]

    Structure used to regulate diagnostic output

subroutine enable_averages(time_int, time_end, diag_CS, T_to_s)

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

Parameters
  • time_int [in]

    The time interval over which any values that are offered are valid [T ~> s].

  • time_end [in]

    The end time of the valid interval.

  • diag_CS [inout]

    A structure that is used to regulate diagnostic output

  • T_to_s [in]

    A conversion factor for time_int to seconds [s T-1 ~> 1].

Callers call graph
Callers of mom_is_diag_mediator::enable_averages calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_ice_shelf_dynamics MOM_ice_shelf_dynamics cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_is_diag_mediator::enable_averages enable_averages mom_ice_shelf::shelf_calc_flux->mom_is_diag_mediator::enable_averages mom_ice_shelf::solo_step_ice_shelf solo_step_ice_shelf mom_ice_shelf::solo_step_ice_shelf->mom_is_diag_mediator::enable_averages mom_ice_shelf_dynamics::is_dynamics_post_data IS_dynamics_post_data mom_ice_shelf_dynamics::is_dynamics_post_data->mom_is_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_is_diag_mediator::disable_averaging calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_ice_shelf_dynamics MOM_ice_shelf_dynamics cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_is_diag_mediator::disable_averaging disable_averaging mom_ice_shelf::shelf_calc_flux->mom_is_diag_mediator::disable_averaging mom_ice_shelf::solo_step_ice_shelf solo_step_ice_shelf mom_ice_shelf::solo_step_ice_shelf->mom_is_diag_mediator::disable_averaging mom_ice_shelf_dynamics::is_dynamics_post_data IS_dynamics_post_data mom_ice_shelf_dynamics::is_dynamics_post_data->mom_is_diag_mediator::disable_averaging
Text view
logical function query_averaging_enabled(diag_cs, time_int, time_end)

Indicate whether averaging diagnostics is currently enabled

Parameters
  • diag_cs [in]

    Structure used to regulate diagnostic output

  • time_int [out]

    Current setting of diag_cs%time_int [s]

  • time_end [out]

    Current setting of diag_cs%time_end

subroutine MOM_IS_diag_mediator_infrastructure_init(err_msg)

This subroutine initializes the diag_manager via the MOM6 infrastructure

Parameters
  • err_msg [out]

    An error message

Callees call graph
Callees of mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::mom_diag_manager_init MOM_diag_manager_init mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init MOM_IS_diag_mediator_infrastructure_init mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init->mom_diag_manager_infra::mom_diag_manager_init
Text view
Callers call graph
Callers of mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init MOM_IS_diag_mediator_infrastructure_init mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init
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

function register_MOM_IS_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, conversion) result(register_diag_field)

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

Parameters
  • register_diag_field

    The returned diagnostic handle

  • module_name [in]

    Name of this module, usually "ice_model"

  • field_name [in]

    Name of the diagnostic field

  • axes_in [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_IS_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.

  • 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_is_diag_mediator::register_mom_is_diag_field calls cluster_mom_error_infra MOM_error_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator cluster_mom_string_functions MOM_string_functions mom_error_infra::is_root_pe is_root_pe mom_is_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_mom_is_diag_field register_MOM_IS_diag_field mom_is_diag_mediator::register_mom_is_diag_field->mom_error_infra::is_root_pe mom_is_diag_mediator::register_mom_is_diag_field->mom_is_diag_mediator::attach_cell_methods mom_is_diag_mediator::register_mom_is_diag_field->mom_is_diag_mediator::log_available_diag mom_is_diag_mediator::register_mom_is_diag_field->mom_is_diag_mediator::register_diag_field_expand_cmor mom_string_functions::trim_trailing_commas trim_trailing_commas mom_is_diag_mediator::register_mom_is_diag_field->mom_string_functions::trim_trailing_commas
Text view
Callers call graph
Callers of mom_is_diag_mediator::register_mom_is_diag_field calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_ice_shelf_dynamics MOM_ice_shelf_dynamics cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::register_mom_is_diag_field register_MOM_IS_diag_field mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::register_mom_is_diag_field mom_ice_shelf_dynamics::initialize_ice_shelf_dyn initialize_ice_shelf_dyn mom_ice_shelf_dynamics::initialize_ice_shelf_dyn->mom_is_diag_mediator::register_mom_is_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, conversion)

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 "ice_model" or "ice_model_fast"

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

  • 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_is_diag_mediator::register_diag_field_expand_cmor calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_is_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_is_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_diag_mediator::add_diag_to_list mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_diag_mediator::attach_cell_methods mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_diag_mediator::register_diag_field_expand_axes
Text view
Callers call graph
Callers of mom_is_diag_mediator::register_diag_field_expand_cmor calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_mom_is_diag_field register_MOM_IS_diag_field mom_is_diag_mediator::register_mom_is_diag_field->mom_is_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_is_diag_mediator::register_diag_field_expand_axes calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::interface::register_diag_field_infra register_diag_field_infra (interface) mom_is_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_is_diag_mediator::register_diag_field_expand_axes->mom_diag_manager_infra::interface::register_diag_field_infra
Text view
Callers call graph
Callers of mom_is_diag_mediator::register_diag_field_expand_axes calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::register_diag_field_expand_axes register_diag_field_expand_axes [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_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_is_diag_mediator::add_diag_to_list calls cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_error_handler::assert assert mom_is_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_is_diag_mediator::add_diag_to_list->mom_error_handler::assert mom_is_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_is_diag_mediator::add_diag_to_list->mom_is_diag_mediator::alloc_diag_with_id mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::add_diag_to_list->mom_is_diag_mediator::get_new_diag_id
Text view
Callers call graph
Callers of mom_is_diag_mediator::add_diag_to_list calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_diag_mediator::add_diag_to_list
Text view
subroutine attach_cell_methods(id, axes, ostring, cell_methods, x_cell_method, y_cell_method)

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.

Callees call graph
Callees of mom_is_diag_mediator::attach_cell_methods calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator 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_error_handler::mom_error MOM_error mom_is_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_is_diag_mediator::attach_cell_methods->mom_diag_manager_infra::get_mom_diag_axis_name mom_is_diag_mediator::attach_cell_methods->mom_diag_manager_infra::interface::mom_diag_field_add_attribute mom_is_diag_mediator::attach_cell_methods->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_is_diag_mediator::attach_cell_methods calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::attach_cell_methods attach_cell_methods [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor register_diag_field_expand_cmor [private/internal] mom_is_diag_mediator::register_diag_field_expand_cmor->mom_is_diag_mediator::attach_cell_methods mom_is_diag_mediator::register_mom_is_diag_field register_MOM_IS_diag_field mom_is_diag_mediator::register_mom_is_diag_field->mom_is_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_is_diag_mediator::register_scalar_field_axes calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::register_scalar_field_axes register_scalar_field_axes [private/internal] mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_axes->mom_is_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 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

  • 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_is_diag_mediator::register_scalar_field_cs calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::interface::register_diag_field_infra register_diag_field_infra (interface) mom_error_handler::assert assert mom_error_infra::is_root_pe is_root_pe mom_is_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_cs->mom_diag_manager_infra::interface::register_diag_field_infra mom_is_diag_mediator::register_scalar_field_cs->mom_error_handler::assert mom_is_diag_mediator::register_scalar_field_cs->mom_error_infra::is_root_pe mom_is_diag_mediator::register_scalar_field_cs->mom_is_diag_mediator::alloc_diag_with_id mom_is_diag_mediator::register_scalar_field_cs->mom_is_diag_mediator::get_new_diag_id mom_is_diag_mediator::register_scalar_field_cs->mom_is_diag_mediator::log_available_diag
Text view
Callers call graph
Callers of mom_is_diag_mediator::register_scalar_field_cs calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::register_scalar_field_axes register_scalar_field_axes [private/internal] mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_axes->mom_is_diag_mediator::register_scalar_field_cs
Text view
function register_MOM_IS_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) result(register_static_field)

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 in arbitrary units [a]

  • mask_variant [in]

    If true a logical mask must be provided with post_IS_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_is_diag_mediator::register_mom_is_static_field calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_error_handler MOM_error_handler cluster_mom_error_infra MOM_error_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator 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_error_handler::assert assert mom_error_infra::is_root_pe is_root_pe mom_is_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::register_mom_is_static_field register_MOM_IS_static_field mom_is_diag_mediator::register_mom_is_static_field->mom_diag_manager_infra::get_mom_diag_axis_name mom_is_diag_mediator::register_mom_is_static_field->mom_diag_manager_infra::interface::mom_diag_field_add_attribute mom_is_diag_mediator::register_mom_is_static_field->mom_diag_manager_infra::register_static_field_infra mom_is_diag_mediator::register_mom_is_static_field->mom_error_handler::assert mom_is_diag_mediator::register_mom_is_static_field->mom_error_infra::is_root_pe mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::alloc_diag_with_id mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::get_new_diag_id mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::log_available_diag mom_string_functions::trim_trailing_commas trim_trailing_commas mom_is_diag_mediator::register_mom_is_static_field->mom_string_functions::trim_trailing_commas
Text view
subroutine describe_option(opt_name, value, diag_CS)

Add a description of an option to the documentation file

Parameters
  • opt_name [in]

    The name of the option

  • value [in]

    The value of the option

  • diag_CS [in]

    Structure used to regulate diagnostic output

Callers call graph
Callers of mom_is_diag_mediator::describe_option calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::describe_option describe_option [private/internal] mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::log_available_diag->mom_is_diag_mediator::describe_option
Text view
subroutine MOM_IS_diag_mediator_init(G, US, param_file, diag_cs, component, err_msg, doc_file_dir)

Initialize the MOM_IS diag_mediator and opens the available diagnostics file, if appropriate.

Parameters
  • G [inout]

    The horizontal grid type

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters

  • diag_cs [inout]

    A structure that is used to regulate diagnostic output

  • component [in]

    An optional component name

  • err_msg [out]

    A string for a returned error message

  • doc_file_dir [in]

    A directory in which to create the file

Callees call graph
Callees of mom_is_diag_mediator::mom_is_diag_mediator_init calls cluster_mom_coms_infra MOM_coms_infra cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_diag_manager_infra MOM_diag_manager_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_is_diag_mediator MOM_IS_diag_mediator 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_manager_infra::mom_diag_manager_init MOM_diag_manager_init mom_error_handler::calltree_showquery callTree_showQuery mom_error_handler::mom_error MOM_error mom_error_infra::is_root_pe is_root_pe mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_io::get_filename_appendix get_filename_appendix mom_is_diag_mediator::diag_masks_set diag_masks_set mom_is_diag_mediator::initialize_diag_type initialize_diag_type [private/internal] mom_is_diag_mediator::mom_is_diag_mediator_init MOM_IS_diag_mediator_init mom_is_diag_mediator::mom_is_diag_mediator_init->mom_coms_infra::pe_here mom_is_diag_mediator::mom_is_diag_mediator_init->mom_cpu_clock_infra::cpu_clock_id mom_is_diag_mediator::mom_is_diag_mediator_init->mom_diag_manager_infra::mom_diag_manager_init mom_is_diag_mediator::mom_is_diag_mediator_init->mom_error_handler::calltree_showquery mom_is_diag_mediator::mom_is_diag_mediator_init->mom_error_handler::mom_error mom_is_diag_mediator::mom_is_diag_mediator_init->mom_error_infra::is_root_pe mom_is_diag_mediator::mom_is_diag_mediator_init->mom_file_parser::interface::get_param mom_is_diag_mediator::mom_is_diag_mediator_init->mom_file_parser::interface::log_version mom_is_diag_mediator::mom_is_diag_mediator_init->mom_io::get_filename_appendix mom_is_diag_mediator::mom_is_diag_mediator_init->mom_is_diag_mediator::diag_masks_set mom_is_diag_mediator::mom_is_diag_mediator_init->mom_is_diag_mediator::initialize_diag_type mom_string_functions::slasher slasher mom_is_diag_mediator::mom_is_diag_mediator_init->mom_string_functions::slasher mom_string_functions::uppercase uppercase mom_is_diag_mediator::mom_is_diag_mediator_init->mom_string_functions::uppercase
Text view
Callers call graph
Callers of mom_is_diag_mediator::mom_is_diag_mediator_init calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::mom_is_diag_mediator_init MOM_IS_diag_mediator_init mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::mom_is_diag_mediator_init
Text view
subroutine diag_masks_set(G, missing_value, diag_cs)

Sets up the 2d masks for native diagnostics

Parameters
  • G [in]

    The horizontal grid type

  • missing_value [in]

    A fill value for missing points

  • diag_cs [inout]

    Structure used to regulate diagnostic output

Callers call graph
Callers of mom_is_diag_mediator::diag_masks_set calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::diag_masks_set diag_masks_set mom_is_diag_mediator::mom_is_diag_mediator_init MOM_IS_diag_mediator_init mom_is_diag_mediator::mom_is_diag_mediator_init->mom_is_diag_mediator::diag_masks_set
Text view
subroutine MOM_IS_diag_mediator_close_registration(diag_CS)

Prevent the registration of additional diagnostics, so that the creation of files can occur

Parameters
  • diag_CS [inout]

    Structure used to regulate diagnostic output

Callers call graph
Callers of mom_is_diag_mediator::mom_is_diag_mediator_close_registration calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::initialize_ice_shelf initialize_ice_shelf mom_is_diag_mediator::mom_is_diag_mediator_close_registration MOM_IS_diag_mediator_close_registration mom_ice_shelf::initialize_ice_shelf->mom_is_diag_mediator::mom_is_diag_mediator_close_registration
Text view
subroutine MOM_IS_diag_mediator_end(diag_CS)

Deallocate memory associated with the MOM_IS diag mediator

Parameters
  • diag_CS [inout]

    Structure used to regulate diagnostic output

Callers call graph
Callers of mom_is_diag_mediator::mom_is_diag_mediator_end calls cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_ice_shelf::ice_shelf_end ice_shelf_end mom_is_diag_mediator::mom_is_diag_mediator_end MOM_IS_diag_mediator_end mom_ice_shelf::ice_shelf_end->mom_is_diag_mediator::mom_is_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_is_diag_mediator::get_new_diag_id calls cluster_mom_error_handler MOM_error_handler cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_error_handler::assert assert mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::get_new_diag_id->mom_error_handler::assert mom_is_diag_mediator::initialize_diag_type initialize_diag_type [private/internal] mom_is_diag_mediator::get_new_diag_id->mom_is_diag_mediator::initialize_diag_type
Text view
Callers call graph
Callers of mom_is_diag_mediator::get_new_diag_id calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::add_diag_to_list->mom_is_diag_mediator::get_new_diag_id mom_is_diag_mediator::register_mom_is_static_field register_MOM_IS_static_field mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::get_new_diag_id mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_cs->mom_is_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_is_diag_mediator::initialize_diag_type calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::get_new_diag_id get_new_diag_id [private/internal] mom_is_diag_mediator::initialize_diag_type initialize_diag_type [private/internal] mom_is_diag_mediator::get_new_diag_id->mom_is_diag_mediator::initialize_diag_type mom_is_diag_mediator::mom_is_diag_mediator_init MOM_IS_diag_mediator_init mom_is_diag_mediator::mom_is_diag_mediator_init->mom_is_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 diags.

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_is_diag_mediator::alloc_diag_with_id calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::add_diag_to_list add_diag_to_list [private/internal] mom_is_diag_mediator::alloc_diag_with_id alloc_diag_with_id [private/internal] mom_is_diag_mediator::add_diag_to_list->mom_is_diag_mediator::alloc_diag_with_id mom_is_diag_mediator::register_mom_is_static_field register_MOM_IS_static_field mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::alloc_diag_with_id mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_cs->mom_is_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 diagnotics 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_is_diag_mediator::log_available_diag calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::describe_option describe_option [private/internal] mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::log_available_diag->mom_is_diag_mediator::describe_option
Text view
Callers call graph
Callers of mom_is_diag_mediator::log_available_diag calls cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_is_diag_mediator::log_available_diag log_available_diag [private/internal] mom_is_diag_mediator::register_mom_is_diag_field register_MOM_IS_diag_field mom_is_diag_mediator::register_mom_is_diag_field->mom_is_diag_mediator::log_available_diag mom_is_diag_mediator::register_mom_is_static_field register_MOM_IS_static_field mom_is_diag_mediator::register_mom_is_static_field->mom_is_diag_mediator::log_available_diag mom_is_diag_mediator::register_scalar_field_cs register_scalar_field_CS [private/internal] mom_is_diag_mediator::register_scalar_field_cs->mom_is_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

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_is_diag_mediator::found_in_diagtable calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::register_static_field_infra register_static_field_infra mom_is_diag_mediator::found_in_diagtable found_in_diagtable mom_is_diag_mediator::found_in_diagtable->mom_diag_manager_infra::register_static_field_infra
Text view
subroutine MOM_IS_diag_send_complete()

Finishes the diag manager reduction methods as needed for the time_step

Callees call graph
Callees of mom_is_diag_mediator::mom_is_diag_send_complete calls cluster_mom_diag_manager_infra MOM_diag_manager_infra cluster_mom_is_diag_mediator MOM_IS_diag_mediator mom_diag_manager_infra::diag_send_complete_infra diag_send_complete_infra mom_is_diag_mediator::mom_is_diag_send_complete MOM_IS_diag_send_complete mom_is_diag_mediator::mom_is_diag_send_complete->mom_diag_manager_infra::diag_send_complete_infra
Text view
API generated with Flint · Rendered from reStructuredText