mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5856 Well Disks : Guard recompute and limit evaluation to visible wells
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user