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

◆ 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().