mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10210 Reveal Summary Import: map reveal names to eclipse names.
This gives better behavior in summary plot (correct phase colors and better default axis grouping). Fixes #10210.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "RiaQDateTimeTools.h"
|
||||
|
||||
#include "RifCsvUserDataParser.h"
|
||||
#include "RifEclipseSummaryAddress.h"
|
||||
#include "RifEclipseUserDataKeywordTools.h"
|
||||
#include "RifEclipseUserDataParserTools.h"
|
||||
|
||||
@@ -79,7 +80,21 @@ bool RifRevealCsvSectionSummaryReader::parse( const QString& text, RifEclipseSum
|
||||
{ "1000Sm3/d", { "SM3/DAY", 1000.0 } },
|
||||
{ "MSm3", { "SM3", 1000000.0 } } };
|
||||
|
||||
if ( !m_parser->parse( parseOptions, unitMapping ) )
|
||||
QString prefix = defaultCategory == RifEclipseSummaryAddress::SummaryVarCategory::SUMMARY_FIELD ? "F" : "W";
|
||||
|
||||
std::map<QString, QString> nameMapping = { { "WaterCut", prefix + "WCT" }, { "GOR", prefix + "GOR" },
|
||||
{ "BottomHolePressure", prefix + "BHP" }, { "CumLiquidInjected", prefix + "LIT" },
|
||||
{ "CumWaterInjected", prefix + "WIT" }, { "CumGasInjected", prefix + "GIT" },
|
||||
{ "CumOilInjected", prefix + "OIT" }, { "CumLiquidProduced", prefix + "LPT" },
|
||||
{ "CumWaterProduced", prefix + "WPT" }, { "CumGasProduced", prefix + "GPT" },
|
||||
{ "CumOilProduced", prefix + "OPT" }, { "LiquidProduced", prefix + "LPR" },
|
||||
{ "WaterProduced", prefix + "WPR" }, { "GasProduced", prefix + "GPR" },
|
||||
{ "OilProduced", prefix + "OPR" }, { "LiquidInjected", prefix + "LIR" },
|
||||
{ "WaterInjected", prefix + "WIR" }, { "GasInjected", prefix + "GIR" },
|
||||
{ "OilInjected", prefix + "OIR" }, { "WaterGasRatio", prefix + "WGR" },
|
||||
{ "GasLiftRate", prefix + "GLIR" } };
|
||||
|
||||
if ( !m_parser->parse( parseOptions, nameMapping, unitMapping ) )
|
||||
{
|
||||
RiaLogging::error( QString( "Failed to parse file" ) );
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user