MOM_time_manager module reference
Wraps the FMS time manager functions
Functions/Subroutines
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. |
|
Returns the real number of seconds encoded in the time type [s] or the rescaled amount of time in other units, often [T ~> s] |
|
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
Text view
mom_barotropic::btstep_timeloop → mom_time_manager::real_to_time
mom_controlled_forcing::apply_ctrl_forcing → mom_time_manager::real_to_time
mom_diabatic_driver::diabatic → mom_time_manager::real_to_time
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_time_manager::real_to_time
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_time_manager::real_to_time
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_time_manager::real_to_time
mom_file_parser::read_param_time → mom_time_manager::real_to_time
mom_harmonic_analysis::ha_init → mom_time_manager::real_to_time
mom_ice_shelf::add_shelf_flux → mom_time_manager::real_to_time
mom_ice_shelf::shelf_calc_flux → mom_time_manager::real_to_time
mom_oda_driver_mod::set_analysis_time → mom_time_manager::real_to_time
mom_offline_main::offline_transport_init → mom_time_manager::real_to_time
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
Text view
dyed_channel_initialization::dyed_channel_update_flow → mom_time_manager::time_to_real
ideal_age_example::ideal_age_tracer_column_physics → mom_time_manager::time_to_real
idealized_hurricane::idealized_hurricane_wind_forcing → mom_time_manager::time_to_real
kelvin_initialization::kelvin_set_obc_data → mom_time_manager::time_to_real
mom_harmonic_analysis::ha_accum → mom_time_manager::time_to_real
mom_ice_shelf::solo_step_ice_shelf → mom_time_manager::time_to_real
mom_streaming_filter::filt_accum → mom_time_manager::time_to_real
mom_surface_forcing::set_forcing → mom_time_manager::time_to_real
mom_time_manager::time_minus_signed → mom_time_manager::time_to_real
shelfwave_initialization::shelfwave_set_obc_data → mom_time_manager::time_to_real
tidal_bay_initialization::tidal_bay_set_obc_data → mom_time_manager::time_to_real
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]
Callers call graph
Text view
mom_harmonic_analysis::ha_accum → mom_time_manager::time_minus_signed
mom_open_boundary::update_obc_dynamics_data → mom_time_manager::time_minus_signed
mom_open_boundary::update_obc_ramp → mom_time_manager::time_minus_signed
mom_tidal_forcing::astro_longitudes_init → mom_time_manager::time_minus_signed
mom_tidal_forcing::calc_tidal_forcing → mom_time_manager::time_minus_signed
mom_tidal_forcing::calc_tidal_forcing_legacy → mom_time_manager::time_minus_signed
mom_vert_friction::updatecfltruncationvalue → mom_time_manager::time_minus_signed