MOM_diag_manager_infra module reference
A wrapper for the FMS diag_manager routines. This module should be the only MOM6 module which imports the FMS shared infrastructure for diagnostics. Pass through interfaces are being documented here and renamed in order to clearly identify these APIs as being consistent with the FMS infrastructure (Any future updates to those APIs would be applied here).
Generic Interfaces
transmit data for diagnostic output |
|
transmit data for diagnostic output |
|
Add an attribute to a diagnostic field |
Functions/Subroutines
Initialize a diagnostic axis |
|
Returns the short name of the axis |
|
Return a unique numeric ID field a module/field name combination. |
|
Initializes the diagnostic manager |
|
Close the diagnostic manager |
|
Register a MOM diagnostic field for scalars |
|
Register a MOM diagnostic field for scalars |
|
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise. |
|
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise. |
|
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise. |
|
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise. |
|
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise. |
|
Add an integer attribute to a diagnostic field |
|
Add a character string attribute to a diagnostic field |
|
Add a real list of attributes attribute to a diagnostic field |
|
Add a integer list of attributes attribute to a diagnostic field |
|
Finishes the diag manager reduction methods as needed for the time_step |
|
Sets the time that the simulation ends in the diag manager |
Generic Interface Documentation
- interface register_diag_field_infra
transmit data for diagnostic output
Callers call graph
Text view
mom_diag_mediator::register_diag_field_expand_axes → mom_diag_manager_infra::interface::register_diag_field_infra
mom_diag_mediator::register_scalar_field_cs → mom_diag_manager_infra::interface::register_diag_field_infra
mom_is_diag_mediator::register_diag_field_expand_axes → mom_diag_manager_infra::interface::register_diag_field_infra
mom_is_diag_mediator::register_scalar_field_cs → mom_diag_manager_infra::interface::register_diag_field_infra
- interface send_data_infra
transmit data for diagnostic output
Callers call graph
Text view
mom_diag_mediator::post_data_0d → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_data_1d_k → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_data_2d_low → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_data_3d_low → mom_diag_manager_infra::interface::send_data_infra
mom_diag_mediator::post_xy_average → mom_diag_manager_infra::interface::send_data_infra
mom_is_diag_mediator::post_data_2d_low → mom_diag_manager_infra::interface::send_data_infra
mom_is_diag_mediator::post_is_data_0d → mom_diag_manager_infra::interface::send_data_infra
- interface MOM_diag_field_add_attribute
Add an attribute to a diagnostic field
Callers call graph
Text view
mom_diag_mediator::attach_cell_methods → mom_diag_manager_infra::interface::mom_diag_field_add_attribute
mom_diag_mediator::register_static_field → mom_diag_manager_infra::interface::mom_diag_field_add_attribute
mom_is_diag_mediator::attach_cell_methods → mom_diag_manager_infra::interface::mom_diag_field_add_attribute
mom_is_diag_mediator::register_mom_is_static_field → mom_diag_manager_infra::interface::mom_diag_field_add_attribute
Functions/Subroutine Documentation
- integer function MOM_diag_axis_init(name, data, units, cart_name, long_name, MOM_domain, position, direction, edges, set_name, coarsen, null_axis)
Initialize a diagnostic axis
- Parameters
name [in]
The name of this axis
data [in]
The array of coordinate values
units [in]
The units for the axis data
cart_name [in]
Cartesian axis ("X", "Y", "Z", "T", or "N" for none)
long_name [in]
The long name of this axis
MOM_Domain [in]
A MOM_Domain that describes the decomposition
position [in]
This indicates the relative position of this axis. The default is CENTER, but EAST and NORTH are common options.
direction [in]
This indicates the direction along which this axis increases: 1 for upward, -1 for downward, or 0 for non-vertical axes (the default)
edges [in]
The axis_id of the complementary axis that describes the edges of this axis
set_name [in]
A name to use for this set of axes.
coarsen [in]
An optional degree of coarsening for the grid, 0 by default. This is the index of the coarsening level.
null_axis [in]
If present and true, return the special null axis id for use with scalars.
Callers call graph
Text view
mom_diag_mediator::set_axes_info → mom_diag_manager_infra::mom_diag_axis_init
mom_diag_mediator::set_axes_info_dsamp → mom_diag_manager_infra::mom_diag_axis_init
mom_diag_remap::diag_remap_configure_axes → mom_diag_manager_infra::mom_diag_axis_init
mom_internal_tides::internal_tides_init → mom_diag_manager_infra::mom_diag_axis_init
mom_is_diag_mediator::set_is_axes_info → mom_diag_manager_infra::mom_diag_axis_init
External calls
- diag_axis_mod
fms_axis_init (diag_axis_mod::diag_axis_init)
- subroutine get_MOM_diag_axis_name(id, name)
Returns the short name of the axis
- Parameters
id [in]
The axis numeric id
name [out]
The short name of the axis
Callers call graph
Text view
mom_diag_mediator::attach_cell_methods → mom_diag_manager_infra::get_mom_diag_axis_name
mom_diag_mediator::register_static_field → mom_diag_manager_infra::get_mom_diag_axis_name
mom_is_diag_mediator::attach_cell_methods → mom_diag_manager_infra::get_mom_diag_axis_name
mom_is_diag_mediator::register_mom_is_static_field → mom_diag_manager_infra::get_mom_diag_axis_name
External calls
- diag_axis_mod
fms_get_diag_axis_name (diag_axis_mod::get_diag_axis_name)
- integer function get_MOM_diag_field_id(module_name, field_name)
Return a unique numeric ID field a module/field name combination.
- Parameters
module_name [in]
A module name string to query.
field_name [in]
A field name string to query.
External calls
- diag_manager_mod
get_diag_field_id_fms (diag_manager_mod::get_diag_field_id)
- subroutine MOM_diag_manager_init(diag_model_subset, time_init, err_msg)
Initializes the diagnostic manager
- Parameters
diag_model_subset [in]
An optional diagnostic subset
time_init [in]
An optional reference time for diagnostics The default uses the value contained in the diag_table. Format is Y-M-D-H-M-S
err_msg [out]
Error message.
Callers call graph
Text view
mom_diag_mediator::diag_mediator_infrastructure_init → mom_diag_manager_infra::mom_diag_manager_init
mom_is_diag_mediator::mom_is_diag_mediator_infrastructure_init → mom_diag_manager_infra::mom_diag_manager_init
mom_is_diag_mediator::mom_is_diag_mediator_init → mom_diag_manager_infra::mom_diag_manager_init
External calls
- diag_manager_mod
FMS_diag_manager_init (diag_manager_mod::diag_manager_init)
- subroutine MOM_diag_manager_end(time)
Close the diagnostic manager
- Parameters
time [in]
Model time at call to close.
Callers call graph
External calls
- diag_manager_mod
FMS_diag_manager_end (diag_manager_mod::diag_manager_end)
- integer function register_diag_field_infra_scalar(module_name, field_name, init_time, long_name, units, missing_value, range, standard_name, do_not_log, err_msg, area, volume)
Register a MOM diagnostic field for scalars
- Parameters
module_name [in]
The name of the associated module
field_name [in]
The name of the field
init_time [in]
The registration time
long_name [in]
A long name for the field
units [in]
Field units
standard_name [in]
A standard name for the field
missing_value [in]
Missing value attribute
range [in]
A valid range of the field
do_not_log [in]
if TRUE, field information is not logged
err_msg [out]
An error message to return
area [in]
Diagnostic ID of the field containing the area attribute
volume [in]
Diagnostic ID of the field containing the volume attribute
External calls
- diag_manager_mod
register_diag_field_fms (diag_manager_mod::register_diag_field)
- integer function register_diag_field_infra_array(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, area, volume)
Register a MOM diagnostic field for scalars
- Parameters
module_name [in]
The name of the associated module
field_name [in]
The name of the field
axes [in]
Diagnostic IDs of axis attributes for the field
init_time [in]
The registration time
long_name [in]
A long name for the field
units [in]
Units of the field
missing_value [in]
Missing value attribute
range [in]
A valid range of the field
mask_variant [in]
If true, the field mask is varying in time
standard_name [in]
A standard name for the field
verbose [in]
If true, provide additional log information
do_not_log [in]
if TRUE, field information is not logged
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
The tile number for the current PE
err_msg [out]
An error message to return
area [in]
Diagnostic ID of the field containing the area attribute
volume [in]
Diagnostic ID of the field containing the volume attribute
External calls
- diag_manager_mod
register_diag_field_fms (diag_manager_mod::register_diag_field)
integer function register_static_field_infra(module_name, field_name, axes, long_name, units, missing_value, range, mask_variant, standard_name, do_not_log, interp_method, tile_count, area, volume)
- Parameters
module_name [in]
The name of the associated module
field_name [in]
The name of the field
axes [in]
Diagnostic IDs of axis attributes for the field
long_name [in]
A long name for the field
units [in]
Units of the field
missing_value [in]
Missing value attribute
range [in]
A valid range of the field
mask_variant [in]
If true, the field mask is varying in time
standard_name [in]
A standard name for the field
do_not_log [in]
if TRUE, field information is not logged
interp_method [in]
If 'none' indicates the field should not be interpolated as a scalar
tile_count [in]
The tile number for the current PE
area [in]
Diagnostic ID of the field containing the area attribute
volume [in]
Diagnostic ID of the field containing the volume attribute
Callers call graph
Text view
mom_diag_mediator::found_in_diagtable → mom_diag_manager_infra::register_static_field_infra
mom_diag_mediator::register_static_field → mom_diag_manager_infra::register_static_field_infra
mom_is_diag_mediator::found_in_diagtable → mom_diag_manager_infra::register_static_field_infra
mom_is_diag_mediator::register_mom_is_static_field → mom_diag_manager_infra::register_static_field_infra
External calls
- diag_manager_mod
register_static_field_fms (diag_manager_mod::register_static_field)
- logical function send_data_infra_0d(diag_field_id, field, time, err_msg)
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
field [in]
The value being recorded
time [in]
The time for the current record
err_msg [out]
An optional error message
External calls
- diag_manager_mod
send_data_fms (diag_manager_mod::send_data)
- logical function send_data_infra_1d(diag_field_id, field, is_in, ie_in, time, mask, rmask, weight, err_msg)
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
field [in]
A 1-d array of values being recorded
is_in [in]
The starting index for the data being recorded
ie_in [in]
The end index for the data being recorded
time [in]
The time for the current record
mask [in]
An optional rank 1 logical mask
rmask [in]
An optional rank 1 mask array
weight [in]
A scalar weight factor to apply to the current record if there is averaging in time
err_msg [out]
A log indicating the status of the post upon returning to the calling routine
External calls
- diag_manager_mod
send_data_fms (diag_manager_mod::send_data)
- logical function send_data_infra_2d(diag_field_id, field, is_in, ie_in, js_in, je_in, time, mask, rmask, weight, err_msg)
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
field [in]
A 2-d array of values being recorded
is_in [in]
The starting i-index for the data being recorded
ie_in [in]
The end i-index for the data being recorded
js_in [in]
The starting j-index for the data being recorded
je_in [in]
The end j-index for the data being recorded
time [in]
The time for the current record
mask [in]
An optional 2-d logical mask
rmask [in]
An optional 2-d mask array
weight [in]
A scalar weight factor to apply to the current record if there is averaging in time
err_msg [out]
A log indicating the status of the post upon returning to the calling routine
External calls
- diag_manager_mod
send_data_fms (diag_manager_mod::send_data)
- logical function send_data_infra_3d(diag_field_id, field, is_in, ie_in, js_in, je_in, ks_in, ke_in, time, mask, rmask, weight, err_msg)
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
field [in]
A rank 1 array of floating point values being recorded
is_in [in]
The starting i-index for the data being recorded
ie_in [in]
The end i-index for the data being recorded
js_in [in]
The starting j-index for the data being recorded
je_in [in]
The end j-index for the data being recorded
ks_in [in]
The starting k-index for the data being recorded
ke_in [in]
The end k-index for the data being recorded
time [in]
The time for the current record
mask [in]
An optional 3-d logical mask
rmask [in]
An optional 3-d mask array
weight [in]
A scalar weight factor to apply to the current record if there is averaging in time
err_msg [out]
A log indicating the status of the post upon returning to the calling routine
External calls
- diag_manager_mod
send_data_fms (diag_manager_mod::send_data)
- subroutine MOM_diag_field_add_attribute_scalar_r(diag_field_id, att_name, att_value)
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
The diagnostic manager identifier for this field A 2-d array of values being recorded The starting i-index for the data being recorded The end i-index for the data being recorded The starting j-index for the data being recorded The end j-index for the data being recorded The time for the current record An optional 2-d logical mask An optional 2-d mask array A scalar weight factor to apply to the current record if there is averaging in time A log indicating the status of the post upon returning to the calling routine
Returns true if the argument data are successfully passed to a diagnostic manager with the indicated unique reference id, false otherwise.
The diagnostic manager identifier for this field A rank 1 array of floating point values being recorded The starting i-index for the data being recorded The end i-index for the data being recorded The starting j-index for the data being recorded The end j-index for the data being recorded The starting k-index for the data being recorded The end k-index for the data being recorded The time for the current record An optional 3-d logical mask An optional 3-d mask array A scalar weight factor to apply to the current record if there is averaging in time A log indicating the status of the post upon returning to the calling routine
Add a real scalar attribute to a diagnostic field
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
att_name [in]
The name of the attribute
att_value [in]
A real scalar value
External calls
- diag_manager_mod
FMS_diag_field_add_attribute (diag_manager_mod::diag_field_add_attribute)
- subroutine MOM_diag_field_add_attribute_scalar_i(diag_field_id, att_name, att_value)
Add an integer attribute to a diagnostic field
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
att_name [in]
The name of the attribute
att_value [in]
An integer scalar value
External calls
- diag_manager_mod
FMS_diag_field_add_attribute (diag_manager_mod::diag_field_add_attribute)
- subroutine MOM_diag_field_add_attribute_scalar_c(diag_field_id, att_name, att_value)
Add a character string attribute to a diagnostic field
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
att_name [in]
The name of the attribute
att_value [in]
A character string value
External calls
- diag_manager_mod
FMS_diag_field_add_attribute (diag_manager_mod::diag_field_add_attribute)
- subroutine MOM_diag_field_add_attribute_r1d(diag_field_id, att_name, att_value)
Add a real list of attributes attribute to a diagnostic field
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
att_name [in]
The name of the attribute
att_value [in]
An array of real values
External calls
- diag_manager_mod
FMS_diag_field_add_attribute (diag_manager_mod::diag_field_add_attribute)
- subroutine MOM_diag_field_add_attribute_i1d(diag_field_id, att_name, att_value)
Add a integer list of attributes attribute to a diagnostic field
- Parameters
diag_field_id [in]
The diagnostic manager identifier for this field
att_name [in]
The name of the attribute
att_value [in]
An array of integer values
External calls
- diag_manager_mod
FMS_diag_field_add_attribute (diag_manager_mod::diag_field_add_attribute)
- subroutine diag_send_complete_infra()
Finishes the diag manager reduction methods as needed for the time_step
Callers call graph
External calls
- diag_manager_mod
diag_send_complete (diag_manager_mod::diag_send_complete)
- time_manager_mod
set_time (time_manager_mod::set_time)
- subroutine diag_manager_set_time_end_infra(time)
Sets the time that the simulation ends in the diag manager
- Parameters
time [in]
The time the simulation ends
Callers call graph
External calls
- diag_manager_mod
diag_manager_set_time_end (diag_manager_mod::diag_manager_set_time_end)