MOM_IS_diag_mediator module reference
The subroutines here provide convenient wrappers to the FMS diag_manager interfaces with additional diagnostic capabilities.
Data Types
A group of 1D axes that comprise a 1D/2D/3D mesh |
|
This type is used to represent a diagnostic at the diag_mediator level. |
|
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
Make a diagnostic available for averaging or output. |
|
Registers a non-array scalar diagnostic, returning an integer handle |
Functions/Subroutines
Set up the grid and axis information for use by the ice shelf model. |
|
Attaches the id of cell areas to axes groups for use with cell_measures |
|
Define a group of "axes" from a list of handles and associate a mask with it |
|
Set up the array extents for doing diagnostics |
|
Make a real ice shelf scalar diagnostic available for averaging or output |
|
Make a real 2-d array diagnostic available for averaging or output |
|
Make a real 2-d array diagnostic available for averaging or output using a diag_type instead of an integer id. |
|
Enable the accumulation of time averages over the specified time interval. |
|
Enable the accumulation of time averages over the specified time interval in time units. |
|
Call this subroutine to avoid averaging any offered fields. |
|
Indicate whether averaging diagnostics is currently enabled |
|
This subroutine initializes the diag_manager via the MOM6 infrastructure |
|
This function returns the valid end time for use with diagnostics that are handled outside of the MOM6 diagnostics infrastructure. |
|
Returns the "diag_mediator" handle for a group (native, CMOR, ...) of diagnostics derived from one field. |
|
Returns True if either the native or CMOR version of the diagnostic were registered. Updates 'dm_id' after calling register_diag_field_expand_axes() for both native and CMOR variants of the field. |
|
Returns an FMS id from register_diag_field_fms (the diag_manager routine) after expanding axes (axes-group) into handles and conditionally adding an FMS area_id for cell_measures. |
|
Create a diagnostic type and attached to list |
|
Attaches "cell_methods" attribute to a variable based on defaults for axes_grp or optional arguments. |
|
Registers a non-array scalar diagnostic, returning an integer handle |
|
Registers a non-array scalar diagnostic, returning an integer handle |
|
Registers a static diagnostic, returning an integer handle |
|
Add a description of an option to the documentation file |
|
Initialize the MOM_IS diag_mediator and opens the available diagnostics file, if appropriate. |
|
Sets up the 2d masks for native diagnostics |
|
Prevent the registration of additional diagnostics, so that the creation of files can occur |
|
Deallocate memory associated with the MOM_IS diag mediator |
|
Returns a new diagnostic id, it may be necessary to expand the diagnostics array. |
|
Initializes a diag_type (used after allocating new memory) |
|
Make a new diagnostic. Either use memory which is in the array of 'primary' diagnostics, or if that is in use, insert it to the list of secondary diags. |
|
Log a diagnostic to the available diagnostics file. |
|
Log the diagnostic chksum to the chksum diag file |
|
Fakes a register of a diagnostic to find out if an obsolete parameter appears in the diag_table. |
|
Finishes the diag manager reduction methods as needed for the time_step |
Type Documentation
- type, 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
Callers call graph
Text view
mom_ice_shelf::shelf_calc_flux → mom_is_diag_mediator::interface::post_is_data
mom_ice_shelf::solo_step_ice_shelf → mom_is_diag_mediator::interface::post_is_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 → mom_is_diag_mediator::interface::post_is_data
- interface register_MOM_IS_scalar_field
Registers a non-array scalar diagnostic, returning an integer handle
Callers call graph
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
Callers call graph
- subroutine diag_register_area_ids(diag_cs, id_area_t, id_area_q)
Attaches the id of cell areas to axes groups for use with cell_measures
- Parameters
diag_cs [inout]
Diagnostics control structure
id_area_t [in]
Diag_mediator id for area of h-cells
id_area_q [in]
Diag_mediator id for area of q-cells
- 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
Callers call graph
- 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
Text view
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
Callers call graph
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
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
Text view
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
Callers call graph
External calls
- time_manager_mod
get_time (time_manager_mod::get_time)
- subroutine enable_averaging(time_int_in, time_end_in, diag_cs)
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].
- subroutine disable_averaging(diag_cs)
Call this subroutine to avoid averaging any offered fields.
- Parameters
diag_cs [inout]
Structure used to regulate diagnostic output
- 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
Callers call graph
- 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
Text view
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_is_diag_mediator::register_mom_is_diag_field → mom_string_functions::trim_trailing_commas
- 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
Text view
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
Callers call graph
- integer function register_diag_field_expand_axes(module_name, field_name, axes, init_time, long_name, units, missing_value, range, mask_variant, standard_name, verbose, do_not_log, err_msg, interp_method, tile_count)
Returns an FMS id from register_diag_field_fms (the diag_manager routine) after expanding axes (axes-group) into handles and conditionally adding an FMS area_id for cell_measures.
- Parameters
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
mask_variant [in]
If true a logical mask must be provided with post_data calls (not used in MOM?)
verbose [in]
If true, FMS is verbose (not used in MOM?)
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
no clue (not used in MOM?)
Callees call graph
Callers call graph
- subroutine add_diag_to_list(diag_cs, dm_id, fms_id, this_diag, axes, module_name, field_name)
Create a diagnostic type and attached to list
- Parameters
diag_cs
Diagnostics mediator control structure
dm_id [inout]
The diag_mediator ID for this diagnostic group
fms_id [in]
The FMS diag_manager ID for this diagnostic
this_diag
This diagnostic
axes [in]
Container with up to 3 integer handles that indicates axes for this field
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of diagnostic
Callees call graph
Callers call graph
- 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
- function register_scalar_field_axes(module_name, field_name, axes, init_time, long_name, units, missing_value, range, standard_name, do_not_log, err_msg, interp_method, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, conversion) result(register_scalar_field)
Registers a non-array scalar diagnostic, returning an integer handle
- Parameters
register_scalar_field
An integer handle for a diagnostic array.
module_name [in]
Name of this module, usually "ocean_model" or "ice_shelf_model"
field_name [in]
Name of the diagnostic field
axes [in]
Container with up to 3 integer handles that indicates axes for this field
init_time [in]
Time at which a field is first available?
long_name [in]
Long name of a field.
units [in]
Units of a field.
standard_name [in]
Standardized name associated with a field
missing_value [in]
A value that indicates missing values in output files, in unscaled arbitrary units [a]
range [in]
Valid range of a variable (not used in MOM?) in arbitrary units [a]
do_not_log [in]
If true, do not log something (not used in MOM?)
err_msg [out]
String into which an error message might be placed (not used in MOM?)
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
cmor_field_name [in]
CMOR name of a field
cmor_long_name [in]
CMOR long name of a field
cmor_units [in]
CMOR units of a field
cmor_standard_name [in]
CMOR standardized name associated with a field
conversion [in]
A value to multiply data by before writing to files, often including factors to undo internal scaling and in units of [a A-1 ~> 1]
Callees call graph
- function register_scalar_field_CS(module_name, field_name, init_time, diag_cs, long_name, units, missing_value, range, standard_name, do_not_log, err_msg, interp_method, cmor_field_name, cmor_long_name, cmor_units, cmor_standard_name, conversion) result(register_scalar_field)
Registers a 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
Text view
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
Callers call graph
- 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
Text view
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_is_diag_mediator::register_mom_is_static_field → mom_string_functions::trim_trailing_commas
- 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
- 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
Text view
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_is_diag_mediator::mom_is_diag_mediator_init → mom_string_functions::slasher
mom_is_diag_mediator::mom_is_diag_mediator_init → mom_string_functions::uppercase
Callers call graph
- 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
- 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
- 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
- integer function get_new_diag_id(diag_cs)
Returns a new diagnostic id, it may be necessary to expand the diagnostics array.
- Parameters
diag_cs [inout]
Diagnostics control structure
Callees call graph
- subroutine initialize_diag_type(diag)
Initializes a diag_type (used after allocating new memory)
- Parameters
diag [inout]
diag_type to be initialized
- subroutine alloc_diag_with_id(diag_id, diag_cs, diag)
Make a new diagnostic. Either use memory which is in the array of 'primary' diagnostics, or if that is in use, insert it to the list of secondary diags.
- Parameters
diag_id [in]
id for the diagnostic
diag_cs [inout]
structure used to regulate diagnostic output
diag
structure representing a diagnostic (inout)
- subroutine log_available_diag(used, module_name, field_name, cell_methods_string, comment, diag_CS, long_name, units, standard_name, variants, dimensions)
Log a diagnostic to the available diagnostics file.
- Parameters
used [in]
Whether this diagnostic was in the diag_table or not
module_name [in]
Name of the diagnostic module
field_name [in]
Name of this diagnostic field
cell_methods_string [in]
The spatial component of the CF cell_methods attribute
comment [in]
A comment to append after [Used|Unused]
diag_CS [in]
The 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
Callers call graph
- subroutine log_chksum_diag(docunit, description, chksum)
Log the diagnostic chksum to the chksum diag file
- Parameters
docunit [in]
Handle of the log file
description [in]
Name of the diagnostic module
chksum [in]
chksum of the diagnostic
- 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
- subroutine MOM_IS_diag_send_complete()
Finishes the diag manager reduction methods as needed for the time_step