From 742b7aab11a3192ad918172585bdb12b1ef7934b Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 7 Sep 2018 15:25:32 +0200 Subject: [PATCH] #3266 Minor output adjustments to fracture MSW export --- .../RicWellPathExportCompletionDataFeatureImpl.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp index 3b044a37b2..c57454c615 100644 --- a/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp +++ b/ApplicationCode/Commands/CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.cpp @@ -556,6 +556,7 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse { double prevMD = exportInfo.initialMD(); double prevTVD = exportInfo.initialTVD(); + formatter.comment("Main Stem Segments"); for (const RicMswSegment& location : exportInfo.wellSegmentLocations()) { double depth = 0; @@ -571,12 +572,13 @@ void RicWellPathExportCompletionDataFeatureImpl::generateWelsegsTable(RifEclipse depth = location.endTVD(); length = location.endMD(); } - QString comment = location.label(); + if (location.subIndex() != cvf::UNDEFINED_SIZE_T) { - comment += QString(", sub %1").arg(location.subIndex()); + QString comment = location.label() + QString(", sub %1").arg(location.subIndex()); + formatter.comment(comment); } - formatter.comment(comment); + formatter.add(location.segmentNumber()).add(location.segmentNumber()); formatter.add(1); // All segments on main stem are branch 1 formatter.add(location.segmentNumber() - 1); // All main stem segments are connected to the segment below them @@ -793,8 +795,10 @@ void RicWellPathExportCompletionDataFeatureImpl::generateCompsegTable( } } } - - formatter.tableCompleted(); + if (generatedHeader) + { + formatter.tableCompleted(); + } } //--------------------------------------------------------------------------------------------------