#1767 Add allTimeSteps() to get all time steps from file

This commit is contained in:
Magne Sjaastad
2017-08-28 15:17:03 +02:00
parent d4663fe6df
commit c443aefa5e
2 changed files with 18 additions and 1 deletions

View File

@@ -986,6 +986,21 @@ void RifReaderEclipseOutput::sourSimRlResult(const QString& result, size_t stepI
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<QDateTime> RifReaderEclipseOutput::allTimeSteps() const
{
std::vector<QDateTime> steps;
if (m_dynamicResultsAccess.notNull())
{
std::vector<double> dymmy;
m_dynamicResultsAccess->timeSteps(&steps, &dymmy);
}
return steps;
}
//--------------------------------------------------------------------------------------------------
/// Get dynamic result at given step index. Will concatenate values for the main grid and all sub grids.
//--------------------------------------------------------------------------------------------------