Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ year_fraction()

double pism::Time::year_fraction ( double  T) const

Returns the fraction of a year that passed since the last beginning of a year. Only useful in codes with a "yearly cycle" (such as the PDD model).

Definition at line 809 of file Time.cc.

References pism::units::Unit::date(), m_calendar_string, m_time_units, and pism::units::Unit::time().

Referenced by pism::atmosphere::YearlyCycle::init_timeseries_impl().