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

◆ init_interpolation()

void pism::array::Forcing::init_interpolation ( const std::vector< double > &  ts)

Compute weights for the piecewise-constant interpolation. This is used both for time-series and "snapshots".

Parameters
tsrequested times, in seconds

Definition at line 774 of file Forcing.cc.

References pism::array::Forcing::Data::first, pism::array::Forcing::Data::interp, pism::array::Forcing::Data::interp_type, pism::k, m_data, pism::array::Forcing::Data::n_records, pism::array::Forcing::Data::period, pism::array::Forcing::Data::period_start, and pism::array::Forcing::Data::time.

Referenced by interp().