mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Fixes by clang-format
This commit is contained in:
@@ -314,9 +314,8 @@ std::vector<QString> RiaSummaryAddressAnalyzer::identifierTexts( RifEclipseSumma
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
std::vector<RifEclipseSummaryAddress>
|
std::vector<RifEclipseSummaryAddress> RiaSummaryAddressAnalyzer::addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||||
RiaSummaryAddressAnalyzer::addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
RifEclipseSummaryAddressDefines::SummaryCategory category )
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category )
|
|
||||||
{
|
{
|
||||||
std::vector<RifEclipseSummaryAddress> filteredAddresses;
|
std::vector<RifEclipseSummaryAddress> filteredAddresses;
|
||||||
|
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ public:
|
|||||||
std::set<int> aquifers() const;
|
std::set<int> aquifers() const;
|
||||||
|
|
||||||
std::set<RifEclipseSummaryAddressDefines::SummaryCategory> categories() const;
|
std::set<RifEclipseSummaryAddressDefines::SummaryCategory> categories() const;
|
||||||
std::vector<std::vector<RifEclipseSummaryAddress>> addressesGroupedByObject() const;
|
std::vector<std::vector<RifEclipseSummaryAddress>> addressesGroupedByObject() const;
|
||||||
|
|
||||||
std::vector<QString> identifierTexts( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
std::vector<QString> identifierTexts( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const std::string& secondaryIdentifier ) const;
|
const std::string& secondaryIdentifier ) const;
|
||||||
|
|
||||||
static std::vector<RifEclipseSummaryAddress> addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
static std::vector<RifEclipseSummaryAddress> addressesForCategory( const std::set<RifEclipseSummaryAddress>& addresses,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category );
|
RifEclipseSummaryAddressDefines::SummaryCategory category );
|
||||||
|
|
||||||
static std::string correspondingHistorySummaryCurveName( const std::string& curveName );
|
static std::string correspondingHistorySummaryCurveName( const std::string& curveName );
|
||||||
|
|||||||
+2
-2
@@ -251,8 +251,8 @@ QString RicSaveMultiPlotTemplateFeature::createTextFromObject( RimSummaryMultiPl
|
|||||||
// Encode placeholder index. Use negative values below -1 to represent a placeholder index
|
// Encode placeholder index. Use negative values below -1 to represent a placeholder index
|
||||||
int index = -( i + 2 );
|
int index = -( i + 2 );
|
||||||
|
|
||||||
QString fieldKeyword = dummy.keywordForCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_REGION );
|
QString fieldKeyword = dummy.keywordForCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_REGION );
|
||||||
QString sourceString = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( regionNumbers[i] );
|
QString sourceString = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( regionNumbers[i] );
|
||||||
QString replacementTextWithIndex = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( index );
|
QString replacementTextWithIndex = QString( "<%1>%2</%1>" ).arg( fieldKeyword ).arg( index );
|
||||||
|
|
||||||
objectAsText.replace( sourceString, replacementTextWithIndex );
|
objectAsText.replace( sourceString, replacementTextWithIndex );
|
||||||
|
|||||||
@@ -108,20 +108,20 @@ RifEclipseSummaryAddress addressFromErtSmSpecNode( const ecl::smspec_node& ertSu
|
|||||||
}
|
}
|
||||||
|
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory sumCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID );
|
RifEclipseSummaryAddressDefines::SummaryCategory sumCategory( RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID );
|
||||||
std::string quantityName;
|
std::string quantityName;
|
||||||
int regionNumber( -1 );
|
int regionNumber( -1 );
|
||||||
int regionNumber2( -1 );
|
int regionNumber2( -1 );
|
||||||
std::string groupName;
|
std::string groupName;
|
||||||
std::string networkName;
|
std::string networkName;
|
||||||
std::string wellName;
|
std::string wellName;
|
||||||
int wellSegmentNumber( -1 );
|
int wellSegmentNumber( -1 );
|
||||||
std::string lgrName;
|
std::string lgrName;
|
||||||
int cellI( -1 );
|
int cellI( -1 );
|
||||||
int cellJ( -1 );
|
int cellJ( -1 );
|
||||||
int cellK( -1 );
|
int cellK( -1 );
|
||||||
int aquiferNumber( -1 );
|
int aquiferNumber( -1 );
|
||||||
bool isErrorResult( false );
|
bool isErrorResult( false );
|
||||||
int id( -1 );
|
int id( -1 );
|
||||||
|
|
||||||
quantityName = stringFromPointer( ertSumVarNode.get_keyword() );
|
quantityName = stringFromPointer( ertSumVarNode.get_keyword() );
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category, st
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category,
|
RifEclipseSummaryAddress::RifEclipseSummaryAddress( SummaryCategory category,
|
||||||
const std::string& vectorName,
|
const std::string& vectorName,
|
||||||
int regionNumber,
|
int regionNumber,
|
||||||
int regionNumber2,
|
int regionNumber2,
|
||||||
@@ -227,9 +227,9 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fromEclipseTextAddress( const
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldAddress( const std::string& vectorName, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldAddress( const std::string& vectorName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_FIELD;
|
addr.m_category = SummaryCategory::SUMMARY_FIELD;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,10 +239,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fieldAddress( const std::stri
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::aquiferAddress( const std::string& vectorName, int aquiferNumber, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::aquiferAddress( const std::string& vectorName, int aquiferNumber, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_AQUIFER;
|
addr.m_category = SummaryCategory::SUMMARY_AQUIFER;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_number0 = aquiferNumber;
|
addr.m_number0 = aquiferNumber;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,10 +253,10 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress::networkAddress( const std::string& vectorName, const std::string& networkName, int calculationId )
|
RifEclipseSummaryAddress::networkAddress( const std::string& vectorName, const std::string& networkName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_NETWORK;
|
addr.m_category = SummaryCategory::SUMMARY_NETWORK;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_name = networkName;
|
addr.m_name = networkName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,9 +266,9 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::miscAddress( const std::string& vectorName, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::miscAddress( const std::string& vectorName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_MISC;
|
addr.m_category = SummaryCategory::SUMMARY_MISC;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,10 +278,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::miscAddress( const std::strin
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::regionAddress( const std::string& vectorName, int regionNumber, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::regionAddress( const std::string& vectorName, int regionNumber, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_REGION;
|
addr.m_category = SummaryCategory::SUMMARY_REGION;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_number0 = regionNumber;
|
addr.m_number0 = regionNumber;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,11 +292,11 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress::regionToRegionAddress( const std::string& vectorName, int regionNumber, int region2Number, int calculationId )
|
RifEclipseSummaryAddress::regionToRegionAddress( const std::string& vectorName, int regionNumber, int region2Number, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_REGION_2_REGION;
|
addr.m_category = SummaryCategory::SUMMARY_REGION_2_REGION;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_number0 = regionNumber;
|
addr.m_number0 = regionNumber;
|
||||||
addr.m_number1 = region2Number;
|
addr.m_number1 = region2Number;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -306,10 +306,10 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::groupAddress( const std::string& vectorName, const std::string& groupName, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::groupAddress( const std::string& vectorName, const std::string& groupName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_GROUP;
|
addr.m_category = SummaryCategory::SUMMARY_GROUP;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_name = groupName;
|
addr.m_name = groupName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,10 +319,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::groupAddress( const std::stri
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::wellAddress( const std::string& vectorName, const std::string& wellName, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::wellAddress( const std::string& vectorName, const std::string& wellName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_WELL;
|
addr.m_category = SummaryCategory::SUMMARY_WELL;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_name = wellName;
|
addr.m_name = wellName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,9 +333,9 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress::wellCompletionAddress( const std::string& vectorName, const std::string& wellName, int i, int j, int k, int calculationId )
|
RifEclipseSummaryAddress::wellCompletionAddress( const std::string& vectorName, const std::string& wellName, int i, int j, int k, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION;
|
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_name = wellName;
|
addr.m_name = wellName;
|
||||||
addr.setCellIjk( i, j, k );
|
addr.setCellIjk( i, j, k );
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
@@ -350,11 +350,11 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::wellLgrAddress( const std::st
|
|||||||
int calculationId )
|
int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_WELL_LGR;
|
addr.m_category = SummaryCategory::SUMMARY_WELL_LGR;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_lgrName = lgrName;
|
addr.m_lgrName = lgrName;
|
||||||
addr.m_name = wellName;
|
addr.m_name = wellName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -370,10 +370,10 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::wellCompletionLgrAddress( con
|
|||||||
int calculationId )
|
int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION_LGR;
|
addr.m_category = SummaryCategory::SUMMARY_WELL_COMPLETION_LGR;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_lgrName = lgrName;
|
addr.m_lgrName = lgrName;
|
||||||
addr.m_name = wellName;
|
addr.m_name = wellName;
|
||||||
addr.setCellIjk( i, j, k );
|
addr.setCellIjk( i, j, k );
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
@@ -386,11 +386,11 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress::wellSegmentAddress( const std::string& vectorName, const std::string& wellName, int segmentNumber, int calculationId )
|
RifEclipseSummaryAddress::wellSegmentAddress( const std::string& vectorName, const std::string& wellName, int segmentNumber, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_WELL_SEGMENT;
|
addr.m_category = SummaryCategory::SUMMARY_WELL_SEGMENT;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_name = wellName;
|
addr.m_name = wellName;
|
||||||
addr.m_number0 = segmentNumber;
|
addr.m_number0 = segmentNumber;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,8 +400,8 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::blockAddress( const std::string& vectorName, int i, int j, int k, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::blockAddress( const std::string& vectorName, int i, int j, int k, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK;
|
addr.m_category = SummaryCategory::SUMMARY_BLOCK;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.setCellIjk( i, j, k );
|
addr.setCellIjk( i, j, k );
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
@@ -414,9 +414,9 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress::blockLgrAddress( const std::string& vectorName, const std::string& lgrName, int i, int j, int k, int calculationId )
|
RifEclipseSummaryAddress::blockLgrAddress( const std::string& vectorName, const std::string& lgrName, int i, int j, int k, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_BLOCK_LGR;
|
addr.m_category = SummaryCategory::SUMMARY_BLOCK_LGR;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_lgrName = lgrName;
|
addr.m_lgrName = lgrName;
|
||||||
addr.setCellIjk( i, j, k );
|
addr.setCellIjk( i, j, k );
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
@@ -428,9 +428,9 @@ RifEclipseSummaryAddress
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress( const std::string& vectorName, int calculationId )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress( const std::string& vectorName, int calculationId )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_IMPORTED;
|
addr.m_category = SummaryCategory::SUMMARY_IMPORTED;
|
||||||
addr.m_vectorName = vectorName;
|
addr.m_vectorName = vectorName;
|
||||||
addr.m_id = calculationId;
|
addr.m_id = calculationId;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,8 +440,8 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::importedAddress( const std::s
|
|||||||
RifEclipseSummaryAddress RifEclipseSummaryAddress::ensembleStatisticsAddress( const std::string& vectorName, const std::string& dataQuantityName )
|
RifEclipseSummaryAddress RifEclipseSummaryAddress::ensembleStatisticsAddress( const std::string& vectorName, const std::string& dataQuantityName )
|
||||||
{
|
{
|
||||||
RifEclipseSummaryAddress addr;
|
RifEclipseSummaryAddress addr;
|
||||||
addr.m_category = SummaryCategory::SUMMARY_ENSEMBLE_STATISTICS;
|
addr.m_category = SummaryCategory::SUMMARY_ENSEMBLE_STATISTICS;
|
||||||
addr.m_vectorName = vectorName + ":" + dataQuantityName;
|
addr.m_vectorName = vectorName + ":" + dataQuantityName;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ RifReaderObservedData::~RifReaderObservedData()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RifReaderObservedData::open( const QString& headerFileName,
|
bool RifReaderObservedData::open( const QString& headerFileName,
|
||||||
const QString& identifierName,
|
const QString& identifierName,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
||||||
{
|
{
|
||||||
AsciiDataParseOptions parseOptions;
|
AsciiDataParseOptions parseOptions;
|
||||||
@@ -154,8 +154,8 @@ std::vector<time_t> RifReaderObservedData::timeSteps( const RifEclipseSummaryAdd
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RifEclipseSummaryAddress RifReaderObservedData::address( const QString& vectorName,
|
RifEclipseSummaryAddress RifReaderObservedData::address( const QString& vectorName,
|
||||||
const QString& identifierName,
|
const QString& identifierName,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory )
|
||||||
{
|
{
|
||||||
std::string stdVectorName = vectorName.toStdString();
|
std::string stdVectorName = vectorName.toStdString();
|
||||||
|
|||||||
@@ -52,9 +52,8 @@ public:
|
|||||||
RiaDefines::EclipseUnitSystem unitSystem() const override;
|
RiaDefines::EclipseUnitSystem unitSystem() const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RifEclipseSummaryAddress address( const QString& vectorName,
|
RifEclipseSummaryAddress
|
||||||
const QString& identifierName,
|
address( const QString& vectorName, const QString& identifierName, RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory );
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory );
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<RifCsvUserDataParser> m_asciiParser;
|
std::unique_ptr<RifCsvUserDataParser> m_asciiParser;
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ RifRevealCsvSectionSummaryReader::~RifRevealCsvSectionSummaryReader()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RifRevealCsvSectionSummaryReader::parse( const QString& text,
|
bool RifRevealCsvSectionSummaryReader::parse( const QString& text,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory defaultCategory,
|
RifEclipseSummaryAddressDefines::SummaryCategory defaultCategory,
|
||||||
QString* errorText )
|
QString* errorText )
|
||||||
{
|
{
|
||||||
m_allResultAddresses.clear();
|
m_allResultAddresses.clear();
|
||||||
m_mapFromAddressToResultIndex.clear();
|
m_mapFromAddressToResultIndex.clear();
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ void RimDataSourceSteppingTools::modifyCurrentIndex( caf::PdmValueField*
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RimDataSourceSteppingTools::updateAddressIfMatching( const QVariant& oldValue,
|
bool RimDataSourceSteppingTools::updateAddressIfMatching( const QVariant& oldValue,
|
||||||
const QVariant& newValue,
|
const QVariant& newValue,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
RifEclipseSummaryAddress* adr )
|
RifEclipseSummaryAddress* adr )
|
||||||
{
|
{
|
||||||
if ( !adr ) return false;
|
if ( !adr ) return false;
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ public:
|
|||||||
int indexOffset,
|
int indexOffset,
|
||||||
bool notifyChange = true );
|
bool notifyChange = true );
|
||||||
|
|
||||||
static bool updateAddressIfMatching( const QVariant& oldValue,
|
static bool updateAddressIfMatching( const QVariant& oldValue,
|
||||||
const QVariant& newValue,
|
const QVariant& newValue,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
RifEclipseSummaryAddress* adr );
|
RifEclipseSummaryAddress* adr );
|
||||||
|
|
||||||
static bool updateHistoryAndSummaryQuantityIfMatching( const QVariant& oldValue, const QVariant& newValue, RifEclipseSummaryAddress* adr );
|
static bool updateHistoryAndSummaryQuantityIfMatching( const QVariant& oldValue, const QVariant& newValue, RifEclipseSummaryAddress* adr );
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public:
|
|||||||
virtual std::vector<RimPlotAxisAnnotation*> annotations() const = 0;
|
virtual std::vector<RimPlotAxisAnnotation*> annotations() const = 0;
|
||||||
virtual void appendAnnotation( RimPlotAxisAnnotation* annotation ) = 0;
|
virtual void appendAnnotation( RimPlotAxisAnnotation* annotation ) = 0;
|
||||||
virtual void removeAllAnnotations() = 0;
|
virtual void removeAllAnnotations() = 0;
|
||||||
virtual RiuPlotAxis plotAxis() const = 0;
|
virtual RiuPlotAxis plotAxis() const = 0;
|
||||||
|
|
||||||
virtual double visibleRangeMin() const = 0;
|
virtual double visibleRangeMin() const = 0;
|
||||||
virtual double visibleRangeMax() const = 0;
|
virtual double visibleRangeMax() const = 0;
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ std::vector<RimSummaryCalculationAddress> RimSummaryCalculation::allAddressesFor
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
std::vector<RimSummaryCalculationAddress>
|
std::vector<RimSummaryCalculationAddress>
|
||||||
RimSummaryCalculation::allAddressesForCategory( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RimSummaryCalculation::allAddressesForCategory( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const std::set<RifEclipseSummaryAddress>& allResultAddresses ) const
|
const std::set<RifEclipseSummaryAddress>& allResultAddresses ) const
|
||||||
{
|
{
|
||||||
std::vector<RimSummaryCalculationAddress> addresses;
|
std::vector<RimSummaryCalculationAddress> addresses;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public:
|
|||||||
|
|
||||||
QString caseName() const override;
|
QString caseName() const override;
|
||||||
|
|
||||||
QString identifierName() const;
|
QString identifierName() const;
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory() const;
|
RifEclipseSummaryAddressDefines::SummaryCategory summaryCategory() const;
|
||||||
|
|
||||||
void updateMetaData();
|
void updateMetaData();
|
||||||
@@ -52,8 +52,8 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_summaryCategory;
|
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_summaryCategory;
|
||||||
caf::PdmField<QString> m_identifierName;
|
caf::PdmField<QString> m_identifierName;
|
||||||
caf::PdmField<bool> m_useCustomIdentifier;
|
caf::PdmField<bool> m_useCustomIdentifier;
|
||||||
|
|
||||||
caf::PdmField<QString> m_importedSummaryData;
|
caf::PdmField<QString> m_importedSummaryData;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1100,7 +1100,7 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
||||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1139,7 +1139,7 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
auto& [currentMin, currentMax] = axisRanges[axis->plotAxis()];
|
||||||
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
axisRanges[axis->plotAxis()] = std::make_pair( std::min( currentMin, minimum ), std::max( currentMax, maximum ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2980,8 +2980,7 @@ void RimSummaryPlot::setAutoScaleXEnabled( bool enabled )
|
|||||||
{
|
{
|
||||||
for ( const auto& ap : m_axisPropertiesArray )
|
for ( const auto& ap : m_axisPropertiesArray )
|
||||||
{
|
{
|
||||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_TOP ||
|
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_TOP || ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM )
|
||||||
ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM )
|
|
||||||
{
|
{
|
||||||
ap->setAutoZoom( enabled );
|
ap->setAutoZoom( enabled );
|
||||||
}
|
}
|
||||||
@@ -2995,8 +2994,7 @@ void RimSummaryPlot::setAutoScaleYEnabled( bool enabled )
|
|||||||
{
|
{
|
||||||
for ( const auto& ap : m_axisPropertiesArray )
|
for ( const auto& ap : m_axisPropertiesArray )
|
||||||
{
|
{
|
||||||
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_LEFT ||
|
if ( ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_LEFT || ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
|
||||||
ap->plotAxis().axis() == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT )
|
|
||||||
{
|
{
|
||||||
ap->setAutoZoom( enabled );
|
ap->setAutoZoom( enabled );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ QList<caf::PdmOptionItemInfo> RimSummaryPlotSourceStepping::calculateValueOption
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
SummaryCategory category = SummaryCategory::SUMMARY_INVALID;
|
SummaryCategory category = SummaryCategory::SUMMARY_INVALID;
|
||||||
std::string secondaryIdentifier;
|
std::string secondaryIdentifier;
|
||||||
|
|
||||||
if ( fieldNeedingOptions == &m_wellName )
|
if ( fieldNeedingOptions == &m_wellName )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -150,9 +150,9 @@ void RimSummaryTable::setDefaultCaseAndCategoryAndVectorName()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimSummaryTable::setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
void RimSummaryTable::setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const QString& vectorName )
|
const QString& vectorName )
|
||||||
{
|
{
|
||||||
m_case = summaryCase;
|
m_case = summaryCase;
|
||||||
m_category = category;
|
m_category = category;
|
||||||
@@ -622,7 +622,7 @@ std::set<RifEclipseSummaryAddress> RimSummaryTable::getSummaryAddressesFromReade
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
std::set<QString> RimSummaryTable::getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
std::set<QString> RimSummaryTable::getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category ) const
|
RifEclipseSummaryAddressDefines::SummaryCategory category ) const
|
||||||
{
|
{
|
||||||
if ( !summaryReader ) return {};
|
if ( !summaryReader ) return {};
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ public:
|
|||||||
~RimSummaryTable() override;
|
~RimSummaryTable() override;
|
||||||
|
|
||||||
void setDefaultCaseAndCategoryAndVectorName();
|
void setDefaultCaseAndCategoryAndVectorName();
|
||||||
void setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
void setFromCaseAndCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const QString& vectorName );
|
const QString& vectorName );
|
||||||
void setDescription( const QString& description );
|
void setDescription( const QString& description );
|
||||||
QString description() const override;
|
QString description() const override;
|
||||||
|
|
||||||
@@ -98,10 +98,10 @@ private:
|
|||||||
std::pair<double, double> createLegendMinMaxValues( const double maxTableValue ) const;
|
std::pair<double, double> createLegendMinMaxValues( const double maxTableValue ) const;
|
||||||
QString dateFormatString() const;
|
QString dateFormatString() const;
|
||||||
|
|
||||||
std::set<RifEclipseSummaryAddress> getSummaryAddressesFromReader( const RifSummaryReaderInterface* summaryReader,
|
std::set<RifEclipseSummaryAddress> getSummaryAddressesFromReader( const RifSummaryReaderInterface* summaryReader,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const QString& vector ) const;
|
const QString& vector ) const;
|
||||||
std::set<QString> getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
std::set<QString> getCategoryVectorFromSummaryReader( const RifSummaryReaderInterface* summaryReader,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category ) const;
|
RifEclipseSummaryAddressDefines::SummaryCategory category ) const;
|
||||||
QString getCategoryNameFromAddress( const RifEclipseSummaryAddress& address ) const;
|
QString getCategoryNameFromAddress( const RifEclipseSummaryAddress& address ) const;
|
||||||
|
|
||||||
@@ -116,9 +116,9 @@ private:
|
|||||||
caf::PdmPtrField<RimSummaryCase*> m_case;
|
caf::PdmPtrField<RimSummaryCase*> m_case;
|
||||||
|
|
||||||
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_category;
|
caf::PdmField<caf::AppEnum<RifEclipseSummaryAddressDefines::SummaryCategory>> m_category;
|
||||||
caf::PdmField<QString> m_vector;
|
caf::PdmField<QString> m_vector;
|
||||||
caf::PdmField<caf::AppEnum<RiaDefines::DateTimePeriod>> m_resamplingSelection;
|
caf::PdmField<caf::AppEnum<RiaDefines::DateTimePeriod>> m_resamplingSelection;
|
||||||
caf::PdmField<double> m_thresholdValue;
|
caf::PdmField<double> m_thresholdValue;
|
||||||
|
|
||||||
caf::PdmField<std::vector<QString>> m_excludedRowsUiField;
|
caf::PdmField<std::vector<QString>> m_excludedRowsUiField;
|
||||||
|
|
||||||
|
|||||||
@@ -128,10 +128,9 @@ RimSummaryTable* RimSummaryTableCollection::createDefaultSummaryTable()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimSummaryTable*
|
RimSummaryTable* RimSummaryTableCollection::createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||||
RimSummaryTableCollection::createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
const QString& vectorName )
|
||||||
const QString& vectorName )
|
|
||||||
{
|
{
|
||||||
RimSummaryTable* table = new RimSummaryTable();
|
RimSummaryTable* table = new RimSummaryTable();
|
||||||
table->setFromCaseAndCategoryAndVectorName( summaryCase, category, vectorName );
|
table->setFromCaseAndCategoryAndVectorName( summaryCase, category, vectorName );
|
||||||
|
|||||||
@@ -51,9 +51,9 @@ public:
|
|||||||
void removeTable( RimSummaryTable* table );
|
void removeTable( RimSummaryTable* table );
|
||||||
|
|
||||||
RimSummaryTable* createDefaultSummaryTable();
|
RimSummaryTable* createDefaultSummaryTable();
|
||||||
RimSummaryTable* createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
RimSummaryTable* createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
const QString& vectorName );
|
const QString& vectorName );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmChildArrayField<RimSummaryTable*> m_summaryTables;
|
caf::PdmChildArrayField<RimSummaryTable*> m_summaryTables;
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ RifEclipseSummaryAddressDefines::SummaryCategory RiuSummaryQuantityNameInfoProvi
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory
|
RifEclipseSummaryAddressDefines::SummaryCategory RiuSummaryQuantityNameInfoProvider::categoryFromVectorName( const std::string& vectorName,
|
||||||
RiuSummaryQuantityNameInfoProvider::categoryFromVectorName( const std::string& vectorName, bool exactMatch ) const
|
bool exactMatch ) const
|
||||||
{
|
{
|
||||||
auto info = quantityInfo( vectorName, exactMatch );
|
auto info = quantityInfo( vectorName, exactMatch );
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ std::string RiuSummaryQuantityNameInfoProvider::longNameFromVectorName( const st
|
|||||||
{
|
{
|
||||||
auto info = quantityInfo( vectorName );
|
auto info = quantityInfo( vectorName );
|
||||||
return info.category != RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID || !returnVectorNameIfNotFound ? info.longName
|
return info.category != RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_INVALID || !returnVectorNameIfNotFound ? info.longName
|
||||||
: vectorName;
|
: vectorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -50,13 +50,13 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory category;
|
RifEclipseSummaryAddressDefines::SummaryCategory category;
|
||||||
std::string longName;
|
std::string longName;
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RiuSummaryQuantityNameInfoProvider();
|
RiuSummaryQuantityNameInfoProvider();
|
||||||
|
|
||||||
RiuSummaryQuantityInfo quantityInfo( const std::string& vectorName, bool exactMatch = false ) const;
|
RiuSummaryQuantityInfo quantityInfo( const std::string& vectorName, bool exactMatch = false ) const;
|
||||||
RifEclipseSummaryAddressDefines::SummaryCategory categoryFromVectorName( const std::string& vectorName, bool exactMatch = false ) const;
|
RifEclipseSummaryAddressDefines::SummaryCategory categoryFromVectorName( const std::string& vectorName, bool exactMatch = false ) const;
|
||||||
|
|
||||||
static std::unordered_map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
|
static std::unordered_map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
|
||||||
|
|||||||
@@ -170,9 +170,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
CAF_PDM_InitFieldNoDefault( &m_selectedSummaryCategories, "SelectedSummaryCategories", "Summary Categories" );
|
CAF_PDM_InitFieldNoDefault( &m_selectedSummaryCategories, "SelectedSummaryCategories", "Summary Categories" );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][0]->pdmField(), "FieldVectors", "Field vectors" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][0]->pdmField(), "FieldVectors", "Field vectors" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][1]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_FIELD][1]->pdmField(), "FieldCalculationIds", "Calculation Ids" );
|
||||||
"FieldCalculationIds",
|
|
||||||
"Calculation Ids" );
|
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][0]->pdmField(), "Aquifers", "Aquifers" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][0]->pdmField(), "Aquifers", "Aquifers" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][1]->pdmField(), "AquiferVectors", "Aquifer Vectors" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_AQUIFER][1]->pdmField(), "AquiferVectors", "Aquifer Vectors" );
|
||||||
@@ -191,9 +189,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][0]->pdmField(), "Regions", "Regions" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][0]->pdmField(), "Regions", "Regions" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][1]->pdmField(), "RegionsVectors", "Regions Vectors" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][1]->pdmField(), "RegionsVectors", "Regions Vectors" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][2]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION][2]->pdmField(), "RegionCalculationIds", "Calculation Ids" );
|
||||||
"RegionCalculationIds",
|
|
||||||
"Calculation Ids" );
|
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION_2_REGION][0]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_REGION_2_REGION][0]->pdmField(),
|
||||||
"Region2RegionRegions",
|
"Region2RegionRegions",
|
||||||
@@ -206,9 +202,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
"Calculation Ids" );
|
"Calculation Ids" );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][0]->pdmField(), "WellGroupWellGroupNames", "Groups" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][0]->pdmField(), "WellGroupWellGroupNames", "Groups" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][1]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][1]->pdmField(), "WellGroupVectors", "Well Group Vectors" );
|
||||||
"WellGroupVectors",
|
|
||||||
"Well Group Vectors" );
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][2]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_GROUP][2]->pdmField(),
|
||||||
"WellGroupCalculationIds",
|
"WellGroupCalculationIds",
|
||||||
"Calculation Ids" );
|
"Calculation Ids" );
|
||||||
@@ -220,9 +214,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][0]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][0]->pdmField(),
|
||||||
"WellCompletionWellName",
|
"WellCompletionWellName",
|
||||||
"Wells" );
|
"Wells" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][1]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][1]->pdmField(), "WellCompletionIjk", "Cell IJK" );
|
||||||
"WellCompletionIjk",
|
|
||||||
"Cell IJK" );
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][2]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_WELL_COMPLETION][2]->pdmField(),
|
||||||
"WellCompletionVectors",
|
"WellCompletionVectors",
|
||||||
"Well Completion Vectors" );
|
"Well Completion Vectors" );
|
||||||
@@ -262,9 +254,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][0]->pdmField(), "BlockIjk", "Cell IJK" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][0]->pdmField(), "BlockIjk", "Cell IJK" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][1]->pdmField(), "BlockVectors", "Block Vectors" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][1]->pdmField(), "BlockVectors", "Block Vectors" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][2]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK][2]->pdmField(), "BlockCalculationIds", "Calculation Ids" );
|
||||||
"BlockCalculationIds",
|
|
||||||
"Calculation Ids" );
|
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][0]->pdmField(), "BlockLgrLgrName", "LGR Names" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][0]->pdmField(), "BlockLgrLgrName", "LGR Names" );
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][1]->pdmField(), "BlockLgrIjk", "Cell IJK" );
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_BLOCK_LGR][1]->pdmField(), "BlockLgrIjk", "Cell IJK" );
|
||||||
@@ -273,9 +263,7 @@ RiuSummaryVectorSelectionUi::RiuSummaryVectorSelectionUi()
|
|||||||
"BlockLgrCalculationIds",
|
"BlockLgrCalculationIds",
|
||||||
"CalculationIds" );
|
"CalculationIds" );
|
||||||
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][0]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][0]->pdmField(), "ImportedVectors", "Imported vectors" );
|
||||||
"ImportedVectors",
|
|
||||||
"Imported vectors" );
|
|
||||||
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][1]->pdmField(),
|
CAF_PDM_InitFieldNoDefault( m_identifierFieldsMap[SummaryCategory::SUMMARY_IMPORTED][1]->pdmField(),
|
||||||
"ImportedCalculationIds",
|
"ImportedCalculationIds",
|
||||||
"Calculation Ids" );
|
"Calculation Ids" );
|
||||||
@@ -1233,7 +1221,7 @@ std::set<RifEclipseSummaryAddress> RiuSummaryVectorSelectionUi::buildAddressList
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuSummaryVectorSelectionUi::buildAddressListForCategoryRecursively(
|
void RiuSummaryVectorSelectionUi::buildAddressListForCategoryRecursively(
|
||||||
SummaryCategory category,
|
SummaryCategory category,
|
||||||
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
||||||
std::vector<std::pair<SummaryIdentifierType, QString>>& identifierPath,
|
std::vector<std::pair<SummaryIdentifierType, QString>>& identifierPath,
|
||||||
std::set<RifEclipseSummaryAddress>& addressSet ) const
|
std::set<RifEclipseSummaryAddress>& addressSet ) const
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ private:
|
|||||||
const std::vector<SummaryIdentifierAndField*>& identifierAndFieldList ) const;
|
const std::vector<SummaryIdentifierAndField*>& identifierAndFieldList ) const;
|
||||||
|
|
||||||
std::set<RifEclipseSummaryAddress> buildAddressListFromSelections() const;
|
std::set<RifEclipseSummaryAddress> buildAddressListFromSelections() const;
|
||||||
void buildAddressListForCategoryRecursively( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
void buildAddressListForCategoryRecursively( RifEclipseSummaryAddressDefines::SummaryCategory category,
|
||||||
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
std::vector<SummaryIdentifierAndField*>::const_iterator identifierAndFieldItr,
|
||||||
std::vector<std::pair<RifEclipseSummaryAddressDefines::SummaryIdentifierType, QString>>& identifierPath,
|
std::vector<std::pair<RifEclipseSummaryAddressDefines::SummaryIdentifierType, QString>>& identifierPath,
|
||||||
std::set<RifEclipseSummaryAddress>& addressSet ) const;
|
std::set<RifEclipseSummaryAddress>& addressSet ) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user