mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5309 Fractures : Guard when no time steps are present
This commit is contained in:
parent
e13f4192e4
commit
af6a137f45
@ -445,8 +445,10 @@ void RicExportFractureCompletionsImpl::getWellPressuresAndInitialProductionTimeS
|
||||
if ( resultCase )
|
||||
{
|
||||
std::vector<QDateTime> caseTimeSteps = resultCase->timeStepDates();
|
||||
QDateTime initialProductionDate;
|
||||
QDateTime currentDate;
|
||||
if ( caseTimeSteps.empty() ) return;
|
||||
|
||||
QDateTime initialProductionDate;
|
||||
QDateTime currentDate;
|
||||
if ( currentTimeStep < static_cast<int>( caseTimeSteps.size() ) )
|
||||
{
|
||||
currentDate = caseTimeSteps[currentTimeStep];
|
||||
|
Loading…
Reference in New Issue
Block a user