mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1044 - pre-proto - Updates in infrastructure for finding i,j,k for simulation well
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
|
||||
#include "RivSimWellPipeSourceInfo.h"
|
||||
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWell.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -38,3 +40,17 @@ RimEclipseWell* RivSimWellPipeSourceInfo::well() const
|
||||
{
|
||||
return m_eclipseWell.p();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivSimWellPipeSourceInfo::findGridIndexAndCellIndex(size_t triangleIndex, size_t* gridIndex, size_t* gridCellIndex) const
|
||||
{
|
||||
RimEclipseView* rimEclView = nullptr;
|
||||
m_eclipseWell->firstAncestorOrThisOfType(rimEclView);
|
||||
|
||||
if (rimEclView)
|
||||
{
|
||||
rimEclView->findGridIndexAndCellIndex(m_eclipseWell.p(), m_branchIndex, triangleIndex, gridIndex, gridCellIndex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user