mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Handles error result addresses for statistics curves
Changes in the summary system has introduced a bug causing two identical results to be displayed, the correct statistical vector and the error. If error is asked for, return no values.
This commit is contained in:
1 parent
4e94169b63
commit
ef74e781e9
1 file changed
+2
@@ -73,6 +73,8 @@ bool RimEnsembleStatisticsCase::hasMeanData() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<bool, std::vector<double>> RimEnsembleStatisticsCase::values( const RifEclipseSummaryAddress& resultAddress ) const
|
||||
{
|
||||
if ( resultAddress.isErrorResult() ) return std::make_pair(false, std::vector<double>{});
|
||||
|
||||
switch ( resultAddress.statisticsType() )
|
||||
{
|
||||
case RifEclipseSummaryAddressDefines::StatisticsType::P10:
|
||||
|
||||
Reference in new issue
Block a user