#1044 - pre-proto - Updates in infrastructure for finding i,j,k for simulation well

This commit is contained in:
astridkbjorke
2017-01-03 15:05:26 +01:00
parent a64c1dd447
commit fe9ac8f908
8 changed files with 64 additions and 3 deletions

View File

@@ -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);
}
}