mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2195 Final fix of missing connections in high level grids, if connections in lower levels exist.
This commit is contained in:
@@ -381,9 +381,12 @@ RigWellResultPoint RigWellResultFrame::wellHeadOrStartCell() const
|
||||
{
|
||||
if (m_wellHead.isCell()) return m_wellHead;
|
||||
|
||||
if (m_wellResultBranches.size() && m_wellResultBranches.front().m_branchResultPoints.size() )
|
||||
for ( const RigWellResultBranch& resBranch : m_wellResultBranches )
|
||||
{
|
||||
return m_wellResultBranches.front().m_branchResultPoints.front();
|
||||
for ( const RigWellResultPoint& wrp: resBranch.m_branchResultPoints )
|
||||
{
|
||||
if ( wrp.isCell() ) return wrp;
|
||||
}
|
||||
}
|
||||
|
||||
return m_wellHead; // Nothing else to do
|
||||
|
||||
Reference in New Issue
Block a user