mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
11867 Do not assume that the first reported time step is initial time step
This commit is contained in:
@@ -260,7 +260,10 @@ void RifEclipseOutputFileTools::timeSteps( const ecl_file_type* ecl_file,
|
|||||||
int dayValue = cvf::Math::floor( dayDoubleValue );
|
int dayValue = cvf::Math::floor( dayDoubleValue );
|
||||||
if ( useStartOfSimulationDate )
|
if ( useStartOfSimulationDate )
|
||||||
{
|
{
|
||||||
reportDateTime = reportDateTime.addDays( dayValue );
|
// Do not assume the first day value is zero. Adjust the day value to be relative to the first day value
|
||||||
|
// https://github.com/OPM/ResInsight/issues/11867
|
||||||
|
const int adjustedDayValue = dayValue - dayValues.front();
|
||||||
|
reportDateTime = reportDateTime.addDays( adjustedDayValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
double dayFraction = dayDoubleValue - dayValue;
|
double dayFraction = dayDoubleValue - dayValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user