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

◆ 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::File::filename(), pism::File::find_variable(), pism::RuntimeError::formatted(), PISM_ERROR_LOCATION, and pism::File::read_text_attribute().

Referenced by calendar(), and start_time().