#5856 Well Disks : Guard recompute and limit evaluation to visible wells

This commit is contained in:
Magne Sjaastad
2020-04-29 19:50:46 +02:00
parent bc400af345
commit accfa47539
5 changed files with 35 additions and 13 deletions

View File

@@ -641,6 +641,26 @@ size_t RimSimWellInView::resultWellIndex() const
return m_resultWellIndex;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimSimWellInView::isWellDiskVisible() const
{
const RimEclipseView* reservoirView = nullptr;
this->firstAncestorOrThisOfType( reservoirView );
if ( reservoirView == nullptr ) return false;
if ( this->simWellData() == nullptr ) return false;
if ( !reservoirView->wellCollection()->isActive() ) return false;
if ( !this->showWell() ) return false;
if ( !this->showWellDisks() ) return false;
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------