mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3663 Pressure Depletion: fix initial time step
This commit is contained in:
parent
37f1cde219
commit
e5b8dc49c1
@ -451,7 +451,7 @@ void RicExportFractureCompletionsImpl::getWellPressuresAndInitialProductionTimeS
|
||||
initialProductionDate = summaryDate;
|
||||
*initialWellPressure = values[i];
|
||||
}
|
||||
if (summaryDate == currentDate)
|
||||
if (summaryDate <= currentDate)
|
||||
{
|
||||
*currentWellPressure = values[i];
|
||||
}
|
||||
@ -463,10 +463,13 @@ void RicExportFractureCompletionsImpl::getWellPressuresAndInitialProductionTimeS
|
||||
{
|
||||
for (size_t i = 0; i < caseTimeSteps.size(); ++i)
|
||||
{
|
||||
// Pick first case time step that is larger or equal to the initial production date.
|
||||
if (caseTimeSteps[i] >= initialProductionDate)
|
||||
// Pick last time step that isn't bigger than the initial production time.
|
||||
if (caseTimeSteps[i] < initialProductionDate)
|
||||
{
|
||||
*initialCaseTimeStep = static_cast<int>(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user