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

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