#7719 Multi-lateral wells : Use top level well path to get air gap

Get airgap/md at first target from top level well path
This commit is contained in:
Magne Sjaastad committed 2021-05-25 11:50:18 +02:00
1 parent 9cd4edb025
commit 3d44ad37db
1 file changed
+5 -1
@@ -41,7 +41,11 @@ void RigWellPathGeometryExporter::exportWellPathGeometry( gsl::not_null<const Ri
useMdRkb = false;
double rkbOffset = 0.0;
{
const RimModeledWellPath* modeledWellPath = dynamic_cast<const RimModeledWellPath*>( wellPath.get() );
// Always use top level modeled well path for definitions MD at first coordinate
const RimModeledWellPath* modeledWellPath =
dynamic_cast<const RimModeledWellPath*>( wellPath.get()->topLevelWellPath() );
if ( modeledWellPath )
{
useMdRkb = true;