mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#1933 Observed data: set isAVector correctly
This commit is contained in:
1 parent
b1e70c95b3
commit
b8f18dd4c8
2 files changed
+11
No files matched your search
@@ -345,6 +345,14 @@ std::vector<ColumnInfo> RifRsmspecParserTools::columnInfoForTable(std::stringstr
|
||||
table[i].summaryAddress = makeAndFillAddress(quantityNames.at(i), restOfHeaderColumn);
|
||||
}
|
||||
|
||||
for (ColumnInfo& column : table)
|
||||
{
|
||||
if (column.summaryAddress.category() != RifEclipseSummaryAddress::SUMMARY_INVALID)
|
||||
{
|
||||
column.isAVector = true;
|
||||
}
|
||||
}
|
||||
|
||||
return table;
|
||||
}
|
||||
|
||||
|
||||
@@ -366,6 +366,9 @@ TEST(RifColumnBasedRsmspecParserTest, TestTableValues)
|
||||
ASSERT_EQ(18, tables.at(0).at(0).values.size());
|
||||
ASSERT_EQ(4, tables.at(1).at(0).values.size());
|
||||
|
||||
EXPECT_TRUE(tables.at(0).at(2).isAVector);
|
||||
EXPECT_FALSE(tables.at(1).at(0).isAVector);
|
||||
|
||||
EXPECT_EQ(0.0, tables.at(0).at(1).values.at(6));
|
||||
EXPECT_EQ(282, tables.at(0).at(3).values.at(6));
|
||||
|
||||
|
||||
Reference in new issue
Block a user