mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
Reduce memory use for summary address object
* Use one common variable for object name, use three ints * Move enums to separate file * Refactor use of enums * Move implementation to cpp * Refactor includes
This commit is contained in:
1 parent
1b886c1a1e
commit
96b3bef878
70 files changed
+1252
-1038
No files matched your search
@@ -11,7 +11,7 @@ TEST( RiuSummaryQuantityNameInfoProvider, TestInit )
|
||||
{
|
||||
std::string s( "SRSFC" );
|
||||
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->identifyCategory( s );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddressDefines::SummaryVarCategory::SUMMARY_WELL_SEGMENT );
|
||||
|
||||
auto longName = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromVectorName( s );
|
||||
EXPECT_TRUE( longName == "Reach brine concentration" );
|
||||
@@ -27,7 +27,7 @@ TEST( RiuSummaryQuantityNameInfoProvider, TestInit )
|
||||
{
|
||||
std::string s( "does not exist" );
|
||||
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->identifyCategory( s );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_INVALID );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddressDefines::SummaryVarCategory::SUMMARY_INVALID );
|
||||
|
||||
auto longName = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromVectorName( s );
|
||||
|
||||
@@ -57,7 +57,7 @@ TEST( RiuSummaryQuantityNameInfoProvider, TestCustomNaming )
|
||||
{
|
||||
std::string s( "SRSFCABC" );
|
||||
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->identifyCategory( s );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_WELL_SEGMENT );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddressDefines::SummaryVarCategory::SUMMARY_WELL_SEGMENT );
|
||||
|
||||
auto longName = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromVectorName( s );
|
||||
EXPECT_TRUE( longName == "Reach brine concentration" );
|
||||
@@ -79,13 +79,13 @@ TEST( RiuSummaryQuantityNameInfoProvider, Test6x )
|
||||
{
|
||||
std::string s( "GLIT" );
|
||||
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->identifyCategory( s );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_GROUP );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddressDefines::SummaryVarCategory::SUMMARY_GROUP );
|
||||
}
|
||||
|
||||
{
|
||||
std::string s( "WSBVPROP" );
|
||||
auto cat = RiuSummaryQuantityNameInfoProvider::instance()->identifyCategory( s );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddress::SUMMARY_WELL );
|
||||
EXPECT_TRUE( cat == RifEclipseSummaryAddressDefines::SummaryVarCategory::SUMMARY_WELL );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user