PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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().