mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard time step index
This commit is contained in:
parent
b7aebbb392
commit
a29f325125
@ -141,7 +141,10 @@ std::vector<std::vector<double>> RigStimPlanFractureDefinition::getDataAtTimeInd
|
||||
|
||||
if (resIndex != cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
return stimPlanData[resIndex].parameterValues[timeStepIndex];
|
||||
if (timeStepIndex < stimPlanData[resIndex].parameterValues.size())
|
||||
{
|
||||
return stimPlanData[resIndex].parameterValues[timeStepIndex];
|
||||
}
|
||||
}
|
||||
|
||||
qDebug() << "ERROR: Requested parameter does not exists in stimPlan data";
|
||||
|
Loading…
Reference in New Issue
Block a user