PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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 674 of file Time.cc.

References pism::units::convert(), m_unit_system, pism::member(), seconds_to_years(), and units().

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