MSW : Do not export completions if well path lateral is unchecked

This commit is contained in:
Magne Sjaastad 2021-05-18 15:13:23 +02:00
parent e8e3dc39b4
commit d4f4f20e6e

View File

@ -1926,7 +1926,8 @@ std::vector<RimModeledWellPath*> RicWellPathExportMswCompletionsImpl::wellPathsW
for ( auto w : wellPaths )
{
auto modelWellPath = dynamic_cast<RimModeledWellPath*>( w );
if ( modelWellPath && modelWellPath->wellPathTieIn() && modelWellPath->wellPathTieIn()->parentWell() == wellPath )
if ( modelWellPath && modelWellPath->isEnabled() && modelWellPath->wellPathTieIn() &&
modelWellPath->wellPathTieIn()->parentWell() == wellPath )
{
connectedWellPaths.push_back( modelWellPath );
}