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

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