mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard against missing well path geometry data
This commit is contained in:
parent
37b32c4e8a
commit
0f9b667c55
@ -218,7 +218,7 @@ std::vector<RigCompletionData> RicExportFractureCompletionsImpl::generateCompdat
|
||||
{
|
||||
std::vector<RigCompletionData> fractureCompletions;
|
||||
|
||||
if ( !caseToApply || !caseToApply->eclipseCaseData() )
|
||||
if ( !caseToApply || !caseToApply->eclipseCaseData() || !wellPathGeometry )
|
||||
{
|
||||
return fractureCompletions;
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ std::vector<RigCompletionData>
|
||||
{
|
||||
std::vector<RigCompletionData> completionData;
|
||||
|
||||
if ( !wellPath || !wellPath->completions() )
|
||||
if ( !wellPath || !wellPath->completions() || !wellPath->wellPathGeometry() )
|
||||
{
|
||||
return completionData;
|
||||
}
|
||||
@ -197,7 +197,7 @@ void RicFishbonesTransmissibilityCalculationFeatureImp::findFishboneLateralsWell
|
||||
const RimWellPath* wellPath,
|
||||
const RicExportCompletionDataSettingsUi& settings )
|
||||
{
|
||||
if ( !wellPath ) return;
|
||||
if ( !wellPath || !wellPath->wellPathGeometry() ) return;
|
||||
|
||||
// Generate data
|
||||
const RigEclipseCaseData* caseData = settings.caseToApply()->eclipseCaseData();
|
||||
|
@ -1168,7 +1168,12 @@ std::vector<RigCompletionData> RicWellPathExportCompletionDataFeatureImpl::gener
|
||||
RiaEclipseUnitTools::UnitSystem unitSystem = settings.caseToApply->eclipseCaseData()->unitsType();
|
||||
|
||||
std::vector<RigCompletionData> completionData;
|
||||
const RigActiveCellInfo* activeCellInfo = settings.caseToApply->eclipseCaseData()->activeCellInfo(
|
||||
if ( !wellPath || !wellPath->wellPathGeometry() )
|
||||
{
|
||||
return completionData;
|
||||
}
|
||||
|
||||
const RigActiveCellInfo* activeCellInfo = settings.caseToApply->eclipseCaseData()->activeCellInfo(
|
||||
RiaDefines::MATRIX_MODEL );
|
||||
|
||||
if ( wellPath->perforationIntervalCollection()->isChecked() )
|
||||
|
Loading…
Reference in New Issue
Block a user