diff --git a/opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp b/opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp index 6549c1f9c..f10be9d41 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp @@ -103,6 +103,7 @@ namespace Opm time_t getStartTime() const; time_t posixStartTime() const; time_t posixEndTime() const; + time_t simTime(size_t timeStep) const; double seconds(size_t timeStep) const; double stepLength(size_t timeStep) const; diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp index 48fbd716f..75451d3de 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Schedule.cpp @@ -2149,6 +2149,9 @@ namespace Opm { return this->m_timeMap.seconds(timeStep); } + time_t Schedule::simTime(size_t timeStep) const { + return this->m_timeMap[timeStep]; + } double Schedule::stepLength(size_t timeStep) const { return this->m_timeMap.getTimeStepLength(timeStep);