PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ get_timeseries_length()

unsigned int pism::surface::PDDrandMassBalance::get_timeseries_length ( double  dt)
virtual

We need to compute simulated random temperature each actual day, or at least as close as we can reasonably get. Output N is number of days or number of days plus one.

Thus this method ignores config.get_number("surface.pdd.max_evals_per_year"), which is used in the base class PDDMassBalance.

Implementation of get_PDDs() requires returned N >= 2, so we guarantee that.

Reimplemented from pism::surface::PDDMassBalance.

Definition at line 334 of file localMassBalance.cc.

References pism::surface::LocalMassBalance::m_seconds_per_day, and pism::array::max().