From 742f92612398a8b2ef7e6f4f683da6eacf4ee2ed Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 13 Nov 2023 07:44:44 +0100 Subject: [PATCH] #10754: Exclude COMPDAT for de-activated laterals --- .../RicWellPathExportCompletionDataFeatureImpl.cpp | 5 +++++ .../RicWellPathExportCompletionDataFeatureImpl.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp b/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp index e66732370e..99f450e497 100644 --- a/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp +++ b/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp @@ -193,6 +193,11 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v for ( auto wellPathLateral : allWellPathLaterals ) { + // Skip well paths that are not enabled, no export of WELSEGS or COMPDAT + // https://github.com/OPM/ResInsight/issues/10754 + // + if ( !wellPathLateral->isEnabled() ) continue; + // Generate completion data if ( exportSettings.includePerforations ) diff --git a/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h b/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h index 6c26562e0d..7668f3e278 100644 --- a/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h +++ b/ApplicationLibCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h @@ -126,11 +126,11 @@ class RicWellPathExportCompletionDataFeatureImpl static std::vector computeDynamicCompletionsForWellPath( RimWellPath* wellPath, RimEclipseCase* eclipseCase, size_t timeStepIndex ); +private: static std::vector generatePerforationsCompdatValues( gsl::not_null wellPath, const std::vector& intervals, const RicExportCompletionDataSettingsUi& settings ); -private: static double calculateTransmissibilityAsEclipseDoes( RimEclipseCase* eclipseCase, double skinFactor, double wellRadius,