PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ convert_time_interval()

double pism::Time::convert_time_interval ( double  T,
const std::string &  units 
) const

Convert time interval from seconds to given units. Handle 'years' using the year length corresponding to the calendar.

Definition at line 694 of file Time.cc.

References m_unit_system, seconds_to_years(), pism::set_member(), and units().

Referenced by pism::ocean::Cache::Cache(), and pism::surface::Cache::Cache().