MOM_time_manager module reference

Wraps the FMS time manager functions

Functions/Subroutines

real_to_time

Returns a time_type version of a real time in seconds, using an alternate implementation to the FMS function real_to_time_type that is accurate over a larger range of input values. With 32 bit signed integers, this version should work over the entire valid range (2^31 days or ~5.8835 million years) of time_types, whereas the standard version in the FMS time_manager stops working for conversions of times greater than 2^31 seconds, or ~68.1 years.

time_to_real

Returns the real number of seconds encoded in the time type [s] or the rescaled amount of time in other units, often [T ~> s]

time_minus_signed

Returns a real number representing time_a - time_b in [s] or [T ~> s] if scale is present. The FMS - operator for time types returns a new time type representing a difference that is always >= 0. In contrast, this function returns a negative real number if time_b > time_a, and a positive real otherwise, as would be expected for subtraction.

Functions/Subroutine Documentation

type(time_type) function real_to_time(time_in, err_msg, unscale)

Returns a time_type version of a real time in seconds, using an alternate implementation to the FMS function real_to_time_type that is accurate over a larger range of input values. With 32 bit signed integers, this version should work over the entire valid range (2^31 days or ~5.8835 million years) of time_types, whereas the standard version in the FMS time_manager stops working for conversions of times greater than 2^31 seconds, or ~68.1 years.

Parameters
  • time_in [in]

    The input time in [s] or [T ~> s]

  • err_msg [out]

    An optional returned error message.

  • unscale [in]

    A scaling factor that the input time is multiplied by, often in [s T-1 ~> nondim]

Callers call graph
Callers of mom_time_manager::real_to_time calls cluster_External External cluster_mom MOM cluster_mom_barotropic MOM_barotropic cluster_mom_controlled_forcing MOM_controlled_forcing cluster_mom_diabatic_driver MOM_diabatic_driver cluster_mom_dynamics_split_rk2 MOM_dynamics_split_RK2 cluster_mom_dynamics_split_rk2b MOM_dynamics_split_RK2b cluster_mom_dynamics_unsplit MOM_dynamics_unsplit cluster_mom_file_parser MOM_file_parser cluster_mom_harmonic_analysis MOM_harmonic_analysis cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_oda_driver_mod MOM_oda_driver_mod cluster_mom_offline_main MOM_offline_main cluster_mom_restart MOM_restart cluster_mom_time_manager MOM_time_manager External::mom6 MOM6 mom_time_manager::real_to_time real_to_time External::mom6->mom_time_manager::real_to_time mom::initialize_mom initialize_MOM mom::initialize_mom->mom_time_manager::real_to_time mom::step_mom step_MOM mom::step_mom->mom_time_manager::real_to_time mom::step_mom_dynamics step_MOM_dynamics [private/internal] mom::step_mom_dynamics->mom_time_manager::real_to_time mom::step_offline step_offline mom::step_offline->mom_time_manager::real_to_time mom_barotropic::btstep_timeloop btstep_timeloop [private/internal] mom_barotropic::btstep_timeloop->mom_time_manager::real_to_time mom_controlled_forcing::apply_ctrl_forcing apply_ctrl_forcing mom_controlled_forcing::apply_ctrl_forcing->mom_time_manager::real_to_time mom_diabatic_driver::diabatic diabatic mom_diabatic_driver::diabatic->mom_time_manager::real_to_time mom_dynamics_split_rk2::step_mom_dyn_split_rk2 step_MOM_dyn_split_RK2 mom_dynamics_split_rk2::step_mom_dyn_split_rk2->mom_time_manager::real_to_time mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b step_MOM_dyn_split_RK2b mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b->mom_time_manager::real_to_time mom_dynamics_unsplit::step_mom_dyn_unsplit step_MOM_dyn_unsplit mom_dynamics_unsplit::step_mom_dyn_unsplit->mom_time_manager::real_to_time mom_file_parser::read_param_time read_param_time [private/internal] mom_file_parser::read_param_time->mom_time_manager::real_to_time mom_harmonic_analysis::ha_init HA_init mom_harmonic_analysis::ha_init->mom_time_manager::real_to_time mom_ice_shelf::add_shelf_flux add_shelf_flux [private/internal] mom_ice_shelf::add_shelf_flux->mom_time_manager::real_to_time mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_ice_shelf::shelf_calc_flux->mom_time_manager::real_to_time mom_oda_driver_mod::set_analysis_time set_analysis_time mom_oda_driver_mod::set_analysis_time->mom_time_manager::real_to_time mom_offline_main::offline_transport_init offline_transport_init mom_offline_main::offline_transport_init->mom_time_manager::real_to_time mom_restart::restore_state restore_state mom_restart::restore_state->mom_time_manager::real_to_time
Text view

External calls

time_manager_mod
  • get_ticks_per_second (time_manager_mod::get_ticks_per_second)

  • set_time (time_manager_mod::set_time)

real function time_to_real(time, scale)

Returns the real number of seconds encoded in the time type [s] or the rescaled amount of time in other units, often [T ~> s]

