mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#5309 Fractures : Guard when no time steps are present
This commit is contained in:
+4
-2
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user