From 79f427f64bc8114180951f25315b0e6c1b67556a Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 16 Feb 2022 15:37:12 +0100 Subject: [PATCH] #8558 Fix reading of simulation dates for restart case The date import was wrong for some restart cases. --- ApplicationLibCode/FileInterface/RifEclipseOutputFileTools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/FileInterface/RifEclipseOutputFileTools.cpp b/ApplicationLibCode/FileInterface/RifEclipseOutputFileTools.cpp index c6346b1ed8..8a897a0b23 100644 --- a/ApplicationLibCode/FileInterface/RifEclipseOutputFileTools.cpp +++ b/ApplicationLibCode/FileInterface/RifEclipseOutputFileTools.cpp @@ -200,7 +200,8 @@ void RifEclipseOutputFileTools::timeSteps( const ecl_file_type* ecl_file, // Some simulations might end up with wrong data reported for day/month/year. If this situation is detected, // base all time step on double values and use start of simulation as first date // See https://github.com/OPM/ResInsight/issues/4850 - if ( uniqueDays.size() == dayValues.size() ) useStartOfSimulationDate = false; + // https://github.com/OPM/ResInsight/issues/8558 + if ( uniqueDays.size() == uniqueDayValues.size() ) useStartOfSimulationDate = false; } std::set existingTimesteps;