#2022 Curve Calculator : Add enum Calculated

This commit is contained in:
Magne Sjaastad
2017-10-17 14:34:02 +02:00
parent f15f55795e
commit bd8abba779
6 changed files with 68 additions and 9 deletions

View File

@@ -103,6 +103,18 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldVarAddress(const std::st
return fieldAddr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifEclipseSummaryAddress RifEclipseSummaryAddress::calculatedCurveAddress(const std::string& curveName)
{
RifEclipseSummaryAddress fieldAddr;
fieldAddr.m_variableCategory = SUMMARY_CALCULATED;
fieldAddr.m_quantityName = curveName;
return fieldAddr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -45,7 +45,8 @@ public:
SUMMARY_WELL_COMPLETION_LGR,
SUMMARY_WELL_SEGMENT,
SUMMARY_BLOCK,
SUMMARY_BLOCK_LGR,
SUMMARY_BLOCK_LGR,
SUMMARY_CALCULATED
};
enum SummaryIdentifierType
@@ -104,6 +105,7 @@ public:
// Static specialized creation methods
static RifEclipseSummaryAddress fieldVarAddress(const std::string& fieldVarName);
static RifEclipseSummaryAddress calculatedCurveAddress(const std::string& curveName);
// Access methods