mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6654 Summary data: Add description for 6X specific summary vectors
This commit is contained in:
parent
4e4d71a3e3
commit
bca730bd10
@ -69,3 +69,21 @@ TEST( RiuSummaryQuantityNameInfoProvider, TestCustomNaming )
|
|||||||
EXPECT_TRUE( test == "Hydraulic head" );
|
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:
|
private:
|
||||||
RiuSummaryQuantityNameInfoProvider();
|
RiuSummaryQuantityNameInfoProvider();
|
||||||
void populateFieldToInfoMap();
|
|
||||||
|
|
||||||
RiuSummaryQuantityInfo quantityInfo( const std::string& quantity ) const;
|
RiuSummaryQuantityInfo quantityInfo( const std::string& quantity ) const;
|
||||||
|
|
||||||
|
static std::map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
|
||||||
|
static std::map<std::string, RiuSummaryQuantityInfo> createInfoFor6xKeywords();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::map<std::string, RiuSummaryQuantityInfo> m_summaryToDescMap;
|
std::map<std::string, RiuSummaryQuantityInfo> m_summaryToDescMap;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user