From 3d44ad37db3404e6b6638c42273b0011153a9903 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 25 May 2021 08:43:24 +0200 Subject: [PATCH] #7719 Multi-lateral wells : Use top level well path to get air gap Get airgap/md at first target from top level well path --- .../ReservoirDataModel/RigWellPathGeometryExporter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp b/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp index 29cf2bf816..e9788c64ca 100644 --- a/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp +++ b/ApplicationLibCode/ReservoirDataModel/RigWellPathGeometryExporter.cpp @@ -41,7 +41,11 @@ void RigWellPathGeometryExporter::exportWellPathGeometry( gsl::not_null( wellPath.get() ); + // Always use top level modeled well path for definitions MD at first coordinate + + const RimModeledWellPath* modeledWellPath = + dynamic_cast( wellPath.get()->topLevelWellPath() ); + if ( modeledWellPath ) { useMdRkb = true;