mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve user control on resampling operations
Allow user to specify Accumulated or Rate for a summary curve. Default setting is Auto, and summary address is used to derive Accumulated/Rate. User can set curve type explicitly.
This commit is contained in:
@@ -32,6 +32,15 @@ void caf::AppEnum<RifEclipseSummaryAddressDefines::StatisticsType>::setUp()
|
||||
addItem( RifEclipseSummaryAddressDefines::StatisticsType::MEAN, "MEAN", "Mean" );
|
||||
setDefault( RifEclipseSummaryAddressDefines::StatisticsType::NONE );
|
||||
}
|
||||
|
||||
template <>
|
||||
void caf::AppEnum<RifEclipseSummaryAddressDefines::CurveType>::setUp()
|
||||
{
|
||||
addItem( RifEclipseSummaryAddressDefines::CurveType::RATE, "RATE", "Rate" );
|
||||
addItem( RifEclipseSummaryAddressDefines::CurveType::ACCUMULATED, "ACCUMULATED", "Accumulated" );
|
||||
setDefault( RifEclipseSummaryAddressDefines::CurveType::ACCUMULATED );
|
||||
}
|
||||
|
||||
} // namespace caf
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -73,6 +73,12 @@ enum class StatisticsType
|
||||
MEAN
|
||||
};
|
||||
|
||||
enum class CurveType
|
||||
{
|
||||
ACCUMULATED,
|
||||
RATE
|
||||
};
|
||||
|
||||
std::string statisticsNameP10();
|
||||
std::string statisticsNameP50();
|
||||
std::string statisticsNameP90();
|
||||
|
||||
Reference in New Issue
Block a user