MOM_checksums module reference
Routines to calculate checksums of various array and vector types
Generic Interfaces
Checksums a pair of arrays (2d or 3d) staggered at tracer points |
|
Checksums a pair velocity arrays (2d or 3d) staggered at C-grid locations |
|
Checksums an array (2d or 3d) staggered at C-grid u points. |
|
Checksums an array (2d or 3d) staggered at C-grid v points. |
|
Checksums a pair of arrays (2d or 3d) staggered at corner points |
|
Checksums an array (2d or 3d) staggered at tracer points. |
|
Checksums an array (2d or 3d) staggered at corner points. |
|
This is an older interface that has been renamed Bchksum |
|
This is an older interface for 1-, 2-, or 3-D checksums |
|
Write a message with either checksums or numerical statistics of arrays |
|
Returns .true. if any element of x is a NaN, and .false. otherwise. |
|
Compute the checksum on all elements of a field that may need to be rotated or unscaled. This interface uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Compute the checksum on all elements of a field that may need to be rotated or unscaled. This interface uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
Functions/Subroutines
Checksum a scalar field (consistent with array checksums) |
|
Checksum a 1d array (typically a column). |
|
Checksums on a pair of 2d arrays staggered at tracer points. |
|
Checksums on a pair of 3d arrays staggered at tracer points. |
|
Checksums a 2d array staggered at tracer points. |
|
Checksums on a pair of 2d arrays staggered at q-points. |
|
Checksums on a pair of 3d arrays staggered at q-points. |
|
Checksums a 2d array staggered at corner points. |
|
Checksums a pair of 2d velocity arrays staggered at C-grid locations |
|
Checksums a pair of 3d velocity arrays staggered at C-grid locations |
|
Checksums a 2d array staggered at C-grid u points. |
|
Checksums a 2d array staggered at C-grid v points. |
|
Checksums a 3d array staggered at tracer points. |
|
Checksums a 3d array staggered at corner points. |
|
Checksums a 3d array staggered at C-grid u points. |
|
Checksums a 3d array staggered at C-grid v points. |
|
chksum1d does a checksum of a 1-dimensional array. |
|
chksum2d does a checksum of all data in a 2-d array. |
|
chksum3d does a checksum of all data in a 2-d array. |
|
This function returns .true. if x is a NaN, and .false. otherwise. |
|
Returns .true. if any element of x is a NaN, and .false. otherwise. |
|
Returns .true. if any element of x is a NaN, and .false. otherwise. |
|
Returns .true. if any element of x is a NaN, and .false. otherwise. |
|
Compute the field checksum of a scalar that may need to be unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Compute the field checksum of an entire 1d array that may need to be unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Compute the field checksum of an entire 2d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Compute the field checksum of an entire 3d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Compute the field checksum of an entire 4d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module. |
|
Write a message including the checksum of the non-shifted array |
|
Write a message including checksums of non-shifted and diagonally shifted arrays |
|
Write a message including checksums of non-shifted and laterally shifted arrays |
|
Write a message including checksums of non-shifted and southward shifted arrays |
|
Write a message including checksums of non-shifted and westward shifted arrays |
|
Write a message including checksums of non-shifted and southwestward shifted arrays |
|
Write a message including the global mean, maximum and minimum of an array |
|
MOM_checksums_init initializes the MOM_checksums module. As it happens, the only thing that it does is to log the version of this module. |
|
A wrapper for MOM_error used in the checksum code |
|
Does a bitcount of a number by first casting to an integer and then using BTEST to check bit by bit |
Generic Interface Documentation
- interface hchksum_pair
Checksums a pair of arrays (2d or 3d) staggered at tracer points
- interface uvchksum
Checksums a pair velocity arrays (2d or 3d) staggered at C-grid locations
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_checksums::interface::uvchksum
mom::step_mom_tracer_dyn → mom_checksums::interface::uvchksum
mom_barotropic::btstep_timeloop → mom_checksums::interface::uvchksum
mom_checksum_packages::mom_accel_chksum → mom_checksums::interface::uvchksum
mom_checksum_packages::mom_state_chksum_3arg → mom_checksums::interface::uvchksum
mom_checksum_packages::mom_state_chksum_5arg → mom_checksums::interface::uvchksum
mom_checksum_packages::mom_surface_chksum → mom_checksums::interface::uvchksum
mom_debugging::chksum_vec_c2d → mom_checksums::interface::uvchksum
mom_debugging::chksum_vec_c3d → mom_checksums::interface::uvchksum
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_checksums::interface::uvchksum
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_checksums::interface::uvchksum
mom_fixed_initialization::mom_initialize_fixed → mom_checksums::interface::uvchksum
mom_forcing_type::mom_mech_forcing_chksum → mom_checksums::interface::uvchksum
mom_grid_initialize::grid_metrics_chksum → mom_checksums::interface::uvchksum
mom_hor_visc::hor_visc_gme_setup → mom_checksums::interface::uvchksum
mom_ice_shelf::add_shelf_flux → mom_checksums::interface::uvchksum
mom_ice_shelf::add_shelf_forces → mom_checksums::interface::uvchksum
mom_ice_shelf::shelf_calc_flux → mom_checksums::interface::uvchksum
mom_interface_filter::interface_filter → mom_checksums::interface::uvchksum
mom_lateral_mixing_coeffs::calc_eady_growth_rate_2d → mom_checksums::interface::uvchksum
mom_lateral_mixing_coeffs::calc_resoln_function → mom_checksums::interface::uvchksum
mom_lateral_mixing_coeffs::calc_visbeck_coeffs_old → mom_checksums::interface::uvchksum
mom_meke::step_forward_meke → mom_checksums::interface::uvchksum
mom_offline_main::offline_advection_ale → mom_checksums::interface::uvchksum
mom_offline_main::offline_redistribute_residual → mom_checksums::interface::uvchksum
mom_offline_main::update_offline_fields → mom_checksums::interface::uvchksum
mom_open_boundary::copy_obc_thickness_reservoirs → mom_checksums::interface::uvchksum
mom_open_boundary::radiation_open_bdry_conds → mom_checksums::interface::uvchksum
mom_porous_barriers::porous_widths_interface → mom_checksums::interface::uvchksum
mom_porous_barriers::porous_widths_layer → mom_checksums::interface::uvchksum
mom_pressureforce_fv::pressureforce_fv_bouss → mom_checksums::interface::uvchksum
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_checksums::interface::uvchksum
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::uvchksum
mom_set_visc::set_viscous_bbl → mom_checksums::interface::uvchksum
mom_set_visc::set_viscous_ml → mom_checksums::interface::uvchksum
mom_state_initialization::mom_initialize_obcs → mom_checksums::interface::uvchksum
mom_state_initialization::mom_initialize_state → mom_checksums::interface::uvchksum
mom_thickness_diffuse::thickness_diffuse → mom_checksums::interface::uvchksum
mom_thickness_diffuse::thickness_diffuse_full → mom_checksums::interface::uvchksum
mom_tracer_hor_diff::tracer_hordiff → mom_checksums::interface::uvchksum
mom_vert_friction::vertvisc_coef → mom_checksums::interface::uvchksum
mom_vert_friction::vertvisc_remnant → mom_checksums::interface::uvchksum
- interface uchksum
Checksums an array (2d or 3d) staggered at C-grid u points.
Callers call graph
Text view
mom_checksums::chksum_v_2d → mom_checksums::interface::uchksum
mom_checksums::chksum_v_3d → mom_checksums::interface::uchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::uchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::uchksum
mom_is_diag_mediator::post_data_2d_low → mom_checksums::interface::uchksum
- interface vchksum
Checksums an array (2d or 3d) staggered at C-grid v points.
Callers call graph
Text view
mom_checksums::chksum_u_2d → mom_checksums::interface::vchksum
mom_checksums::chksum_u_3d → mom_checksums::interface::vchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::vchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::vchksum
mom_is_diag_mediator::post_data_2d_low → mom_checksums::interface::vchksum
- interface Bchksum_pair
Checksums a pair of arrays (2d or 3d) staggered at corner points
Callers call graph
- interface hchksum
Checksums an array (2d or 3d) staggered at tracer points.
Callers call graph
Text view
marbl_tracers::marbl_tracers_column_physics → mom_checksums::interface::hchksum
mom::ale_regridding_and_remapping → mom_checksums::interface::hchksum
mom::step_mom_tracer_dyn → mom_checksums::interface::hchksum
mom_barotropic::btstep_timeloop → mom_checksums::interface::hchksum
mom_cfc_cap::cfc_cap_set_forcing → mom_checksums::interface::hchksum
mom_checksum_packages::mom_accel_chksum → mom_checksums::interface::hchksum
mom_checksum_packages::mom_state_chksum_3arg → mom_checksums::interface::hchksum
mom_checksum_packages::mom_state_chksum_5arg → mom_checksums::interface::hchksum
mom_checksum_packages::mom_surface_chksum → mom_checksums::interface::hchksum
mom_checksum_packages::mom_thermo_chksum → mom_checksums::interface::hchksum
mom_cvmix_conv::calculate_cvmix_conv → mom_checksums::interface::hchksum
mom_cvmix_kpp::kpp_calculate → mom_checksums::interface::hchksum
mom_cvmix_kpp::kpp_compute_bld → mom_checksums::interface::hchksum
mom_debugging::chksum_vec_a2d → mom_checksums::interface::hchksum
mom_debugging::chksum_vec_a3d → mom_checksums::interface::hchksum
mom_diabatic_driver::diabatic_ale → mom_checksums::interface::hchksum
mom_diabatic_driver::diabatic_ale_legacy → mom_checksums::interface::hchksum
mom_diabatic_driver::layered_diabatic → mom_checksums::interface::hchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::hchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::hchksum
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_checksums::interface::hchksum
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_checksums::interface::hchksum
mom_energetic_pbl::energetic_pbl → mom_checksums::interface::hchksum
mom_fixed_initialization::mom_initialize_fixed → mom_checksums::interface::hchksum
mom_forcing_type::mom_forcing_chksum → mom_checksums::interface::hchksum
mom_forcing_type::mom_mech_forcing_chksum → mom_checksums::interface::hchksum
mom_grid_initialize::grid_metrics_chksum → mom_checksums::interface::hchksum
mom_hor_bnd_diffusion::hor_bnd_diffusion → mom_checksums::interface::hchksum
mom_hor_visc::hor_visc_init → mom_checksums::interface::hchksum
mom_hor_visc::horizontal_viscosity_block → mom_checksums::interface::hchksum
mom_horizontal_regridding::horiz_interp_and_extrap_tracer_fms_id → mom_checksums::interface::hchksum
mom_horizontal_regridding::horiz_interp_and_extrap_tracer_record → mom_checksums::interface::hchksum
mom_ice_shelf::add_shelf_flux → mom_checksums::interface::hchksum
mom_ice_shelf::initialize_ice_shelf → mom_checksums::interface::hchksum
mom_ice_shelf::initialize_ice_shelf_fluxes → mom_checksums::interface::hchksum
mom_ice_shelf::shelf_calc_flux → mom_checksums::interface::hchksum
mom_ice_shelf::update_ice_smb → mom_checksums::interface::hchksum
mom_ice_shelf_dynamics::ice_shelf_temp → mom_checksums::interface::hchksum
mom_int_tide_input::set_int_tide_input → mom_checksums::interface::hchksum
mom_interface_filter::interface_filter → mom_checksums::interface::hchksum
mom_interface_heights::calc_derived_thermo → mom_checksums::interface::hchksum
mom_internal_tides::itidal_lowmode_loss → mom_checksums::interface::hchksum
mom_internal_tides::propagate_int_tide → mom_checksums::interface::hchksum
mom_is_diag_mediator::post_data_2d_low → mom_checksums::interface::hchksum
mom_kappa_shear::calc_kappa_shear_vertex → mom_checksums::interface::hchksum
mom_kappa_shear::calculate_kappa_shear → mom_checksums::interface::hchksum
mom_lateral_mixing_coeffs::calc_resoln_function → mom_checksums::interface::hchksum
mom_meke::step_forward_meke → mom_checksums::interface::hchksum
mom_mixed_layer_restrat::mixedlayer_restrat_bodner → mom_checksums::interface::hchksum
mom_mixed_layer_restrat::mixedlayer_restrat_om4 → mom_checksums::interface::hchksum
mom_offline_main::offline_advection_ale → mom_checksums::interface::hchksum
mom_offline_main::offline_diabatic_ale → mom_checksums::interface::hchksum
mom_offline_main::offline_fw_fluxes_into_ocean → mom_checksums::interface::hchksum
mom_offline_main::offline_fw_fluxes_out_ocean → mom_checksums::interface::hchksum
mom_offline_main::offline_redistribute_residual → mom_checksums::interface::hchksum
mom_offline_main::update_offline_fields → mom_checksums::interface::hchksum
mom_pressureforce_fv::pressureforce_fv_bouss → mom_checksums::interface::hchksum
mom_pressureforce_fv::pressureforce_fv_nonbouss → mom_checksums::interface::hchksum
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::hchksum
mom_set_visc::set_viscous_bbl → mom_checksums::interface::hchksum
mom_state_initialization::mom_initialize_obcs → mom_checksums::interface::hchksum
mom_state_initialization::mom_initialize_state → mom_checksums::interface::hchksum
mom_thickness_diffuse::thickness_diffuse → mom_checksums::interface::hchksum
mom_thickness_diffuse::thickness_diffuse_full → mom_checksums::interface::hchksum
mom_tracer_registry::tracer_array_chksum → mom_checksums::interface::hchksum
mom_tracer_registry::tracer_reg_chksum → mom_checksums::interface::hchksum
mom_variables::mom_thermovar_chksum → mom_checksums::interface::hchksum
pseudo_salt_tracer::pseudo_salt_tracer_column_physics → mom_checksums::interface::hchksum
- interface Bchksum
Checksums an array (2d or 3d) staggered at corner points.
Callers call graph
Text view
mom_debugging::chksum_vec_b2d → mom_checksums::interface::bchksum
mom_debugging::chksum_vec_b3d → mom_checksums::interface::bchksum
mom_diag_mediator::post_data_2d_low → mom_checksums::interface::bchksum
mom_diag_mediator::post_data_3d_low → mom_checksums::interface::bchksum
mom_grid_initialize::grid_metrics_chksum → mom_checksums::interface::bchksum
mom_hor_visc::hor_visc_init → mom_checksums::interface::bchksum
mom_hor_visc::horizontal_viscosity_block → mom_checksums::interface::bchksum
mom_is_diag_mediator::post_data_2d_low → mom_checksums::interface::bchksum
mom_kappa_shear::calc_kappa_shear_vertex → mom_checksums::interface::bchksum
mom_set_diffusivity::set_diffusivity → mom_checksums::interface::bchksum
- interface qchksum
This is an older interface that has been renamed Bchksum
- interface chksum
This is an older interface for 1-, 2-, or 3-D checksums
Callers call graph
- interface chk_sum_msg
Write a message with either checksums or numerical statistics of arrays
Callers call graph
Text view
mom_checksums::chksum0 → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_b_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_b_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_h_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_h_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_u_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_u_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_v_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_v_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::zchksum → mom_checksums::interface::chk_sum_msg
- interface is_NaN
Returns .true. if any element of x is a NaN, and .false. otherwise.
Callers call graph
Text view
mom_checksums::chksum_b_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_b_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_h_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_h_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_u_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_u_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_v_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_v_3d → mom_checksums::interface::is_nan
mom_internal_tides::internal_tides_init → mom_checksums::interface::is_nan
mom_sum_output::write_energy → mom_checksums::interface::is_nan
- interface rotated_field_chksum
Compute the checksum on all elements of a field that may need to be rotated or unscaled. This interface uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- interface field_checksum
Compute the checksum on all elements of a field that may need to be rotated or unscaled. This interface uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
Functions/Subroutine Documentation
- subroutine chksum0(scalar, mesg, scale, logunit, unscale)
Checksum a scalar field (consistent with array checksums)
- Parameters
scalar [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
scaling
Explicit rescaling factor [a A-1 ~> 1]
iounit
Log IO unit
rs
Rescaled scalar [a]
bc
Scalar bitcount
Callees call graph
Callers call graph
- subroutine zchksum(array, mesg, scale, logunit, unscale)
Checksum a 1d array (typically a column).
- Parameters
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Callers call graph
integer function subchk(array, unscale)
- Parameters
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
subroutine subStats(array, aMean, aMin, aMax)
- Parameters
array [in]
The array to be checksummed [a]
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
- subroutine chksum_pair_h_2d(mesg, arrayA, arrayB, HI, haloshift, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums on a pair of 2d arrays staggered at tracer points.
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayA [in]
The first array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayB [in]
The second array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
haloshift [in]
The width of halos to check (default 0)
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert these arrays back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
Callees call graph
Text view
- subroutine chksum_pair_h_3d(mesg, arrayA, arrayB, HI, haloshift, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums on a pair of 3d arrays staggered at tracer points.
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayA [in]
The first array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayB [in]
The second array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
haloshift [in]
The width of halos to check (default 0)
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
Callees call graph
Text view
- subroutine chksum_h_2d(array_m, mesg, HI_m, haloshift, omit_corners, scale, logunit, unscale)
Checksums a 2d array staggered at tracer points.
- Parameters
HI_m [in]
Horizontal index bounds of the model grid
array_m [in]
Field array on the model grid in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_h_2d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_h_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_h_2d → mom_checksums::chksum_h_2d::subchk
mom_checksums::chksum_h_2d → mom_checksums::chksum_h_2d::substats
mom_checksums::chksum_h_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_h_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_h_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_h_2d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_h_2d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_h_2d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_h_2d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_h_2d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_pair_B_2d(mesg, arrayA, arrayB, HI, haloshift, symmetric, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums on a pair of 2d arrays staggered at q-points.
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayA [in]
The first array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayB [in]
The second array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
haloshift [in]
The width of halos to check (default 0)
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
Callees call graph
Text view
- subroutine chksum_pair_B_3d(mesg, arrayA, arrayB, HI, haloshift, symmetric, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums on a pair of 3d arrays staggered at q-points.
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayA [in]
The first array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayB [in]
The second array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
Callees call graph
Text view
- subroutine chksum_B_2d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 2d array staggered at corner points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_b_2d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_b_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_b_2d → mom_checksums::chksum_b_2d::subchk
mom_checksums::chksum_b_2d → mom_checksums::chksum_b_2d::substats
mom_checksums::chksum_b_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_b_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_b_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_b_2d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_b_2d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_b_2d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_b_2d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_b_2d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_uv_2d(mesg, arrayU, arrayV, HI, haloshift, symmetric, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums a pair of 2d velocity arrays staggered at C-grid locations
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayU [in]
The u-component array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayV [in]
The v-component array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert these arrays back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
- subroutine chksum_uv_3d(mesg, arrayU, arrayV, HI, haloshift, symmetric, omit_corners, scale, logunit, scalar_pair, unscale)
Checksums a pair of 3d velocity arrays staggered at C-grid locations
- Parameters
mesg [in]
Identifying messages
HI [in]
A horizontal index type
arrayU [in]
The u-component array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
arrayV [in]
The v-component array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert these arrays back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
scalar_pair [in]
If true, then the arrays describe a a scalar, rather than vector
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
- subroutine chksum_u_2d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 2d array staggered at C-grid u points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_u_2d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_u_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_u_2d → mom_checksums::chksum_u_2d::subchk
mom_checksums::chksum_u_2d → mom_checksums::chksum_u_2d::substats
mom_checksums::chksum_u_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_u_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_u_2d → mom_checksums::interface::vchksum
mom_checksums::chksum_u_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_u_2d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_u_2d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_u_2d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_u_2d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_u_2d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_v_2d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 2d array staggered at C-grid v points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_v_2d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_v_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_v_2d → mom_checksums::chksum_v_2d::subchk
mom_checksums::chksum_v_2d → mom_checksums::chksum_v_2d::substats
mom_checksums::chksum_v_2d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_v_2d → mom_checksums::interface::is_nan
mom_checksums::chksum_v_2d → mom_checksums::interface::uchksum
mom_checksums::chksum_v_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_v_2d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_v_2d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_v_2d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_v_2d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_v_2d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_h_3d(array_m, mesg, HI_m, haloshift, omit_corners, scale, logunit, unscale)
Checksums a 3d array staggered at tracer points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_h_3d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_h_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_h_3d → mom_checksums::chksum_h_3d::subchk
mom_checksums::chksum_h_3d → mom_checksums::chksum_h_3d::substats
mom_checksums::chksum_h_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_h_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_h_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_h_3d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_h_3d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_h_3d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_h_3d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_h_3d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_B_3d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 3d array staggered at corner points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_b_3d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_b_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_b_3d → mom_checksums::chksum_b_3d::subchk
mom_checksums::chksum_b_3d → mom_checksums::chksum_b_3d::substats
mom_checksums::chksum_b_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_b_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_b_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_b_3d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_b_3d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_b_3d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_b_3d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_b_3d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_u_3d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 3d array staggered at C-grid u points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_u_3d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_u_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_u_3d → mom_checksums::chksum_u_3d::subchk
mom_checksums::chksum_u_3d → mom_checksums::chksum_u_3d::substats
mom_checksums::chksum_u_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_u_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_u_3d → mom_checksums::interface::vchksum
mom_checksums::chksum_u_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_u_3d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Array mean [a]
aMin [out]
Array minimum [a]
aMax [out]
Array maximum [a]
Callees call graph
Text view
mom_checksums::chksum_u_3d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_u_3d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_u_3d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_u_3d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum_v_3d(array_m, mesg, HI_m, haloshift, symmetric, omit_corners, scale, logunit, unscale)
Checksums a 3d array staggered at C-grid v points.
- Parameters
HI_m [in]
A horizontal index type
array_m [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
mesg [in]
An identifying message
haloshift [in]
The width of halos to check (default 0)
symmetric [in]
If true, do the checksums on the full symmetric computational domain.
omit_corners [in]
If true, avoid checking diagonal shifts
scale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
logunit [in]
IO unit for checksum logging
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]. Here scale and unscale are synonymous, but unscale takes precedence if both are present.
iounit
Log IO unit
Callees call graph
Text view
mom_checksums::chksum_v_3d → mom_array_transform::interface::rotate_array
mom_checksums::chksum_v_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_v_3d → mom_checksums::chksum_v_3d::subchk
mom_checksums::chksum_v_3d → mom_checksums::chksum_v_3d::substats
mom_checksums::chksum_v_3d → mom_checksums::interface::chk_sum_msg
mom_checksums::chksum_v_3d → mom_checksums::interface::is_nan
mom_checksums::chksum_v_3d → mom_checksums::interface::uchksum
mom_checksums::chksum_v_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_v_3d → mom_murmur_hash::interface::murmur_hash
integer function subchk(array, HI, di, dj, unscale)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
di [in]
i- direction array shift for this checksum
dj [in]
j- direction array shift for this checksum
unscale [in]
A factor to convert this array back to unscaled units for checksums and output [a A-1 ~> 1]
Callees call graph
subroutine subStats(HI, array, sym_stats, aMean, aMin, aMax)
- Parameters
HI [in]
A horizontal index type
array [in]
The array to be checksummed [a]
sym_stats [in]
If true, evaluate the statistics on the full symmetric computational domain.
aMean [out]
Mean of array over domain [a]
aMin [out]
Minimum of array over domain [a]
aMax [out]
Maximum of array over domain [a]
Callees call graph
Text view
mom_checksums::chksum_v_3d::substats → mom_coms::interface::reproducing_sum
mom_checksums::chksum_v_3d::substats → mom_coms_infra::interface::max_across_pes
mom_checksums::chksum_v_3d::substats → mom_coms_infra::interface::min_across_pes
mom_checksums::chksum_v_3d::substats → mom_coms_infra::interface::sum_across_pes
- subroutine chksum1d(array, mesg, start_i, end_i, compare_PEs, logunit)
chksum1d does a checksum of a 1-dimensional array.
- Parameters
array [in]
The array to be summed (index starts at 1) in arbitrary units [A].
mesg [in]
An identifying message.
start_i [in]
The starting index for the sum (default 1)
end_i [in]
The ending index for the sum (default all)
compare_PEs [in]
If true, compare across PEs instead of summing and list the root_PE value (default true)
logunit [in]
IO unit for checksum logging
- subroutine chksum2d(array, mesg, logunit)
chksum2d does a checksum of all data in a 2-d array.
- Parameters
array [in]
The array to be checksummed in arbitrary units [A]
mesg [in]
An identifying message
logunit [in]
IO unit for checksum logging
- subroutine chksum3d(array, mesg, logunit)
chksum3d does a checksum of all data in a 2-d array.
- Parameters
array [in]
The array to be checksummed in arbitrary units [A]
mesg [in]
An identifying message
logunit [in]
IO unit for checksum logging
- function is_NaN_0d(x)
This function returns .true. if x is a NaN, and .false. otherwise.
- Parameters
x [in]
The value to be checked for NaNs in arbitrary units [A]
Callers call graph
- function is_NaN_1d(x, skip_mpp)
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
x [in]
The array to be checked for NaNs in arbitrary units [A]
skip_mpp [in]
If true, only check this array only on the local PE (default false).
Callees call graph
- function is_NaN_2d(x)
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
x [in]
The array to be checked for NaNs in arbitrary units [A]
Callees call graph
- function is_NaN_3d(x)
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
x [in]
The array to be checked for NaNs in arbitrary units [A]
Callees call graph
- function field_checksum_real_0d(field, pelist, mask_val, turns, unscale) result(chksum)
Compute the field checksum of a scalar that may need to be unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- Parameters
field [in]
Input scalar to be checksummed in arbitrary, possibly rescaled units [A ~> a]
pelist [in]
PE list of ranks to checksum
mask_val [in]
FMS mask value [nondim]
turns [in]
Number of quarter turns
unscale [in]
A factor to convert this array back to unscaled units for checksums [a A-1 ~> 1]
chksum
checksum of scalar
Callees call graph
- function field_checksum_real_1d(field, pelist, mask_val, turns, unscale) result(chksum)
Compute the field checksum of an entire 1d array that may need to be unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- Parameters
field [in]
Input array to be checksummed in arbitrary, possibly rescaled units [A ~> a]
pelist [in]
PE list of ranks to checksum
mask_val [in]
FMS mask value [nondim]
turns [in]
Number of quarter turns
unscale [in]
A factor to convert this array back to unscaled units for checksums [a A-1 ~> 1]
chksum
checksum of array
Callees call graph
- function field_checksum_real_2d(field, pelist, mask_val, turns, unscale) result(chksum)
Compute the field checksum of an entire 2d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- Parameters
field [in]
Unrotated input field to be checksummed in arbitrary, possibly rescaled units [A ~> a]
pelist [in]
PE list of ranks to checksum
mask_val [in]
FMS mask value [nondim]
turns [in]
Number of quarter turns
unscale [in]
A factor to convert this array back to unscaled units for checksums [a A-1 ~> 1]
chksum
checksum of array
- function field_checksum_real_3d(field, pelist, mask_val, turns, unscale) result(chksum)
Compute the field checksum of an entire 3d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- Parameters
field [in]
Unrotated input field to be checksummed in arbitrary, possibly rescaled units [A ~> a]
pelist [in]
PE list of ranks to checksum
mask_val [in]
FMS mask value [nondim]
turns [in]
Number of quarter turns
unscale [in]
A factor to convert this array back to unscaled units for checksums [a A-1 ~> 1]
chksum
checksum of array
- function field_checksum_real_4d(field, pelist, mask_val, turns, unscale) result(chksum)
Compute the field checksum of an entire 4d array that may need to be rotated or unscaled. This uses the field_chksum function that is used to verify file contents, which may differ from the bitcount function used for other checksums in this module.
- Parameters
field [in]
Unrotated input field to be checksummed in arbitrary, possibly rescaled units [A ~> a]
pelist [in]
PE list of ranks to checksum
mask_val [in]
FMS mask value [nondim]
turns [in]
Number of quarter turns
unscale [in]
A factor to convert this array back to unscaled units for checksums [a A-1 ~> 1]
chksum
checksum of array
- subroutine chk_sum_msg1(fmsg, bc0, mesg, iounit)
Write a message including the checksum of the non-shifted array
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
iounit [in]
Checksum logger IO unit
- subroutine chk_sum_msg5(fmsg, bc0, bcSW, bcSE, bcNW, bcNE, mesg, iounit)
Write a message including checksums of non-shifted and diagonally shifted arrays
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
bcSW [in]
The bitcount for SW shifted array
bcSE [in]
The bitcount for SE shifted array
bcNW [in]
The bitcount for NW shifted array
bcNE [in]
The bitcount for NE shifted array
iounit [in]
Checksum logger IO unit
- subroutine chk_sum_msg_NSEW(fmsg, bc0, bcN, bcS, bcE, bcW, mesg, iounit)
Write a message including checksums of non-shifted and laterally shifted arrays
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
bcN [in]
The bitcount for N shifted array
bcS [in]
The bitcount for S shifted array
bcE [in]
The bitcount for E shifted array
bcW [in]
The bitcount for W shifted array
iounit [in]
Checksum logger IO unit
Callers call graph
Text view
mom_checksums::chksum_b_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_b_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_h_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_h_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_u_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_u_3d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_v_2d → mom_checksums::chk_sum_msg_nsew
mom_checksums::chksum_v_3d → mom_checksums::chk_sum_msg_nsew
- subroutine chk_sum_msg_S(fmsg, bc0, bcS, mesg, iounit)
Write a message including checksums of non-shifted and southward shifted arrays
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
bcS [in]
The bitcount of the south-shifted array
iounit [in]
Checksum logger IO unit
Callers call graph
- subroutine chk_sum_msg_W(fmsg, bc0, bcW, mesg, iounit)
Write a message including checksums of non-shifted and westward shifted arrays
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
bcW [in]
The bitcount of the west-shifted array
iounit [in]
Checksum logger IO unit
Callers call graph
- subroutine chk_sum_msg2(fmsg, bc0, bcSW, mesg, iounit)
Write a message including checksums of non-shifted and southwestward shifted arrays
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
bc0 [in]
The bitcount of the non-shifted array
bcSW [in]
The bitcount of the southwest-shifted array
iounit [in]
Checksum logger IO unit
- subroutine chk_sum_msg3(fmsg, aMean, aMin, aMax, mesg, iounit)
Write a message including the global mean, maximum and minimum of an array
- Parameters
fmsg [in]
A checksum code-location specific preamble
mesg [in]
An identifying message supplied by top-level caller
aMean [in]
The mean value of the array in arbitrary units [A]
aMin [in]
The minimum value of the array [A]
aMax [in]
The maximum value of the array [A]
iounit [in]
Checksum logger IO unit
- subroutine MOM_checksums_init(param_file)
MOM_checksums_init initializes the MOM_checksums module. As it happens, the only thing that it does is to log the version of this module.
- Parameters
param_file [in]
A structure to parse for run-time parameters
Callees call graph
- subroutine chksum_error(signal, message)
A wrapper for MOM_error used in the checksum code
- Parameters
signal [in]
An error severity level, such as FATAL or WARNING
message [in]
An error message
Callers call graph
Text view
- integer function bitcount(x)
Does a bitcount of a number by first casting to an integer and then using BTEST to check bit by bit
- Parameters
x [in]
Number to be bitcount in arbitrary units [A]
xk
Kind type of x
Callers call graph
Text view
mom_checksums::chksum_b_2d::subchk → mom_checksums::bitcount
mom_checksums::chksum_b_3d::subchk → mom_checksums::bitcount
mom_checksums::chksum_h_2d::subchk → mom_checksums::bitcount
mom_checksums::chksum_h_3d::subchk → mom_checksums::bitcount
mom_checksums::chksum_u_2d::subchk → mom_checksums::bitcount
mom_checksums::chksum_u_3d::subchk → mom_checksums::bitcount
mom_checksums::chksum_v_2d::subchk → mom_checksums::bitcount
mom_checksums::chksum_v_3d::subchk → mom_checksums::bitcount