PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Namespaces | Functions
Time.cc File Reference
#include <cmath>
#include <cassert>
#include <cstring>
#include <limits>
#include "pism/util/Time.hh"
#include "pism/external/calcalcs/calcalcs.h"
#include "pism/util/ConfigInterface.hh"
#include "pism/util/VariableMetadata.hh"
#include "pism/util/pism_utilities.hh"
#include "pism/util/error_handling.hh"
#include "pism/util/io/File.hh"
#include "pism/util/io/io_helpers.hh"
#include "pism/util/Logger.hh"
#include "pism/util/io/IO_Flags.hh"

Go to the source code of this file.

Namespaces

 pism
 

Functions

static std::string pism::reference_date_from_file (const File &file, const std::string &time_name, const std::string &default_value, bool stop_on_error)
 Get the reference date from a file. More...
 
static std::string pism::calendar_from_file (const File &file, const std::string &time_name, const std::string &default_value, bool stop_on_error)
 Get the calendar name from a file. More...
 
static std::string pism::reference_date (const File *input_file, const Config &config, const Logger &log)
 
static std::string pism::calendar (const File *input_file, const Config &config, const Logger &log)
 
static double pism::increment_date (const units::Unit &time_units, const std::string &calendar, double T, double years)
 
static double pism::parse_date (const std::string &input, const units::Unit &time_units, const std::string &calendar)
 
static double pism::start_time (const Config &config, const Logger &log, const File *file, const std::string &reference_date, const std::string &calendar, const units::Unit &time_units)
 
static double pism::end_time (const Config &config, double time_start, const std::string &calendar, const units::Unit &time_units)
 
void pism::check_forcing_duration (const Time &time, double forcing_start, double forcing_end)