mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1816 Observed data: Only one timesteps-vector in ascii parser
This commit is contained in:
@@ -51,11 +51,33 @@ const std::vector<QDateTime>& RifColumnBasedAsciiParser::timeSteps() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector<double>& RifColumnBasedAsciiParser::columnValues(size_t columnIndex) const
|
||||
const std::vector<double> RifColumnBasedAsciiParser::columnValues(size_t columnIndex) const
|
||||
{
|
||||
if (m_data.m_values.size() <= columnIndex)
|
||||
{
|
||||
std::vector<double> dummy;
|
||||
return dummy;
|
||||
}
|
||||
|
||||
return m_data.m_values[columnIndex];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const std::vector< std::vector<double> >& RifColumnBasedAsciiParser::values() const
|
||||
{
|
||||
return m_data.m_values;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const size_t RifColumnBasedAsciiParser::columnCount() const
|
||||
{
|
||||
return m_data.m_values.size();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user