PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
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 670 of file Time.cc.

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

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