From 5f78d5e842d0f9b44f27f7d45d0e820721bee386 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 3 Apr 2020 10:38:42 +0200 Subject: [PATCH] #5747 Completion Export: Include comment for zero transmissibility cells --- .../RicWellPathExportCompletionDataFeatureImpl.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp index 58efe0524a..888a20b56f 100644 --- a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp +++ b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp @@ -1008,12 +1008,6 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompdatTableUsingFormatte for ( const RigCompletionData& data : completionData ) { - if ( data.transmissibility() == 0.0 || data.wpimult() == 0.0 ) - { - // Don't export completions without transmissibility - continue; - } - if ( currentCompletionType != data.completionType() ) { // The completions are sorted by completion type, write out a heading when completion type changes @@ -1032,6 +1026,13 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompdatTableUsingFormatte { formatter.comment( QString( "%1 : %2" ).arg( metadata.name ).arg( metadata.comment ) ); } + + if ( data.transmissibility() == 0.0 || data.wpimult() == 0.0 ) + { + // Don't export completions without transmissibility + continue; + } + formatter.add( data.wellName() ); if ( !gridName.isEmpty() )