PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
Loading...
Searching...
No Matches

◆ calendar_from_file()

static std::string pism::calendar_from_file ( const File file,
const std::string &  time_name,
const std::string &  default_value,
bool  stop_on_error 
)
static

Get the calendar name from a file.

Definition at line 79 of file Time.cc.

References pism::RuntimeError::formatted(), pism::File::name(), PISM_ERROR_LOCATION, pism::File::read_text_attribute(), and pism::File::variable_exists().

Referenced by calendar(), and start_time().