TimeMap.hpp
Go to the documentation of this file.
58 bool isTimestepInFirstOfMonthsYearsSequence(size_t timestep, bool years = true, size_t start_timestep = 1, size_t frequency = 1) const;
61 static boost::posix_time::ptime timeFromEclipse(int day , const std::string& month, int year, const std::string& eclipseTimeString = "00:00:00.000");
62 static boost::posix_time::time_duration dayTimeFromEclipse(const std::string& eclipseTimeString);
70 bool isTimestepInFreqSequence (size_t timestep, size_t start_timestep, size_t frequency, bool years) const;
Definition: TimeMap.hpp:34 boost::posix_time::ptime getStartTime(size_t tStepIdx) const Return the date and time where a given time step starts. bool isTimestepInFirstOfMonthsYearsSequence(size_t timestep, bool years=true, size_t start_timestep=1, size_t frequency=1) const Definition: Deck.hpp:29 double getTimePassedUntil(size_t tLevelIdx) const Return the period of time in seconds which passed between the start of the simulation and a given poi... std::shared_ptr< const DeckKeyword > DeckKeywordConstPtr Definition: DeckKeyword.hpp:71 static boost::posix_time::time_duration dayTimeFromEclipse(const std::string &eclipseTimeString) void addTStep(boost::posix_time::time_duration step) size_t size() const TimeMap(boost::posix_time::ptime startDate) size_t numTimesteps() const double getTotalTime() const void initFirstTimestepsYears() void addTime(boost::posix_time::ptime newTime) static boost::posix_time::ptime timeFromEclipse(DeckRecordConstPtr dateRecord) std::shared_ptr< const DeckRecord > DeckRecordConstPtr Definition: DeckRecord.hpp:54 double getTimeStepLength(size_t tStepIdx) const Return the length of a given time step in seconds. void initFirstTimestepsMonths() void addFromDATESKeyword(DeckKeywordConstPtr DATESKeyword) const boost::posix_time::ptime & operator[](size_t index) const void addFromTSTEPKeyword(DeckKeywordConstPtr TSTEPKeyword) |