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

◆ define_time() [2/2]

void pism::io::define_time ( const File file,
const std::string &  name,
const std::string &  calendar,
const std::string &  units,
units::System::Ptr  unit_system 
)

Define a time dimension and the corresponding coordinate variable. Does nothing if the time variable is already present.

Definition at line 225 of file io_helpers.cc.

References pism::RuntimeError::add_context(), pism::calendar(), define_dimension(), pism::File::filename(), pism::File::find_variable(), and PISM_UNLIMITED.