#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 2021-05-25 08:43:24 +02:00
parent 9cd4edb025
commit 3d44ad37db

View File

@ -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;