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

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