mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4827 Completion Data : Guard index out of range
This commit is contained in:
parent
8a11c565f3
commit
1f181fa175
@ -163,7 +163,7 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
|
|||||||
if ( !loadingSucceeded )
|
if ( !loadingSucceeded )
|
||||||
{
|
{
|
||||||
QString msg;
|
QString msg;
|
||||||
msg += "Compdat Export : One or more of the following required data missing :";
|
msg += "Compdat Export : One or more of the following required data sources are missing :";
|
||||||
|
|
||||||
for ( const auto& r : resultNames )
|
for ( const auto& r : resultNames )
|
||||||
{
|
{
|
||||||
@ -381,14 +381,23 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
|
|||||||
fracTemplate->name(),
|
fracTemplate->name(),
|
||||||
fracture->fractureMD() );
|
fracture->fractureMD() );
|
||||||
reportItem.setUnitSystem( fracTemplate->fractureTemplateUnit() );
|
reportItem.setUnitSystem( fracTemplate->fractureTemplateUnit() );
|
||||||
reportItem.setPressureDepletionParameters( performPressureDepletionScaling,
|
|
||||||
caseToApply->timeStepStrings()[pdParams.pressureScalingTimeStep],
|
if ( performPressureDepletionScaling )
|
||||||
caf::AppEnum<PressureDepletionWBHPSource>::uiTextFromIndex(
|
{
|
||||||
pdParams.wbhpSource ),
|
QString timeStepString;
|
||||||
pdParams.userWBHP,
|
if ( pdParams.pressureScalingTimeStep < caseToApply->timeStepStrings().size() )
|
||||||
currentWellPressure,
|
{
|
||||||
minPressureDrop,
|
timeStepString = caseToApply->timeStepStrings()[pdParams.pressureScalingTimeStep];
|
||||||
maxPressureDrop );
|
}
|
||||||
|
reportItem.setPressureDepletionParameters( performPressureDepletionScaling,
|
||||||
|
timeStepString,
|
||||||
|
caf::AppEnum<PressureDepletionWBHPSource>::uiTextFromIndex(
|
||||||
|
pdParams.wbhpSource ),
|
||||||
|
pdParams.userWBHP,
|
||||||
|
currentWellPressure,
|
||||||
|
minPressureDrop,
|
||||||
|
maxPressureDrop );
|
||||||
|
}
|
||||||
|
|
||||||
RicExportFractureCompletionsImpl::calculateAndSetReportItemData( allCompletionsForOneFracture,
|
RicExportFractureCompletionsImpl::calculateAndSetReportItemData( allCompletionsForOneFracture,
|
||||||
eclToFractureCalc,
|
eclToFractureCalc,
|
||||||
|
Loading…
Reference in New Issue
Block a user