PISM, A Parallel Ice Sheet Model 2.3.3-e0e7dfb06 committed by Constantine Khrulev on 2026-10-20
Loading...
Searching...
No Matches

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

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

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