Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

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