Parameters
  • time [in]

    The time to be converted.

  • scale [in]

    A scaling factor that returned the time is multiplied by, often in [T s-1 ~> nondim]

Callers call graph
Callers of mom_time_manager::time_to_real calls cluster_External External cluster_dyed_channel_initialization dyed_channel_initialization cluster_ideal_age_example ideal_age_example cluster_idealized_hurricane Idealized_hurricane cluster_kelvin_initialization Kelvin_initialization cluster_mom_harmonic_analysis MOM_harmonic_analysis cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_streaming_filter MOM_streaming_filter cluster_mom_surface_forcing MOM_surface_forcing cluster_mom_time_manager MOM_time_manager cluster_shelfwave_initialization shelfwave_initialization cluster_tidal_bay_initialization tidal_bay_initialization External::mom6 MOM6 mom_time_manager::time_to_real time_to_real External::mom6->mom_time_manager::time_to_real dyed_channel_initialization::dyed_channel_update_flow dyed_channel_update_flow dyed_channel_initialization::dyed_channel_update_flow->mom_time_manager::time_to_real ideal_age_example::ideal_age_tracer_column_physics ideal_age_tracer_column_physics ideal_age_example::ideal_age_tracer_column_physics->mom_time_manager::time_to_real idealized_hurricane::idealized_hurricane_wind_forcing idealized_hurricane_wind_forcing idealized_hurricane::idealized_hurricane_wind_forcing->mom_time_manager::time_to_real kelvin_initialization::kelvin_set_obc_data Kelvin_set_OBC_data kelvin_initialization::kelvin_set_obc_data->mom_time_manager::time_to_real mom_harmonic_analysis::ha_accum HA_accum mom_harmonic_analysis::ha_accum->mom_time_manager::time_to_real mom_ice_shelf::solo_step_ice_shelf solo_step_ice_shelf mom_ice_shelf::solo_step_ice_shelf->mom_time_manager::time_to_real mom_streaming_filter::filt_accum Filt_accum mom_streaming_filter::filt_accum->mom_time_manager::time_to_real mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_time_manager::time_to_real mom_time_manager::time_minus_signed time_minus_signed mom_time_manager::time_minus_signed->mom_time_manager::time_to_real shelfwave_initialization::shelfwave_set_obc_data shelfwave_set_OBC_data shelfwave_initialization::shelfwave_set_obc_data->mom_time_manager::time_to_real tidal_bay_initialization::tidal_bay_set_obc_data tidal_bay_set_OBC_data tidal_bay_initialization::tidal_bay_set_obc_data->mom_time_manager::time_to_real
Text view

External calls

time_manager_mod
  • time_type_to_real (time_manager_mod::time_type_to_real)

real function time_minus_signed(time_a, time_b, scale)

Returns a real number representing time_a - time_b in [s] or [T ~> s] if scale is present. The FMS - operator for time types returns a new time type representing a difference that is always >= 0. In contrast, this function returns a negative real number if time_b > time_a, and a positive real otherwise, as would be expected for subtraction.

Parameters
  • time_a [in]

    Two times for calculating time_a - time_b

  • time_b [in]

    Two times for calculating time_a - time_b

  • scale [in]

    A scaling factor that returned the time is multiplied by, often in [T s-1 ~> nondim]

Callees call graph
Callees of mom_time_manager::time_minus_signed calls cluster_mom_time_manager MOM_time_manager mom_time_manager::time_minus_signed time_minus_signed mom_time_manager::time_to_real time_to_real mom_time_manager::time_minus_signed->mom_time_manager::time_to_real
Text view
Callers call graph
Callers of mom_time_manager::time_minus_signed calls cluster_mom_harmonic_analysis MOM_harmonic_analysis cluster_mom_open_boundary MOM_open_boundary cluster_mom_tidal_forcing MOM_tidal_forcing cluster_mom_time_manager MOM_time_manager cluster_mom_vert_friction MOM_vert_friction mom_harmonic_analysis::ha_accum HA_accum mom_time_manager::time_minus_signed time_minus_signed mom_harmonic_analysis::ha_accum->mom_time_manager::time_minus_signed mom_open_boundary::update_obc_dynamics_data update_OBC_dynamics_data mom_open_boundary::update_obc_dynamics_data->mom_time_manager::time_minus_signed mom_open_boundary::update_obc_ramp update_OBC_ramp mom_open_boundary::update_obc_ramp->mom_time_manager::time_minus_signed mom_tidal_forcing::astro_longitudes_init astro_longitudes_init mom_tidal_forcing::astro_longitudes_init->mom_time_manager::time_minus_signed mom_tidal_forcing::calc_tidal_forcing calc_tidal_forcing mom_tidal_forcing::calc_tidal_forcing->mom_time_manager::time_minus_signed mom_tidal_forcing::calc_tidal_forcing_legacy calc_tidal_forcing_legacy mom_tidal_forcing::calc_tidal_forcing_legacy->mom_time_manager::time_minus_signed mom_vert_friction::updatecfltruncationvalue updateCFLtruncationValue mom_vert_friction::updatecfltruncationvalue->mom_time_manager::time_minus_signed
Text view
API generated with Flint · Rendered from reStructuredText