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

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

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

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