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

◆ check_forcing_duration()

void pism::check_forcing_duration ( const Time time,
double  forcing_start,
double  forcing_end 
)

Check if the modeled time interval is a subset of the time interval in a forcing file.

Returns silently if it is, otherwise throws an exception with an error message.

Definition at line 934 of file Time.cc.

References pism::Time::date(), pism::Time::end(), pism::RuntimeError::formatted(), PISM_ERROR_LOCATION, and pism::Time::start().

Referenced by pism::array::Forcing::init(), and pism::ScalarForcing::initialize().