#6654 Summary data: Add description for 6X specific summary vectors

This commit is contained in:
Magne Sjaastad committed 2020-10-02 13:16:45 -04:00
1 parent 4e4d71a3e3
commit bca730bd10
3 files changed
+2145 -1998

No files matched your search

@@ -69,3 +69,21 @@ TEST( RiuSummaryQuantityNameInfoProvider, TestCustomNaming )
EXPECT_TRUE( test == "Hydraulic head" );
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
TEST( RiuSummaryQuantityNameInfoProvider, Test6x )
{
{
std::string s( "GLIT" );
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->categoryFromQuantityName( s );
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_WELL_GROUP );
}
{
std::string s( "BDYNKZp" );
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->categoryFromQuantityName( s );
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_BLOCK );
}
}
File diff suppressed because it is too large. Load diff
@@ -54,10 +54,12 @@ private:
private:
RiuSummaryQuantityNameInfoProvider();
void populateFieldToInfoMap();
RiuSummaryQuantityInfo quantityInfo( const std::string& quantity ) const;
static std::map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
static std::map<std::string, RiuSummaryQuantityInfo> createInfoFor6xKeywords();
private:
std::map<std::string, RiuSummaryQuantityInfo> m_summaryToDescMap;
};