Merge pull request #1476 from joakim-hove/timemap-skiprest

Internalize the existence of SKIPREST in the TimeMap
This commit is contained in:
Joakim Hove
2020-02-18 11:57:24 +01:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ namespace Opm {
/// Return the date and time where a given time step starts.
std::time_t getStartTime(size_t tStepIdx) const;
std::time_t getEndTime() const;
bool skiprest() const;
/// Return the period of time in seconds which passed between the start of the simulation and a given point in time.
double getTimePassedUntil(size_t tLevelIdx) const;
/// Return the length of a given time step in seconds.
@@ -95,6 +96,7 @@ namespace Opm {
std::vector<std::time_t> m_timeList;
std::vector<StepData> m_first_timestep_years; // A list of the first timestep of every year
std::vector<StepData> m_first_timestep_months; // A list of the first timestep of every month
bool m_skiprest = false;
std::size_t m_restart_offset = 0;
};
}